how can I measure the distance between camera and object usingle single camera

조회 수: 48 (최근 30일)
i have a single camera and i detect the object. now i'm trying to detect the distance between object and my camera.

채택된 답변

Florian Morsch
Florian Morsch 2018년 6월 6일
편집: Florian Morsch 2018년 6월 6일
Without a properly calibrated camera and a reference object of some sort this is not possible. You can estimate the distance with some tricks, but with a single camera its not easy.
Right now im writing my final year project about exacly that topic, took me 2 months and a special designed marker to achieve the measurement of distance and angle from the camera to the object. If i dont have the marker the results are wrong. If i want to measure a distance behind or in front of the marker: wrong.
If you take a image with a single camera you only have a 2D picture, if you have a reference you can restore 3D information to the reference, but everything else without reference cant be restored properly. For that you would need another picture from a second camera (stereo vision).
EDIT: I should note that i have a moving camera and the object (marker) is stationary, so i cant just calibrate the camera once for a set distance and then use that as reference, since my distance changes.

추가 답변 (4개)

Varun Garg
Varun Garg 2018년 6월 6일
I think a similar kind of question has been asked and also accepted. Please have a look at this .
  댓글 수: 1
Kamran Asif
Kamran Asif 2018년 6월 6일
thanks for the reply sir, but my problem is to measure the distance between my camera and object. in the Link you shared, demo is about to measure the distance of any 2 points in the image

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


Fakhar Alam
Fakhar Alam 2019년 1월 3일
I have same sort of Question How to measure distance from camera to object using single camera Afterb Recognition Of object.
In the links below thesis explain some solution .
Its implementation are difficult.
https://zone.biblio.laurentian.ca/bitstream/10219/2458/1/Peyman%20Alizadeh%20MSc.%20Thesis%20Corrected_2_2.pdf

waqar ali
waqar ali 2020년 6월 21일
distance measure yourself camra to object

Suraj S Jain
Suraj S Jain 2020년 11월 27일
편집: Suraj S Jain 2020년 11월 27일
I have an approach that uses two cameras but there is no callibration or a reference object that is required. Feel free to check it out here. The setup is way simpler. The program can detect the distance to the object, as well as its real-world dimensions.
PS: the code is in Python

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for USB Webcams에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by