fix: 树莓派gstreamer pipeline报错
This commit is contained in:
parent
e5c297cf35
commit
fdc1b81715
@ -69,7 +69,7 @@ impl OpenCVCamera {
|
|||||||
path_str
|
path_str
|
||||||
);
|
);
|
||||||
info!("Using GStreamer pipeline: {}", pipeline);
|
info!("Using GStreamer pipeline: {}", pipeline);
|
||||||
return Ok(videoio::VideoCapture::from_file(&pipeline, videoio::CAP_GSTREAMER)?);
|
return Ok(videoio::VideoCapture::from_file(&pipeline, videoio::CAP_FFMPEG)?);
|
||||||
} else {
|
} else {
|
||||||
return Err(anyhow!("Invalid device number in path: {}", path_str));
|
return Err(anyhow!("Invalid device number in path: {}", path_str));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user