the error message was OpenCV Error: Insufficient memory (Failed to allocate 118180608 bytes) in void* cv::OutOfMemoryError(size_t),
Caused by: CvException [org.opencv.core.CvException: cv::Exception: /builds/master_pack-android/opencv/modules/core/src/matrix.cpp:411: error: (-215) u != 0 in function void cv::Mat::create(int, const int*, int)] at org.opencv.objdetect.CascadeClassifier.detectMultiScale_0(Native Method)
at org.opencv.objdetect.CascadeClassifier.detectMultiScale(CascadeClassifier.java:150)
How I call detectMultiScale() and the related parameters.
patternCascadeClassifier.detectMultiScale(grayImage, patternRects, 1.09, 1, Objdetect.CASCADE_SCALE_IMAGE|Objdetect.CASCADE_FIND_BIGGEST_OBJECT|Objdetect.CASCADE_DO_CANNY_PRUNING, new Size(10,10), new Size(50, 50));
in my program flow, I gotta call detectMultiScale() for several times. and the exception always occurs on the 7th calling.
I have released the related image data but this error still occurs. Does anyone can tell me how to call detectMultiScale() correctly or did I miss some usages of detectMultiScale()?