You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And tried to morph from a source to destination image.
However, I got following error.
Does this have anything to do with my python3.7.2 and openCV4.0.1 version?
Thanks!
Traceback (most recent call last):
File "facemorpher/morpher.py", line 34, in <module>
from facemorpher import locator
File "/Users/me/face_morpher/facemorpher/__init__.py", line 4, in <module>
from .morpher import morpher, list_imgpaths
File "/Users/me/face_morpher/facemorpher/morpher.py", line 34, in <module>
from facemorpher import locator
File "/Users/me/face_morpher/facemorpher/locator.py", line 7, in <module>
import stasm
File "/Users/me/.virtualenvs/py3/lib/python3.7/site-packages/stasm/__init__.py", line 3, in <module>
from _stasm import __doc__
ImportError: dlopen(/Users/me/.virtualenvs/py3/lib/python3.7/site-packages/_stasm.cpython-37m-darwin.so, 2): Library not loaded: /usr/local/opt/opencv/lib/libopencv_core.3.4.dylib
Referenced from: /Users/me/.virtualenvs/py3/lib/python3.7/site-packages/_stasm.cpython-37m-darwin.so
Reason: image not found
The text was updated successfully, but these errors were encountered:
Thanks! I will try to install openCV3 brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/aaf45348653fc45674b7d798404f2cc9700e6f9c/Formula/opencv.rb
I also needed to remove from locator.py the function "face_points_stasm" to avoid the import. Also I needed to set in morpher change the import "from facemorpher import $module" to just import $module
I tried the latest tutorial about installing openCV4 :
https://gist.github.com/alyssaq/f60393545173379e0f3f#file-4-opencv3-with-python3-md
And tried to morph from a source to destination image.
However, I got following error.
Does this have anything to do with my python3.7.2 and openCV4.0.1 version?
Thanks!
The text was updated successfully, but these errors were encountered: