View Single Post
  #7   Spotlight this post!  
Unread 20-01-2012, 17:16
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 MysterE View Post
Would it be more accurate to use the ratio of size of the rectangle in comparison to the overall picture (ie. The smaller the rectangle in pixels, the farther away you are moving from it) and then using the length and width of the sides to calculate for angle?

And I'm one of those NEMs (Non-engineering Mentors) so the math escapes me completely here.
Basically, yes. Involves a fair amount of trig, but this is how I am doing it, and it works well.