1 | initial version |
You don't need Hough transform here. Just create the contour, trace all its points, and for each point calculate the angle between 2 segments of the polygon which meet at this point. If the angle is substantially less that 180 degrees, that's your separation point.