Skip to content

Vision Guide

dzhou1337 edited this page Feb 11, 2017 · 7 revisions

A colored light is shined onto the reflective tape on the target. The camera will only pick up objects with that color and will show them on a display. The offset of the object from the center of the display is given in pixels which can then be used to determine angles and distances.

This is how vision targets are seen on the Pixy camera. A colored rectangle represents the target. The number of pixels between the center of the rectangle and the top of the display can be used to find the angle from the camera to the target. By default, the degrees readings go from 0 to -47 from the top to the bottom of the display. The VERTICAL_ZERO_OFFSET shifts the range of degrees. Our VERTICAL_ZERO_OFFSET equals 23.5 so that the range of degree readings go from 23.5 to -23.5 from the top of the display to the bottom, so if the target were at the center of the display, a zero degree reading would be returned.

Clone this wiki locally