View Full Version : Camera Streaming
414cnewq
07-03-2016, 12:15
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?
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?
414cnewq
07-03-2016, 12:31
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)
The0range
07-03-2016, 13:44
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
virtuald
07-03-2016, 14:22
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 (https://github.com/robotpy/roborio-packages).
The Lucas
07-03-2016, 14:30
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.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.