mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
update video camera logic
This commit is contained in:
@@ -283,8 +283,11 @@ void sendKobukiData(TKobukiData &data) {
|
||||
|
||||
|
||||
void CapnSend() {
|
||||
VideoCapture cap(1); // Open the default camera
|
||||
if (!cap.isOpened()) {
|
||||
VideoCapture cap(0); // Open the default camera
|
||||
if (!cap.isOpened()) {
|
||||
int i = 0;
|
||||
VideoCapture cap(i++); // Open the default camera
|
||||
|
||||
cerr << "Error: Could not open camera" << endl;
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user