Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Measuring Width & Height of Bounding Box

I am a noob in OpenCV and i would like to use OpenCV to take some basic measurement of the object in photos and videos. I have read and tried a sample code about bounding box for contours, however I would like to modify it to measuring the value of the width and height of the bounding box.

Creating Bounding rotated boxes and ellipses for contours

I have read some posts here about this and the most obvious solution is to retrieve the 4 points of the bounding box, however how can i retrieve those variable in the code?

I have very little background in programming, so it would be appreciated if more detailed steps or codes are available. Thanks a lot.