Kondo KRS ICS Servos icon Kondo KRS ICS Servos Control Kondo KRS ICS2/3.5 servos via EZ-B UART; experimental, untested. Supports chaining, virtual servo ports, Release() and Servo() commands. Try it →
Asked — Edited

Distance Measurement With Camera

At one point last summer DJ had mentioned possibly implementing distance measurement using the camera. Is this a feature in V4? I just ordered mine yesterday so I guess I'll find out soon enough...just curious.


ARC Pro

Upgrade to ARC Pro

Discover the limitless potential of robot programming with Synthiam ARC Pro – where innovation and creativity meet seamlessly.

Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#1  

If you know the size of the reference object you could work out the distance to it using the variables $CameraObjectWidth and $CameraObjectHeight the camera produces.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#2  

There will never be effective distance measurement on a single 2d camera. For distance measurement using cameras, there needs to be at minimum 2 (Stereoscopic) - that is how the xBox Connect works, by having two cameras. Well, that is also how you work! That is why you have two eyes.:)

#3  

Assuming the distance is constant, or slow moving, you could have the camera on some kind of sliding mount and take two pictures from two positions and compare them to get depth perception. That is how the new "Lensblur" feature in the Google Android camera software works. However, having a second camera like my HTC One_M8 to capture depth data is a whole lot easier and faster.

Alan

#4  

Thanks for the replies.

  I thought I remembered DJ mentioning it before so I thought I would ask. I'm fine with my pot and gearbox for now.