Webcam Based Laser Rangefinder

5 次查看(过去 30 天)
Yogesh
Yogesh 2013-9-19
"laser-beam is projected onto an object in the field of view of a camera. This laser beam is ideally parallel to the optical axis of the camera. The dot from the laser is captured along with the rest of the scene by the camera. A simple algorithm is run over the image looking for the brightest pixels. Assuming that the laser is the brightest area of the scene the dots position in the image frame is known. Then we need to calculate the range to the object based on where along the y axis of the image this laser dot falls. The closer to the center of the image, the farther away the object is D = h /tan (theta) where thefa = pfc * rpc + ro ."
can anybody help me regarding this project?
  9 个评论
Yogesh
Yogesh 2013-9-26
I had tried lots of time but not getting and I am very confused now can u please mail the code at yogerocks@gmail.com
Walter Roberson
Walter Roberson 2013-9-26
What is your current algorithm, taking into account the hint I gave you ?

请先登录,再进行评论。

回答(2 个)

Walter Roberson
Walter Roberson 2013-9-25
regionprops() can give you the equivalent-radius of a blob. But the actual radius is constant. So now what you need to consider is this: if you have two line segements of the same length, and one is N times further away than the other, then how will the angular size of the two line segments differ?
Hint: the spreading angle from the center of the beam (center of the optical axis) does not change with distance.

ravi
ravi 2014-2-20
this code is a part of rangefinder
<http://www.mathworks.in/matlabcentral/fileexchange/45638-laser-spot-detection>
hope this will help good luck
  2 个评论
erol karatas
erol karatas 2016-8-26
hi ravi that link doesnt work . could you update links please.
Walter Roberson
Walter Roberson 2016-8-27
The file appears to have been withdrawn or administratively deleted.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by