From e9f998b3e77378415f70d0ae9304295be406962f Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Wed, 11 Dec 2024 15:28:21 +0100 Subject: [PATCH] set V4L2 backend --- 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 114e499..0edc7d0 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() { - VideoCapture cap(0); // Open the default camera + VideoCapture cap(0, cv::CAP_V4L2); // Open the default camera and set it to the V4L2 backend if (!cap.isOpened()) { cerr << "Error: Could not open camera" << endl; return;