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.