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
41c2f217
Commit
41c2f217
authored
Sep 15, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed code to recommend users use the new 5 point face landmarking model.
parent
f56ba6b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dnn_face_recognition_ex.cpp
examples/dnn_face_recognition_ex.cpp
+2
-2
No files found.
examples/dnn_face_recognition_ex.cpp
View file @
41c2f217
...
...
@@ -88,7 +88,7 @@ int main(int argc, char** argv) try
cout
<<
endl
;
cout
<<
"You will also need to get the face landmarking model file as well as "
<<
endl
;
cout
<<
"the face recognition model file. Download and then decompress these files from: "
<<
endl
;
cout
<<
"http://dlib.net/files/shape_predictor_
68
_face_landmarks.dat.bz2"
<<
endl
;
cout
<<
"http://dlib.net/files/shape_predictor_
5
_face_landmarks.dat.bz2"
<<
endl
;
cout
<<
"http://dlib.net/files/dlib_face_recognition_resnet_model_v1.dat.bz2"
<<
endl
;
cout
<<
endl
;
return
1
;
...
...
@@ -99,7 +99,7 @@ int main(int argc, char** argv) try
frontal_face_detector
detector
=
get_frontal_face_detector
();
// We will also use a face landmarking model to align faces to a standard pose: (see face_landmark_detection_ex.cpp for an introduction)
shape_predictor
sp
;
deserialize
(
"shape_predictor_
68
_face_landmarks.dat"
)
>>
sp
;
deserialize
(
"shape_predictor_
5
_face_landmarks.dat"
)
>>
sp
;
// And finally we load the DNN responsible for face recognition.
anet_type
net
;
deserialize
(
"dlib_face_recognition_resnet_model_v1.dat"
)
>>
net
;
...
...
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