title: How to find total number of points in each polygon in an image
body: <p>I have a binary image as shown <a href="https://i.stack.imgur.com/QuSmU.png" rel="nofollow noreferrer">here</a>. I want to find total number of points each polygon have.For a given image , each polygon has one point. I guess that the approach to solve this problem is to first find polygons in the image for that I used cv2.findContours but not able to get polygons. Any help would be appreciated.</p>