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

Python camera_reader.py error occurs #9

Open
Norcy opened this issue Jan 15, 2017 · 4 comments
Open

Python camera_reader.py error occurs #9

Norcy opened this issue Jan 15, 2017 · 4 comments

Comments

@Norcy
Copy link

Norcy commented Jan 15, 2017

Model Loaded.
OpenCV Error: Assertion failed (!empty()) in detectMultiScale, file /Users/jenkins/miniconda/1/x64/conda-bld/work/opencv-3.1.0/modules/objdetect/src/cascadedetect.cpp, line 1639
Traceback (most recent call last):
File "camera_reader.py", line 25, in
facerect = cascade.detectMultiScale(frame_gray, scaleFactor=1.2, minNeighbors=3, minSize=(10, 10))
cv2.error: /Users/jenkins/miniconda/1/x64/conda-bld/work/opencv-3.1.0/modules/objdetect/src/cascadedetect.cpp:1639: error: (-215) !empty() in function detectMultiScale

Cleaned up camera.

@Norcy
Copy link
Author

Norcy commented Jan 15, 2017

solution:

cascade_path = "/usr/local/opt/opencv/share/OpenCV/haarcascades/haarcascade_frontalface_default.xml"

to my own xml file path.

@linjianing1997
Copy link

yes i did the same

@simimasen
Copy link

where to find that xml exactly? It's not in my current folder nor in my opencv folder

@simimasen
Copy link

solved it. my opencv installed through my Anaconda, I found this xml file in there.

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

3 participants