fix: 树莓派gstreamer pipeline报错
This commit is contained in:
parent
f2cecfbbd4
commit
e5c297cf35
@ -65,7 +65,7 @@ impl OpenCVCamera {
|
|||||||
if let Ok(device_index) = num_str.parse::<i32>() {
|
if let Ok(device_index) = num_str.parse::<i32>() {
|
||||||
// 在Linux下使用GStreamer pipeline
|
// 在Linux下使用GStreamer pipeline
|
||||||
let pipeline = format!(
|
let pipeline = format!(
|
||||||
"v4l2src device={} ! videoconvert ! video/x-raw,format=BGR ! appsink",
|
"v4l2src device={} ! videoconvert ! appsink",
|
||||||
path_str
|
path_str
|
||||||
);
|
);
|
||||||
info!("Using GStreamer pipeline: {}", pipeline);
|
info!("Using GStreamer pipeline: {}", pipeline);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user