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
When cloning and then running the detection.py file I got the following error: [Error:(-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'](https://stackoverflow.com/questions/66942582/error-215assertion-failed-empty-in-function-cvcascadeclassifierdetec)
After a quick google the solution was to add cv2.data.haarcascades before referencing the .xml file.
#[...]
face_cascade=cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_frontalface_default.xml") #Note the change
#[...]
When cloning and then running the detection.py file I got the following error:
[Error:(-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'](https://stackoverflow.com/questions/66942582/error-215assertion-failed-empty-in-function-cvcascadeclassifierdetec)
After a quick google the solution was to add cv2.data.haarcascades before referencing the .xml file.
Source: https://stackoverflow.com/questions/66942582/error-215assertion-failed-empty-in-function-cvcascadeclassifierdetec
The text was updated successfully, but these errors were encountered: