Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Contour end points?

How do I find the end points on the contour(I have reduced them to discrete points) below?

image description

image description

image description

This how to find the end point of a contour solve me problem. As the starting of the contour detection was made from the middle of the contour by the function cv2.findcontour

Contour end points?

How do I find the end points on the contour(I have reduced them to discrete points) below?

image description

image description

image description

This how to find the end point of a contour doesn't solve me my problem. As the starting of the contour detection was made from the middle of the contour by the function cv2.findcontour

Contour end points?

How do The points found on these contour filtered image are not arrange in order from one end point to the other. They are jumbled up, I find want to arrange them from one point to the end other.

Please note

I have these contour detected by cv2.findContours

I have sliced one of the contour detected to get only points on after a particular interval in the contour(I have reduced them numpy array contour[::6]

Here are few images to discrete points) below?give you idea of what I mean.

image description

image description

image description

This how to find the end point of a contour doesn't solve my problem. As the starting of the contour detection was made from the middle of the contour by the function cv2.findcontour

Contour end points?

The points found on these contour filtered image are not arrange in order from one end point to the other. They are jumbled up, I want to arrange them from one point to the other.

Please note

I have these contour detected by cv2.findContours

I have sliced one of the contour detected to get only points after a particular interval in the numpy array contour[::6]

Here are few images to give you idea of what I mean.

image description

image description

image description