1 | initial version |
Another issue that has appeared - what if contour is not closed? The function
findContours(CANNY_IMAGE, contours, RETR_EXTERNAL, CHAIN_APPROX_SIMPLE);
finds (divided) components of the actual contour and then the rectangle function assigns an adjusted rectangle to each of the components. The worse it gets when I have two objects to be identified on the image. What shall I do in the first case? Is there any function to make a continuous extrenal contour?