필터 지우기
필터 지우기

Can I get distance to an object using single camera

조회 수: 8 (최근 30일)
Ashmil Mohammed
Ashmil Mohammed 2015년 6월 10일
댓글: Ashmil Mohammed 2015년 6월 11일
Is there anyway I can find the distance to an object from a camera image? actual size of object,and perpendicular distance between camera and object is also known. (object-->on ground & camera-->above ground). I went through all the previous questions and their answers.No clear cut solution was found. Please help me...

채택된 답변

Image Analyst
Image Analyst 2015년 6월 10일
Depends on the camera. If it's a Lytro/lightfield camera or some other kind of multi-lens camera, or a Kinect camera, then yes. Otherwise no. If I have a photo of the moon, how do I know if it's the real moon that you snapped through a telescope, or a photo you took of a poster of the moon on your office wall? You don't.
  댓글 수: 6
Image Analyst
Image Analyst 2015년 6월 11일
Yes. It just gives you the measurement for the actual distances you measure. For that phone, you could probably pick a variety of places to measure between and get a variety of lengths. Also, if your objects are not in same plane, the spatial calibration will be different. For example that panel on the wall is only half as wide (in pixels in the image) as the 6 cm ball but I know from contextual knowledge that it is not 3 cm wide. So for 3D you need multiple angles. The camera calibration in the Computer Vision System Toolbox can help with that.
Ashmil Mohammed
Ashmil Mohammed 2015년 6월 11일
Thanks a lot! I will now move on to camera calibration toolboox.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile 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!

Translated by