Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

that's because from your code the upper contour is open. Look below:

image description

so just modify the canny thresholds in order to get the whole contour ;-)