Go to Post My son just said, "That's the kind of thing that you talk about in strategy sessions then say, 'nah, that would never really work.'" Un-be-freaking-lievable. - Rick TYler [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread Yesterday, 23:59
sgk525 sgk525 is offline
Registered User
FRC #5465
 
Join Date: Jan 2016
Location: Chandler, AZ
Posts: 5
sgk525 is an unknown quantity at this point
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.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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