FRC raspberry Pi coprocessor



Hi, I was wondering how do you get a single frame from a UsbCamera on my Raspberry Pi. The raspberry pi is running the vision image that Wpilib made and I’m using the example multicamera streaming base code.


The CvSink has a grabFrame() function, but perhaps easier is the VisionThread gives you a stream of frames (as OpenCV Mat’s) in the Process function. Just ignore the frames you don’t want.