Hi,
I got the following error when running the code under the following setup:
Ubuntu 16.04 (4.4.0-97)
Python 2.7.12
OpenCV 3.3.0.10
DLib 19.7.0
SciPy 0.19.0
Traceback (most recent call last):
File "demo.py", line 49, in
demo()
File "demo.py", line 28, in demo
lmarks = feature_detection.get_landmarks(img)
File "~/face-frontalization/facial_feature_detector.py", line 22, in get_landmarks
predictor = dlib.shape_predictor(predictor_path)
Boost.Python.ArgumentError: Python argument types in
shape_predictor.__init__(shape_predictor, str)
did not match C++ signature:
__init__(boost::python::api::object, std::string)
__init__(_object*)
This is the line 22 of facial_feature_detector.py file:
predictor = dlib.shape_predictor(predictor_path)
Any ideas? What should I change to make the code work?
Thank you.
Hi,
I got the following error when running the code under the following setup:
Ubuntu 16.04 (4.4.0-97)
Python 2.7.12
OpenCV 3.3.0.10
DLib 19.7.0
SciPy 0.19.0
This is the line 22 of facial_feature_detector.py file:
predictor = dlib.shape_predictor(predictor_path)Any ideas? What should I change to make the code work?
Thank you.