Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
ba72c2f9
Commit
ba72c2f9
authored
Jun 18, 2017
by
Davis King
Browse files
Updated code to work with new random_cropper interface.
parent
17b48b97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/python/src/face_recognition.cpp
tools/python/src/face_recognition.cpp
+2
-2
No files found.
tools/python/src/face_recognition.cpp
View file @
ba72c2f9
...
@@ -30,9 +30,9 @@ public:
...
@@ -30,9 +30,9 @@ public:
cropper
=
make_shared
<
random_cropper
>
();
cropper
=
make_shared
<
random_cropper
>
();
cropper
->
set_chip_dims
(
150
,
150
);
cropper
->
set_chip_dims
(
150
,
150
);
cropper
->
set_randomly_flip
(
true
);
cropper
->
set_randomly_flip
(
true
);
cropper
->
set_max_object_
height
(
0.99999
);
cropper
->
set_max_object_
size
(
0.99999
);
cropper
->
set_background_crops_fraction
(
0
);
cropper
->
set_background_crops_fraction
(
0
);
cropper
->
set_min_object_
height
(
0.97
);
cropper
->
set_min_object_
size
(
0.97
);
cropper
->
set_translate_amount
(
0.02
);
cropper
->
set_translate_amount
(
0.02
);
cropper
->
set_max_rotation_degrees
(
3
);
cropper
->
set_max_rotation_degrees
(
3
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment