CameraServer: Return MjpegServer from StartAutomaticCapture(VideoSource) (#1544)

This commit is contained in:
Peter Johnson
2019-01-11 16:44:49 -08:00
committed by GitHub
parent 453a9047e4
commit fdf298b172
3 changed files with 7 additions and 4 deletions

View File

@@ -538,10 +538,12 @@ cs::AxisCamera CameraServer::AddAxisCamera(const wpi::Twine& name,
return camera;
}
void CameraServer::StartAutomaticCapture(const cs::VideoSource& camera) {
cs::MjpegServer CameraServer::StartAutomaticCapture(
const cs::VideoSource& camera) {
AddCamera(camera);
auto server = AddServer(wpi::Twine("serve_") + camera.GetName());
server.SetSource(camera);
return server;
}
cs::CvSink CameraServer::GetVideo() {