Je suis en suivant les instructions sur cette page: http://www.learnopencv.com/facial-landmark-detection/erreur d'importation lors de l'utilisation python Dlib
1.Download une copie de github
clone git https://github.com/davisking/dlib.git
Construire des exemples (OSX/Linux)
cd/Dlib exemples
mkdir construire
cd construire
cmake ..
CMake --build. --config Release
Compile module python Dlib
cd/Dlib python_examples
./compile_dlib_python_module.bat
post-scriptum sur cette étape, je n'ai pas trouvé ce fichier dans mon dossier python_examples, j'ai donc googlé et téléchargé un fichier et je l'ai utilisé.
export PYTHONPATH =/path/to/Dlib/python_examples: $ PYTHONPATH
Ensuite, je suis allé à la borne et a ajouté que la ligne au fond de mon mon fichier .bash_profile.
# Setting PATH for Python 3.4
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"
export PATH
# Setting PATH for Python 3.4
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"
export PATH
export PYTHONPATH=/Users/leoli/dlib/python_examples:$PYTHONPATH
Enfin, je dactylographiées `python -c "Dlib import" dans le terminal, mais reçu cette erreur
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: dlopen(./dlib.so, 2): Library not loaded: libboost_python.dylib
Referenced from: /Users/leoli/dlib/python_examples/dlib.so
Reason: unsafe use of relative rpath libboost_python.dylib in ./dlib.so with restricted binary
J'utilise OSX 10.11.5
découvert que le soutien na pas Dlib osx 10,11 .. –