I have created an app which will detect the rectangle shapes using open cv. I am finding the edges using Imgproc.Scharr() method. Then drawing line over the detected image using drawContour() method. As per the requirement I need to find the actual height and width of the object. Please help me to do this. I am using android studio and java for the development