Hello FRC programming community,
I am the lead programmer on team 5854, this is the team’s second year and my first as lead programmer.
I am using usb cameras to get images to my vision system. I have two cameras hooked up to the usb slots on the roborio and I am using a custom class I made using the built in CameraServer library. (Code Example below) I was wondering if there is a way to make a third camera streaming service. Or if there would be a problem using a usb splitter because I’m not sure how the rio will handle it.
Thnak you in advance.
And sorry if the text is confusing or misspelled, I’m dyslexic.
Code on how I’m making the camera server:
usbCamera = new UsbCamera("USB Camera 0", cameraId);
usbCamera.setResolution(640, 400);
usbCamera.setBrightness(1);
mjpegServer1 = new MjpegServer("serve_USB Camera 0", 1181);
mjpegServer1.setSource(usbCamera);
cvSink = new CvSink("opencv_USB Camera 0");
cvSink.setSource(usbCamera);
outputStream = new CvSource("Blur", PixelFormat.kMJPEG, 640, 480, 30);
mjpegServer2 = new MjpegServer("serve_Blur", 1182);
mjpegServer2.setSource(outputStream);