View Single Post
  #14   Spotlight this post!  
Unread 01-02-2012, 01:35
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: Calculating distance with an Axis Camera 206

Quote:
Originally Posted by dellagd View Post
Correct me if im wrong, but cant you use a exponential regression for the correlation from height of rectangle to distance away (at least it seems a exponential regression is the right way to go)
Sure you can, but you need to get a baseline to start from, which can be found by going through the trig for one image, or going to a field and finding it through measurements there.

Quote:
Originally Posted by caseydech
my team uses the axis camera to identify blobs (yes its the technical term for the... blobs that the camera picks up) And then finds the distance based on the pixel distance between top square and bottom square, angle uses trig and distance from side targets, labview can calculate the rest
Yeah, this is what I hope to do, since the error is much less than using a single target. But, if one target is not found, you will need to do the math without it, which makes things very interesting (and a whole lot of if-else, unless I find a more elegant way to do it)