OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Sun, 29 Oct 2017 16:48:34 -0500How to compute the 3D location of a 2D point on the ground?http://answers.opencv.org/question/177170/how-to-compute-the-3d-location-of-a-2d-point-on-the-ground/I know the focal length f and the principal point of a camera P(x,y) and I can assume the ground plane is orthogonal to the image plane.
I have a 2D point on the picture that I know is on the ground, how do I get it on 3D using camera coordinates.
However I am not sure how to approach this? Any advice is appreciated.Sun, 29 Oct 2017 11:41:51 -0500http://answers.opencv.org/question/177170/how-to-compute-the-3d-location-of-a-2d-point-on-the-ground/Answer by Tetragramm for <p>I know the focal length f and the principal point of a camera P(x,y) and I can assume the ground plane is orthogonal to the image plane.</p>
<p>I have a 2D point on the picture that I know is on the ground, how do I get it on 3D using camera coordinates.
However I am not sure how to approach this? Any advice is appreciated.</p>
http://answers.opencv.org/question/177170/how-to-compute-the-3d-location-of-a-2d-point-on-the-ground/?answer=177177#post-id-177177Do you simply want the range from the camera? Or do you need precise 3d location?
Either way you need
1. The focal length in mm or the size of the FPA in mm.
2. The height above the ground.
3. If you want the precise 3d location, you need where the camera is, over the ground.
This assumes the point you want is level with the ground. If it is notably off the ground, you can't do it with one stationary camera.Sun, 29 Oct 2017 14:09:24 -0500http://answers.opencv.org/question/177170/how-to-compute-the-3d-location-of-a-2d-point-on-the-ground/?answer=177177#post-id-177177Comment by Tetragramm for <p>Do you simply want the range from the camera? Or do you need precise 3d location?</p>
<p>Either way you need</p>
<ol>
<li>The focal length in mm or the size of the FPA in mm.</li>
<li>The height above the ground.</li>
<li>If you want the precise 3d location, you need where the camera is, over the ground.</li>
</ol>
<p>This assumes the point you want is level with the ground. If it is notably off the ground, you can't do it with one stationary camera.</p>
http://answers.opencv.org/question/177170/how-to-compute-the-3d-location-of-a-2d-point-on-the-ground/?comment=177188#post-id-177188You need the height of an object? And you know the xy of the camera and the xy of the object?Sun, 29 Oct 2017 16:48:34 -0500http://answers.opencv.org/question/177170/how-to-compute-the-3d-location-of-a-2d-point-on-the-ground/?comment=177188#post-id-177188Comment by danoc93 for <p>Do you simply want the range from the camera? Or do you need precise 3d location?</p>
<p>Either way you need</p>
<ol>
<li>The focal length in mm or the size of the FPA in mm.</li>
<li>The height above the ground.</li>
<li>If you want the precise 3d location, you need where the camera is, over the ground.</li>
</ol>
<p>This assumes the point you want is level with the ground. If it is notably off the ground, you can't do it with one stationary camera.</p>
http://answers.opencv.org/question/177170/how-to-compute-the-3d-location-of-a-2d-point-on-the-ground/?comment=177181#post-id-177181If I have an x,y I need to get an x,y,z for some point x,y but I am not sure what the mathematical process is. Can you help me ? I could implement the algorithm myselfSun, 29 Oct 2017 14:52:16 -0500http://answers.opencv.org/question/177170/how-to-compute-the-3d-location-of-a-2d-point-on-the-ground/?comment=177181#post-id-177181