Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Error: Assertion failed (!empty()) in detectMultiScale

Hi I'm relatively new to OpenCV and python in general and trying to create a face-detecting webcam using the code from https://github.com/shantnu/Webcam-Face-Detect/blob/master/webcam_cv3.py

When I try to execute the code it returns with the following:

OpenCV Error: Assertion failed (!empty()) in detectMultiScale, file /home/pi/opencv-3.1.0/modules/ objdetect/src/cascadedetect.cpp, line 1639 Traceback (most recent call last): File "test4.py", line 29, in <module> minSize=(30, 30) cv2.error: /home/pi/opencv-3.1.0/modules/objdetect/src/cascadedetect.cpp:1639: error: (-215) !empt y() in function detectMultiScale

I'm just wondering what is causing this error and how to go about fixing it. Thanks in advance :)

OpenCV Error: Assertion failed (!empty()) in detectMultiScale

Hi I'm relatively new to OpenCV and python in general and trying to create a face-detecting webcam using the code from https://github.com/shantnu/Webcam-Face-Detect/blob/master/webcam_cv3.py

When I try to execute the code it returns with the following:

OpenCV Error: Assertion failed (!empty()) in detectMultiScale, file /home/pi/opencv-3.1.0/modules/ objdetect/src/cascadedetect.cpp, line 1639 Traceback (most recent call last): File "test4.py", line 29, in <module> minSize=(30, 30) cv2.error: /home/pi/opencv-3.1.0/modules/objdetect/src/cascadedetect.cpp:1639: error: (-215) !empt y() in function detectMultiScale

I'm just wondering what is causing this error and how to go about fixing it. Thanks in advance :)