Closed pythonanonuser closed 8 years ago
Thanks for trying out!
This error comes from a small API change between dlib-18.16
and dlib-18.17
.
Since dlib
does not provide any easy way to get its version number, I did not fix the issue in a proper way yet.
In the meantime, just add:
#include <dlib/image_processing.h>
near the top of head_pose_estimation.hpp
, and this should solve you issue.
To fix it, you need
Note that dlib
has another issue related to position independent code: to successfully link (anything) to dlib
, you also need to modify dlib's CMakeLists
(found in $DLIB_ROOT/dlib/CMakelists.txt
) and add add_definitions(-fPIC)
near the top (around line 20).
@12rohanb Does it work for you now? can I close the issue?
Sorry for the delay. I was having some trouble compiling earlier, but everything's working great now. Thanks for the advice.
Fine, closing the issue.
Hi,
I was just testing out this library for a project on Mac OSX 10.9. When trying to make the examples after running cmake I was getting the following error associated with the file head_pose_estimation.hpp:
error: no type named 'shape_predictor' in namespace 'dlib' dlib::shape_predictor pose_model;
I have the shape predictor file for dlib to detect the landmarks. Just a bit confused as how to proceed. Any advice?
Thanks!