mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
set V4L2 backend
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user