I want to detect existence of continuous or closed polygon in binary image. The image may contain polygon of variable number of edges and also there may be no polygon at all.
Here is the positive case:

And,
this one is negative case:

Is there any method in image processing or some algorithm to detect continuous polygon ?
Any kind of help is appreciated.
If you need to detect both concave and convex polygons, then I can suggest you another way to do it, one has already have been told by @mdh
Of course there may be some errors in self-intersecting polygons, and/or if there are more than one contour in an image, but this may be fixed by a segmentation picking just the bounding box of the contour and apply the algo on each one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With