From eef4f9c79c9940b4de47e4dc5c3bd55b7d3ef7bd Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Wed, 11 Dec 2024 16:39:45 +0100 Subject: [PATCH] revert video format change --- src/C++/Driver/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/C++/Driver/src/main.cpp b/src/C++/Driver/src/main.cpp index d7abe22..1a7b28d 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -283,7 +283,7 @@ void sendKobukiData(TKobukiData &data) { void CapnSend() { // Use GStreamer pipeline to access the Astra camera with libcamera - std::string pipeline = "libcamerasrc ! video/x-raw,format=YUY2,width=640,height=480,framerate=30/1 ! videoconvert ! appsink"; + std::string pipeline = "libcamerasrc ! video/x-raw,width=640,height=480,framerate=30/1 ! videoconvert ! appsink"; VideoCapture cap(pipeline, cv::CAP_GSTREAMER); if (!cap.isOpened()) { cerr << "Error: Could not open camera with GStreamer pipeline" << endl;