From 41c2f217c645cd0d4f850d0017bc2b3122afb676 Mon Sep 17 00:00:00 2001 From: Davis King Date: Fri, 15 Sep 2017 19:58:27 -0400 Subject: [PATCH] Changed code to recommend users use the new 5 point face landmarking model. --- examples/dnn_face_recognition_ex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/dnn_face_recognition_ex.cpp b/examples/dnn_face_recognition_ex.cpp index 0c21bdd74..7012c0d79 100644 --- a/examples/dnn_face_recognition_ex.cpp +++ b/examples/dnn_face_recognition_ex.cpp @@ -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;