Setting FPS and resolution of USB camera server

Basically, the title. I want to use the roboRIO to forward the image from a Microsoft Lifecam to a Raspberry Pi, at about 12 - 15 FPS @ 240p, as well as have the stream be visible on the driver station.

This is how you do it in Java.

UsbCamera camera = new UsbCamera(“cam0”,0);
camera.setFPS(15);
camera.setResolution(320, 240) //320 = width, 240 = height
CameraServer.getInstance().startAutomaticCapture(camera);

Accessing the stream from the Pi is a bit more difficult though, and I’m not entirely sure how to do that.

We use separate cameras for streaming and vision processing, because it works much better for processing if you turn the brightness and exposure way down so you can only see the really bright stuff. LifeCams are pretty cheap, so it may be worth looking into.

Here’s how to access the stream in grip, it would probably be similar on the Pi:

https://www.chiefdelphi.com/forums/showthread.php?t=154388