Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

cars = carCascade.detectMultiScale(gray, 1.1, 13, 18, (24, 24)) cv2.error: OpenCV(4.0.1) C:\ci\opencv-suite_1573470242804\work\modules\objdetect\src\cascadedetect.cpp:1658: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale' #12

Open
raghubetageri opened this issue Jan 10, 2020 · 1 comment

Comments

@raghubetageri
Copy link

i got an error. plz why this error cars = carCascade.detectMultiScale(gray, 1.1, 13, 18, (24, 24))
cv2.error: OpenCV(4.0.1) C:\ci\opencv-suite_1573470242804\work\modules\objdetect\src\cascadedetect.cpp:1658: error: (-215:Assertion
failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'

@tatarenstas
Copy link

i got an error. plz why this error cars = carCascade.detectMultiScale(gray, 1.1, 13, 18, (24, 24))
cv2.error: OpenCV(4.0.1) C:\ci\opencv-suite_1573470242804\work\modules\objdetect\src\cascadedetect.cpp:1658: error: (-215:Assertion
failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'

You probably need to specify a valid path to the xml file

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants