I am trying to get the height of a flying object from the ground using single camera
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to find the height of an object from the ground using single camera . Camera is place at top . Is there any way to get the distance of flying object to the camera from the 2d images.
댓글 수: 0
답변 (2개)
Bjorn Gustavsson
2018년 8월 8일
Perhaps, provided that you know the physical sizes of the object and the field-of-view of your camera then it might be possible.
HTH
댓글 수: 3
Bjorn Gustavsson
2018년 8월 8일
Draw two lines intersecting with the angle of your field-of-view, plot a line perpendicular to the line bisecting the two lines (inside the field-of-view area), the part of that line between points where it intersects the f-o-v-lines illustrates your image detector. Then mark the imag location of the imaged object on that line. If you know the real-world size of that object you get the distance to the camera by the power of equal triangles. If you draw this with pen and paper step by step with some thinking between the steps you should get the simple pin-hole projection geometry of this task. This is obviously simplified to a 2-D world and 1-D image but the generalization to 3-D world and 2-D image follows naturally.
HTH
Jim Riggs
2018년 8월 8일
편집: Jim Riggs
2018년 8월 8일
There are two reasons why an object off-boresight looks smaller than an object that is in the center of the field of view.
Take an object which is in the center of the camera field of view (position (1)) and move it in the same plane to an off-boresight position (position (2)). The object at position (2) is now actually further away from the camera, and appears to be rotated by the viewing angle. Both of these effects cause the object to appear smaller.
댓글 수: 2
Bjorn Gustavsson
2018년 8월 9일
No. That is the variation of solid angle as seen from the lens of an object translated from the optical axis. For the simplest pin-hole optics the image size of the two line-segments would be identical. For physical lens-systems with different optical projection functions (I dislike the sorting barrel and pincushion effects into the distortions) things become more complicated. What might be a more relevant problem is the proper shape of the object, see the modified image:
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Support Package for USB Webcams에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!