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
24d09126
Commit
24d09126
authored
Sep 06, 2014
by
Davis King
Browse files
Changed get_face_chip_details() so it ignores the eyebrows and
lower lip since those are really mobile parts of the face.
parent
bd405634
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
dlib/image_transforms/interpolation.h
dlib/image_transforms/interpolation.h
+7
-0
No files found.
dlib/image_transforms/interpolation.h
View file @
24d09126
...
...
@@ -1658,6 +1658,13 @@ namespace dlib
std
::
vector
<
dlib
::
vector
<
double
,
2
>
>
from_points
,
to_points
;
for
(
unsigned
long
i
=
17
;
i
<
det
.
num_parts
();
++
i
)
{
// Ignore the lower lip
if
((
55
<=
i
&&
i
<=
59
)
||
(
65
<=
i
&&
i
<=
67
))
continue
;
// Ignore the eyebrows
if
(
17
<=
i
&&
i
<=
26
)
continue
;
dlib
::
vector
<
double
,
2
>
p
;
p
.
x
()
=
(
padding
+
mean_face_shape_x
[
i
-
17
])
/
(
2
*
padding
+
1
);
p
.
y
()
=
(
padding
+
mean_face_shape_y
[
i
-
17
])
/
(
2
*
padding
+
1
);
...
...
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