Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hey,

do you mean the location of the object in the image? You can simply calculate the bounding box of the contour and retrieve the coordinates of it.

For measuring the size of the object you can use a reference object of known size in the image. Put a quarter or something else on the image and calculate how many pixels represent the size of the quarter. With this information you can calculate the size of your object. There are plenty examples of that on the internet.

I'm also an OpenCV beginner, but I hope this will help you a little.

Best Regards Daniel