Hey all,
Below is the link to Team 3534 Vision code for 2017. It is our first attempt at Vision.
Highlights:
- In C++
- Uses OpenCV; no GRIP
- Does have code for NetworkTables
- Threaded!
- Distance calculations
- Comments in the code
We were able to run 2 camera full time @ 30 fps 800x600 (both cameras) over WIFI. Due to the limitations of the radio it was decreased to 640x240 @30 fps per camera. All processing was done on a Jaguarboard and the final image was sent to the driver station via UDP. The final image consisted of both cameras images with HUD display merged into a single image (i.e. camera0 then camera1 image side by side). The result was nearly realtime identification of targets.
https://github.com/chaoticmachinery/3534/blob/master/3534_vision.tar.gz
Driver station Receiver
https://github.com/chenxiaoqino/udp-image-streaming
Feel free to ping me if you have questions.
K Murphy