Hello,
I'm trying to draw countours (Java) and I get this error.
OpenCV Error: Assertion failed (0 <= contourIdx && contourIdx < (int)last) in drawContours, file ~/code/OpenCV/opencv-2.4.6.1/modules/imgproc/src/contours.cpp, line 1810
Exception in thread "main" CvException [org.opencv.core.CvException: /home/slani/code/OpenCV/opencv-2.4.6.1/modules/imgproc/src/contours.cpp:1810: error: (-215) 0 <= contourIdx && contourIdx < (int)last in function drawContours
]
at org.opencv.imgproc.Imgproc.drawContours_2(Native Method)
at org.opencv.imgproc.Imgproc.drawContours(Imgproc.java:5013)
at HsvImage.main(HsvImage.java:83)
Can someone please explain me what this error mean. Thanks,