View Single Post
  #23   Spotlight this post!  
Unread 18-02-2012, 00:44
fb39ca4 fb39ca4 is offline
Registered User
FRC #1899
 
Join Date: Jan 2012
Location: Bellevue, WA
Posts: 195
fb39ca4 is a name known to allfb39ca4 is a name known to allfb39ca4 is a name known to allfb39ca4 is a name known to allfb39ca4 is a name known to allfb39ca4 is a name known to all
Re: Depth Perception

If you have the camera mounted at a fixed angle, you can use the screen coordinates of the hoop in the image to determine the angle between the horizontal plane the camera occupies and the line between the camera and the hoop. As you know the height of the hoop from the ground, you can then use trig to calculate the distance.