mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
Merge pull request #11743 from alalek:samples_avoid_double_VideoCapture_open
This commit is contained in:
commit
e3dc7e5ec9
@ -20,7 +20,7 @@ int main(int, char**)
|
||||
//--- INITIALIZE VIDEOCAPTURE
|
||||
VideoCapture cap;
|
||||
// open the default camera using default API
|
||||
cap.open(0);
|
||||
// cap.open(0);
|
||||
// OR advance usage: select any API backend
|
||||
int deviceID = 0; // 0 = open default camera
|
||||
int apiID = cv::CAP_ANY; // 0 = autodetect default API
|
||||
|
Loading…
Reference in New Issue
Block a user