1 | initial version |
I threshold the image for other processing before finding contours then I applied Canny and this causes my problem and after removing canny and use RETR_CCOMP mode which gives 2 level of hierarchy, I can now get the correct result.