Exception raised when trying the face detection example
I tried the Face detection example in Python (http://docs.opencv.org/trunk/doc/py_tutorials/py_objdetect/py_face_detection/py_face_detection.html)
and got the following traceback:
OpenCV Error: Assertion failed (!empty()) in cv::CascadeClassifier::detectMultiScale, file ......\ ..\opencv\modules\objdetect\src\cascadedetect.cpp, line 1580 Traceback (most recent call last): File "detect_face.py", line 10, in <module> faces = face_cascade.detectMultiScale(gray, 1.3, 5) cv2.error: ........\opencv\modules\objdetect\src\cascadedetect.cpp:1580: error: (-215) !empty() i n function cv::CascadeClassifier::detectMultiScale
This is using OpenCV 3.0 Beta on Windows 8.1 with Python2.7. I have successfully run other examples. If I comment out the offending line (and the for loop that follows), my chosen image displays just fine.
Is there something incorrect with this example - or did I do something wrong. (When I used the installer, I simply copied the pyd file as instructed in the site-packages, and then deleted the other files that had been created during the install problem.)
(Aside: numpy does not appear to be needed for this example.)