Ask Your Question
0

how to calculate real object width and height with known distance ?

asked 2016-02-26 01:07:35 -0600

Sujith gravatar image

Hi all, I want to calculate real width and height of the object, I can give distance of objects from camera, please help any one to find the solution..

edit retag flag offensive close merge delete

Comments

first, you can read about stereo camera calibration. i think if you can find depth first, then you can find the width and height.

amir_pro gravatar imageamir_pro ( 2016-02-27 05:25:44 -0600 )edit

Hi,

Could you find out any solution? I have calibrated two camera by stereoCalibrate and also calculate the depth. But I can not figure out how to step further at this point.

syvlvester gravatar imagesyvlvester ( 2019-02-18 11:24:00 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-02-26 14:22:53 -0600

Tetragramm gravatar image

You need a few more pieces of information, all about the camera. Fortunately, OpenCV can help obtain those. You need information about the distortion of the lens and it's field of view.

The most important of these is the field of view. This is how much angular distance that each pixel covers. If you don't need precise numbers, you can calculate this by putting a known size object at a known distance, looking at the number of pixels it occupies in both vertical and horizontal directions. Simple trig, and you have the angle.

If you need more precise width and heights, you can use the Camera Calibration functions of OpenCV to determine what you need.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-02-26 01:07:35 -0600

Seen: 1,105 times

Last updated: Feb 26 '16