set V4L2 backend

This commit is contained in:
2024-12-11 15:28:21 +01:00
parent 7eeaba482e
commit e9f998b3e7

View File

@@ -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;