View Single Post
  #1   Spotlight this post!  
Unread 28-01-2016, 21:59
iSpotix iSpotix is offline
Registered User
FRC #4049
 
Join Date: Jan 2016
Location: Pittsburgh
Posts: 27
iSpotix is an unknown quantity at this point
Vision - Calculating Distance

I have been reading this screensteps article http://wpilib.screenstepslive.com/s/...ng-the-targets under the Distance section and I was confused by some things.

In particular, this:
Quote:
Vertical target rectangle measures 40 pixels when the camera resolution was 320x240. This means that the blue rectangle width is 2.66*320/30 or 21.28ft.
I understand the 320 but where do the 2.66 and 30 come in? I think I have everything else down.