Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
24d09126
Commit
24d09126
authored
Sep 06, 2014
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed get_face_chip_details() so it ignores the eyebrows and
lower lip since those are really mobile parts of the face.
parent
bd405634
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
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