OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Mon, 18 Feb 2019 11:24:00 -0600how to calculate real object width and height with known distance ?http://answers.opencv.org/question/88639/how-to-calculate-real-object-width-and-height-with-known-distance/ 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..Fri, 26 Feb 2016 01:07:35 -0600http://answers.opencv.org/question/88639/how-to-calculate-real-object-width-and-height-with-known-distance/Comment by syvlvester for <p>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..</p>
http://answers.opencv.org/question/88639/how-to-calculate-real-object-width-and-height-with-known-distance/?comment=209020#post-id-209020Hi,
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.Mon, 18 Feb 2019 11:24:00 -0600http://answers.opencv.org/question/88639/how-to-calculate-real-object-width-and-height-with-known-distance/?comment=209020#post-id-209020Comment by amir_pro for <p>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..</p>
http://answers.opencv.org/question/88639/how-to-calculate-real-object-width-and-height-with-known-distance/?comment=88746#post-id-88746first, you can read about stereo camera calibration. i think if you can find depth first, then you can find the width and height.Sat, 27 Feb 2016 05:25:44 -0600http://answers.opencv.org/question/88639/how-to-calculate-real-object-width-and-height-with-known-distance/?comment=88746#post-id-88746Answer by Tetragramm for <p>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..</p>
http://answers.opencv.org/question/88639/how-to-calculate-real-object-width-and-height-with-known-distance/?answer=88705#post-id-88705You 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.Fri, 26 Feb 2016 14:22:53 -0600http://answers.opencv.org/question/88639/how-to-calculate-real-object-width-and-height-with-known-distance/?answer=88705#post-id-88705