Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Distance Measurements to Target (http://www.chiefdelphi.com/forums/showthread.php?t=155150)

sgk525 11-02-2017 23:59

Distance Measurements to Target
 
Hi, we are currently using the Microsoft Lifecam-3000 with a raspberry pi for vision tracking and distance measurements. We can find the pixel height of the bounding box of the two vision rectangles and are inputting it into the equation:

distance: 0.83 (actual height of bounding box (ft)) * 480 (y-pixel resolution) / 2 * pixelHeight * tan( 14.9 (vertical view angle in degrees) )

When testing this formula, we have found that distance measurements are within 2-3 in. when the target is 2-4 m. away; however, from 1- 2 m, the error is around 10 in. We were wondering if there is anyway to prevent this, or if there is another, more-robust method to calculate the distance to the target.

arichman1257 12-02-2017 01:33

Re: Distance Measurements to Target
 
https://acroname.com/products/r93-srf04?sku=R93-SRF04

This is an ultrasonic distance sensor. It is great for this application

GeeTwo 12-02-2017 05:48

Re: Distance Measurements to Target
 
The easy method using the camera is an empirical curve.

That is, position the robot at a series of measured distances from the vision target, take pictures and measure the vertical height. Then, use you measured height during the match and interpolate into the curve you measured.

It will likely require re-measurement if you move the camera to a different location.


All times are GMT -5. The time now is 06:15.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi