I have an image as below :
I need to find out the number of rectangles,centre of each rectangle and the measure the angle between the axis parallel to the l
Here is how you can do it: