Lately, I have encountered the following problem, namely how to recognize the shapes of particular polygons. I have realized that quite straightforward to do so when the polygons are separated by using OpenCV library as shown in the following topics example 1 example 2
My question, however, is quite more complex and concerns how to detect polygons when they share a side, like for instance in the picture attached to this question
Anyone has any suggestions? Maybe some other tool might be able to perform such an analysis?