View Single Post
  #11   Spotlight this post!  
Unread 29-02-2016, 09:43
barn34's Avatar
barn34 barn34 is offline
Isn't this how Skynet got started?
AKA: William Barnickel
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2009
Location: Metamora, IL
Posts: 243
barn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond reputebarn34 has a reputation beyond repute
Re: Visual Tracking Help

depends what you mean by 'distance' (which side of the target tracking triangle are you looking for). also, depends on what values you're calculating from the image and how you're calculating the angle to target.

the most general way to explain it is that you know how wide the target is (20 inches). you also know how wide the resolution is for the camera (that depends on the camera you are using and how it's set up). same with the field of view, as that's camera dependent.

you can convert how wide the target is in pixels in your camera image to a distance to that target in inches by doing the trigonometry and using the pixels to inches conversion by keeping in mind that the target is 20 inches wide.

that's probably a bit too ambiguous of an answer, but the specifics depend on how you're initially processing the image and calculating that angle to target.
__________________



2016 Einstein Field WORLD CHAMPIONS & Carver Sub-Division Winner (330 & 120 & 1086)
2016 Smoky Mountains Regional Winner (3824 & 4740)
2016 Central Illinois Regional Winner (876 & 2220)
2015 Central Illinois Regional Winner (1756 & 2220)
2015 Rock City Regional Winner (2451 & 1625)
2014 Einstein Field Semi-Finalist & Galileo Division Winner (67 & 973 & 2363)
2014 Wisconsin Regional Winner (1732 & 2202)

--- Industrial Design Award (2010, 2015) ------ Innovation in Control Award (2013, 2014, 2016) ---
--- Quality Award (2015) ---------- Creativity Award (2014) ---------- Visualization Award (2009) ---
Reply With Quote