Measuring height and weight of rectangle
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
"I need to find the actual height and width of the object." -- you mean, in the real world ?
have a look here , you need to know the focal length, and the distance. (or, at least an object with known size at the same distance)
also, there's a boundingRect() method for contours, look it up, please.
yes in real world
so, try to understand the pinhole model.