In python API of dlib there is a function called compute_face_descriptor() but I couldn't find any alternative to it in C++ API.
How can I create an alternative to it in C++?
In python API of dlib there is a function called compute_face_descriptor() but I couldn't find any alternative to it in C++ API.
How can I create an alternative to it in C++?
On
A very quick perusing through dlib's source code reveals that this function is implemented in tools/python/src/face_recognition.cpp.
So all you have to do is bring that code into your project. It being licensed under the BOOST license makes it simple.
On
There is a C++ example program that comes with dlib that shows how to do this: http://dlib.net/dnn_face_recognition_ex.cpp.html
compute_face_descriptor()is coming fromdlib.face_recognition_model_v1(face_recognition_model)face_recognition_modelcontainsdlib_face_recognition_resnet_model_v1.datsee here https://github.com/ageitgey/face_recognition_models/blob/master/face_recognition_models/init.py