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

Troubleshooting for MacOS 12.3.1+Python3.9.6+OpenCV4.5.5 #71

Open
ShuchangXu opened this issue May 29, 2022 · 0 comments
Open

Troubleshooting for MacOS 12.3.1+Python3.9.6+OpenCV4.5.5 #71

ShuchangXu opened this issue May 29, 2022 · 0 comments

Comments

@ShuchangXu
Copy link

ShuchangXu commented May 29, 2022

In case anyone is trying to run face_morpher on the Dlib branch, here are the solutions to some issues I encountered.

My environment:

MacOS 12.3.1 with M1 chip
Python 3.9.6
OpenCV 4.5.5

1. cv2 not found

Please install openCV as follows:

$ brew update
$ brew install opencv

In my case, openCV 4.5.5 is installed.

You may have to export PYTHONPATH:
export PYTHONPATH=$PYTHONPATH:/opt/homebrew/Cellar/opencv/4.5.5_2/lib/python3.9/site-packages (this is the path in my case)

2. symbol not found in flat namespace '_png_do_expand_palette_rgb8_neon'

Please reinstall dlib as follows:
pip3 install dlib --force-reinstall --no-cache-dir --global-option=build_ext

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

1 participant