Occasional crashes in cv::CascadeClassifier.detectMultiScale

asked 2012-10-06 15:10:17 -0500

tmanthey gravatar image

From time to time I get this exception:

"X:\Dev\git\opencv-2.4\modules\imgproc\src\shapedescr.cpp:799: error: (-201) Number of points should be >= 5 in function CvBox2D cvFitEllipse2(const CvArr*)"

This happens when running opencv on android 4.0.4. We use the latest opencv manager with up to date 2.4.2 neon module.

Any ideas howto avoid this?

edit retag flag offensive close merge delete


You exception has nothing to do with CascadeClassifier.

Andrey Kamaev gravatar imageAndrey Kamaev ( 2012-10-06 16:39:42 -0500 )edit

you are right. I could not exactly track down the source of the exception in the native code. But your answer helped a lot! Thanks.

tmanthey gravatar imagetmanthey ( 2012-10-07 03:14:35 -0500 )edit