Linked Questions

Popular Questions

How to find "regions" in a contour OpenCV?

Asked by At

Say we have the following contour information from OpenCV contours:

enter image description here

What I mean by a "region" is a subset of the contour with low directional variation.

So for example these, could be regions in the provided example:

enter image description here

One way to detect these could be, doing a local neighborhoud comparison of the dot products of the tangent at each point. (i.e see how much the tangent changes locally).

I was wondering however if there is a better way to do this, using OpenCV directly rather than doing vector operations myself.

Related Questions