Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Well, I seem to have solved the problem, though I'm not sure why...

By using:

contours2f.fromArray(contours.toArray());

instead of:

contours.copyTo(contours2f);

to copy the content of my MatOfPoint into my MatOfPoint2f, I don't fail the assertion anymore and my program is running fine (except it finds waaaay too many squares, but I'm trying to tweak it).