fix: 树莓派gstreamer pipeline报错
This commit is contained in:
parent
e5c297cf35
commit
fdc1b81715
@ -69,7 +69,7 @@ impl OpenCVCamera {
|
||||
path_str
|
||||
);
|
||||
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 {
|
||||
return Err(anyhow!("Invalid device number in path: {}", path_str));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user