From 90f757a52405cfd965d96183e10f7759d7de5b39 Mon Sep 17 00:00:00 2001 From: grabbit Date: Sat, 5 Apr 2025 16:40:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E6=A0=91=E8=8E=93=E6=B4=BEgstre?= =?UTF-8?q?amer=20pipeline=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/camera/opencv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/camera/opencv.rs b/src/camera/opencv.rs index 2258dcd..e71b8e2 100644 --- a/src/camera/opencv.rs +++ b/src/camera/opencv.rs @@ -69,7 +69,7 @@ impl OpenCVCamera { path_str ); info!("Using GStreamer pipeline: {}", pipeline); - return Ok(videoio::VideoCapture::from_file(&pipeline, videoio::CAP_FFMPEG)?); + return Ok(videoio::VideoCapture::from_file(path_str, videoio::CAP_V4L2)?); } else { return Err(anyhow!("Invalid device number in path: {}", path_str)); }