fix: 树莓派gstreamer pipeline报错

This commit is contained in:
grabbit 2025-04-05 16:36:56 +08:00
parent e5c297cf35
commit fdc1b81715

View File

@ -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));
}