Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

Hi, I'm trying to use my own trained cascade, when i execute the code in Xcode, i get the below error

OpenCV Error: Assertion failed (!empty()) in detectMultiScale, file /Users/vp/work/opencv/modules/objdetect/src/cascadedetect.cpp, line 1578 libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /Users/vp/work/opencv/modules/objdetect/src/cascadedetect.cpp:1578: error: (-215) !empty() in function detectMultiScale

What could be the issue ?