Find the height and width of rectangle object in image using python?

Any one have idea to find the height and width of rectangle object in grid image. The grid has 11.5 mm length one to another center point of circle. if any possible way share the link of website or code in python(opencv).