Name the parameters to cv::CascadeClassifier::detectMultiScale correctly
Closed this issue · 2 comments
Review the paramters passed to the detectMultiScale function
Line 39 in ab9b95b
References:
https://docs.opencv.org/3.0-beta/modules/objdetect/doc/cascade_classification.html
https://github.com/opencv/opencv/blob/master/samples/python/facedetect.py
cv2.error: OpenCV(4.1.0) /io/opencv/modules/objdetect/src/cascadedetect.cpp:1658: error: (-215:Assertion failed) !empty() in function 'detectMultiScale'
what is this error?
cv2.error: OpenCV(4.1.0) /io/opencv/modules/objdetect/src/cascadedetect.cpp:1658: error: (-215:Assertion failed) !empty() in function 'detectMultiScale'
what is this error?
You need to to specify the location of the cascade classifiers files. Edit the location in conifg.py
. You should find the classifier files when you install the opencv contrib package.