View Single Post
  #20   Spotlight this post!  
Unread 11-02-2012, 14:45
ianonavy ianonavy is offline
Programming Mentor/Alumnus
AKA: Ian Adam Naval
FRC #3120 (RoboKnights)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2008
Location: Sherman Oaks
Posts: 32
ianonavy is an unknown quantity at this point
Re: Depth Perception

Quote:
Originally Posted by Scimor5 View Post
We used the particle analysis function to find the height of the box after filtering it out with HSL comparison. after finding data for every foot from 3-23 feet and applying a regression with my TI-84 (equation came to something like 470/x^(.89)) our camera is accurate at predicting distance from any angle to a little more than an inch. sweet spot for distance measurement is 8 ft or so. comparing the same measurement using the width to the measurement from height gives us what angle we are at compared to the target.
Okay, that makes a lot more sense to me than trying to find distances based on targets. I'll have to try that later today with our test robot. It's a linear regression, right? (as opposed to a polynomial regression).

Thanks a lot!