Back to Browse

photon vision

1.0K views
Feb 13, 2024
1:39

Hey All, I have been trying to figure out how to get our schools robot how to have "vision" and I have found a solution called photon-vision. Its a program that runs on a raspberry pi, and displays a video feed through a connected web browser. The program is setup and calibrated to "SEE" april tags (it could also recognize shapes, like balls, squares, or a hoop (taurus). To implement, I: 1 found photon-vision code for raspberry pi on github, 2. flashed the ISO to a micro sd card 3. Boot up photovision on raspberry pi, find IP address with IF config, or IP scanner 4. Logging to photonvision from a web broswer at this URL: http://ip-address:5800 5. Under settings tab, add FRC team number 6. Under camera tab, calibrate camera at various resolutions by taking 12 photos of a checkerboard (note which resolution you are calibrating (ex: 1200x800) 7. In the main screen, add a "pipeline" and "april tag" shape selector 8. Under the april tag tab, choose one of the three april tag groups that are available (one will jump out as working). Also, make sure the resolution in the tab is the same as the one you just calibrated (1200x800). 9. Put april tags in the field of vision of the camera and make an effort in 2D mode and 3D mode to sense the tags (note that your hand gripping the tag and covering part of it can ruin the id). 10. Enjoy learning how to connect the output of this server to the main FRC java code on the robo-rio. See this link for some resources and notes. https://sites.google.com/wecdsb.on.ca/knightssoftwareco/vision

Download

0 formats

No download links available.

photon vision | NatokHD