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
Some answers from Stackoverflow suggest running these command: pip install opencv-python and pip install OpenCV-contrib-python. After doing that, however, import cv2 gets an error and version check fails as well.
So, anyone got a solution?
PS: Pillow is installed and I'm doing all of these within the 'cv' virtual environment.
The text was updated successfully, but these errors were encountered:
@WBTHL I have met the same problem and I found the solution at StackOverflow.
You should try pip install opencv-contrib-python
and it should work after you execute it.
As it works fine for me.
After checking the build folder for OpenCV installation, I finally find out what's wrong. All modules from opencv_contrib are not installed due to a silly typing error during the installation... And that explains why I'm missing the 'face' module. Thanks again!
@WBTHL I have met the same problem and I found the solution at StackOverflow.
You should try pip install opencv-contrib-python
and it should work after you execute it.
As it works fine for me.
I got this error while trying to run 02_face_training.py. I think I got opencv_contrib successfully installed by following Adrian Rosebrock's Raspbian Stretch: Install OpenCV 3 + Python on your Raspberry Pi. cv2.version also returns the correct value.
Some answers from Stackoverflow suggest running these command: pip install opencv-python and pip install OpenCV-contrib-python. After doing that, however, import cv2 gets an error and version check fails as well.
So, anyone got a solution?
PS: Pillow is installed and I'm doing all of these within the 'cv' virtual environment.
The text was updated successfully, but these errors were encountered: