Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boost.Python.ArgumentError #19

Open
mcarletti opened this issue Oct 27, 2017 · 1 comment
Open

Boost.Python.ArgumentError #19

mcarletti opened this issue Oct 27, 2017 · 1 comment

Comments

@mcarletti
Copy link

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.

@dougsouza
Copy link
Owner

dougsouza commented Oct 30, 2017

Hello,

This looks like an error from dlib itself. Have you tried building dlib from source? Also, check your version of boost python to see if it is supported by dlib. If it doesn't help, I suggest looking for help in their community, they are very helpful.

Cheers,

Douglas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants