How to set up CameraServer Java

I have a camera that I can connect onto my RoboRIO via USB. I’ve also foundthis documentation for setting up streaming from the camera onto the SmartDashboard using Java. The webpage specifies that we simply need to connect the camera via USB to the RoboRio and copy/paste the Java code snippets to get the stream to work on the SmartDashboard, but this seems very simplistic. Are there any additional steps that need to be take in order to successfully have video streaming configured via connecting directly to our RoboRio and displaying the stream on the SmartDashboard? (specifying USB port in the Java code, etc)?


No really, it’s that easy (one line of code). There are extra function calls required if you want to set the resolution or camera parameters, etc.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.