Go to Post We can relate anything back to water, and by anything, I literally mean ANYTHING. Surfing around on Chief Delphi has proven that to me. - karomata [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread Today, 01:33
arichman1257's Avatar
arichman1257 arichman1257 is offline
VP, Control Systems Captain, Coach
AKA: Alan Richman
FRC #1257 (Parallel Universe)
Team Role: Electrical
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Fanwood, New Jersey, USA, Earth...
Posts: 79
arichman1257 will become famous soon enougharichman1257 will become famous soon enough
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
__________________
1257 Parallel Universe: 2014 - 2017 Seasons
2017: Vice President, Control Systems Captain, Drive Coach
2016: Control Systems Captain, Operator. MAR District Championship Winner, MAR Mt. Olive Event Winner, MAR Bridgewater-Raritan Event Finalist
2015: Control Systems, Operator. MAR North Brunswick Event Finalist
2014: Programming/Electronics Apprentice. MAR Clifton Event Winner
Reply With Quote
Reply


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 03:02.

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