From b86528595e76670c002267e3204baf10b00dc83c Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Wed, 11 Dec 2024 16:51:01 +0100 Subject: [PATCH] change camera --- src/C++/Driver/src/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/C++/Driver/src/main.cpp b/src/C++/Driver/src/main.cpp index 1a7b28d..d7d626e 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -282,11 +282,9 @@ void sendKobukiData(TKobukiData &data) { } void CapnSend() { - // Use GStreamer pipeline to access the Astra camera with libcamera - std::string pipeline = "libcamerasrc ! video/x-raw,width=640,height=480,framerate=30/1 ! videoconvert ! appsink"; - VideoCapture cap(pipeline, cv::CAP_GSTREAMER); + VideoCapture cap("/dev/media3"); if (!cap.isOpened()) { - cerr << "Error: Could not open camera with GStreamer pipeline" << endl; + cerr << "Error: Could not open camera" << endl; return; }