View Single Post
  #5   Spotlight this post!  
Unread 29-02-2016, 14:51
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 Alan Anderson View Post
If you know the vertical pixel position of the target in your camera image and the vertical field of view of the camera in both pixels and degrees, you can compute the vertical angle from the camera to the target.

If you know the vertical angle to the target, the height of the target, and the height of the camera, you can compute both the horizontal distance to a point directly beneath the target and the straight-line diagonal distance to the target.

The vertical field of view of the camera in pixels is a constant (720 pixels for a 720p image). The field of view in degrees is also a constant that you can measure. The height of the target is a constant, defined in the field drawings. The height of the camera is something you can define for yourself.

Once you have the location of the target in the image, finding distance is a matter of simple trigonometry.
Height of target is = 7ft 1in
Height of camera is = 7in
How do I find the vertical angle to the target and the vertical field of view of the camera in pixels. The camera says that its is a 16:9 widescreen I don't know if that the field of view in degrees or what is.
Sorry I'm brand new to this
Link to camera info is http://www.amazon.com/Microsoft-T3H-.../dp/B004ETQHDM
Reply With Quote