Photon Vision

From FRC11 - Mentor Wiki
Revision as of 01:10, 29 November 2021 by VKoutha (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

PhotonVision Software: Full Documentation

PhotonVision is a free-to-use software that can be installed on a RaspberryPi to provide vision functionality.
Unlike the Limelight, PhotonVision is completely free and can handle vision processing on multiple cameras. Performing vision processing on multiple cameras does come at a cost, since only so much data can be transferred from the Pi to NetworkTables at once.
The PhotonVision software can be installed on a Pi by flashing the image using BalenaEtcher onto an SD card and then inserting it in the Pi.
After installation, the PhotonVision tuning interface can be accessed from a browser by going to photonvision.local:5800 (the Pi must be connected to the radio and the computer must be connected to the robot's network).
In order to properly tune vision parameters, it's essential to have a good understand of hue (the dominant color we're searching for), saturation (the intensity of a color) , and value (how dark or light a color is). More information can be found here.
Vision information can be accessed from our program with the use of PhotonLib. The most common vision-related values we tend to deal with are the pitch (vertical offset angle) and yaw (horizontal offset angle) of our target.