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;