Closed ManuelTS closed 5 years ago
It looks like you are not properly linking the opencv shared library. You need to make sure you add the library .so files in addition to the header files. https://docs.opencv.org/3.1.0/db/df5/tutorial_linux_gcc_cmake.html
I would recommend just using the native functions in dlib for visualization: https://stackoverflow.com/a/37563733 http://dlib.net/imaging.html
Your first link made me realize that instead of
add_ex_link(face_landmark_detection_ex ${EXTRA_LIBS} ${OpenCV_LIBS})
I had
add_ex_link(face_landmark_detection_ex ${EXTRA_LIBS})
in my CMakeLists.txt
. I'm almost embarrassed how trivial this error was. Thank you very much!
I changed your
face_landmark_detection.cpp
file to a bare minimum for better overview and I only want to have an output of the first image where not lines or circles are the overlay landmarks but rather the numbers of the landmarks themself. I trained successfully with the 194 features the shape predictor with the helen dataset which works perfectly on my changed version of yourwebcam_face_pose_ex.cpp
. But I'm unable to compile theface_landmark_detection.cpp
with this additional dependency:needed to print numbers instead of lines or circles. My changed
face_landmark_detection.cpp
:The compiler output for
cmake .. && cmake --build . --config Release
is:I know this is a standard problem and I googled a lot to figure this out but I cannot resolve it on my own :(