This code is indended to be used alongside Photon Vision. Photon Vision will take frames from a connected camera, check whether certain objects are in the frame, and send the information about these objects to Network Tables. By pulling this information down using PhotonLibPy, we can run PhotonPoseEstimator to figure out the location of objects and the robot.
- Install a Jar file from this release page. A Jar file is not included in this repo as it is too large to push from Github Desktop
- I recommend version 2024.3.1 as it is not a beta and works the best.
- Install PhotonLibPy using
pip install PhotonLibPy
orpip3 install PhotonLibPy
- Run the Jar file by navigating to the directory of the file in your Terminal and run
java -jar C:\path\to\photonvision\NAME OF JAR FILE GOES HERE.jar
- For example, if you ran my recommended version of PhotonLib, the command would be
java -jar photonvision-v2024.3.1-winx64.jar
- For example, if you ran my recommended version of PhotonLib, the command would be
- Once the Jar file is running (meaning the backend of the UI is running), navigate to
localhost:5800
in order to view the UI.
NOTE: If you are using an operating system that is not Windows, these steps may vary, so navigate to Software Installation to see all other ways of installation