Camera Streaming

Is there a way to remove the lag on the USB camera to the driver station (a setting on the camera, etc…)? If not, is there any way to have a snapshot button on the controller?

What camera?

What programming language?

Microsoft Lifecam HD-3000 and C++

Will also add we have both a C++ and Java version of our robot code (don’t ask) and we had lag on both. (Lag in the video stream, specifically)

You have two main options, one being mjpg streamer (if using an off board device for vision) to see the camera through the browser, link here: https://github.com/jacksonliam/mjpg-streamer
You can also look at this tutorial on how to use the camera from the Roborio, link here: https://wpilib.screenstepslive.com/s/4485/m/24194/l/288981-using-the-microsoft-lifecam-hd-3000

You can also use mjpg-streamer on the roborio.

Pay attention to your CPU usage on both the rRIO and laptop. Video streaming can be very taxing on both. Also try different resolutions and frame rates. Finally, there is a C++ specific update for CameraServer, make sure you installed it.

We have a raspberry pi with MJPG streamer running with ~30ms of lag, which is pretty good for a wireless webcam stream I think.