Please can some one explain how to identify square shape of contours which are not exactly separated each other. For example I need to identify the number of squares in below image and the x,y coordinates of their edges. I try to go through this question but it didn't work for me.
So please can some one explain this using simple code example.
This is the image that I can generated can you please explain how to identify above squares in this image.
So please be kind enough to explain this.