Hi all -
We have been very successful in previous seasons running a Raspberry Pi as a camera vision server, and running cscore to serve robotcam video (similar to usbcvstream.cpp in the cscore examples).
This year, we’re considering using multiple cameras, and (besides putting everything on shuffleboard), I’d like to be able to bring up the streaming webpage and show not just one, but all the sources. For reference, here is the code that adds the camera:
cs::UsbCamera camera{“usbcam”, 0};
camera.SetVideoMode(cs::VideoMode::kMJPEG, 320, 240, 30);
cs::MjpegServer mjpegServer{“httpserver”, 8081};
mjpegServer.SetSource(camera);
cs::CvSink cvsink{“cvsink”};
cvsink.SetSource(camera);
cs::CvSource cvsource{“cvsource”, cs::VideoMode::kMJPEG, 320, 240, 30};
cs::MjpegServer cvMjpegServer{“cvhttpserver”, 8082};
cvMjpegServer.SetSource(cvsource);
Any thoughts on how to do this?
Thanks,
Rob