HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

find the actual size of an object from pixel coordinates

Submitted by: @import:stackexchange-cs··
0
Viewed 0 times
fromthecoordinatesactualpixelsizefindobject

Problem

I am quite new to vision and OpenCV, so forgive me if this is a stupid question but I have got really confused.

My aim is to detect an object in an image and estimate its actual size. Assume for now I only want length and width, not depth.
Lets say I can detect the object, find its size(length and width) in pixels and I have both the intrinsic and extrinsic parameters of the camera.

The documentation of camera calibration as I understand says that the intrinsic and extrinsic camera parameters can be used to transform from camera coordinate system to world coordinate system. So this should mean converting from pixel coordinates to real coordinates right? And so I should be able to use pixel size and these params to find the real size?

But, say the object is photographed at different depth (distance from camera), then its size would come out different using above method. So.....what does it mean transforming from camera to world coordinates?

Any kind of explaination/links/help would be highly appreciated.

Solution

Unfortunately you can't estimate the real size of an object from an image, since you do not know the distance of the object to the camera.

Geometric Camera Calibration gives you the ability to project a 3D world point onto your image but you can not project a 2D image point into the world without knowing its depth.

Context

StackExchange Computer Science Q#44397, answer score: 2

Revisions (0)

No revisions yet.