View Single Post
  #12   Spotlight this post!  
Unread 29-02-2016, 10:58
joeojazz joeojazz is offline
Registered User
FRC #5712
 
Join Date: Jan 2016
Location: Hemlock
Posts: 42
joeojazz is an unknown quantity at this point
Re: Visual Tracking Help

Quote:
Originally Posted by barn34 View Post
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.
I am trying to track the front one mostly. I am tracking the area, width, and height the pixels of the tower then would be 1500 pixels. My camera resolution is 720p HD. Don't know then where to go from there.
Reply With Quote