mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 04:12:52 +08:00
Merge pull request #11881 from alalek:sample_use_camera_0
This commit is contained in:
commit
c9fab28214
@ -11,7 +11,7 @@ int main(int, char**)
|
||||
{
|
||||
Mat frame;
|
||||
cout << "Opening camera..." << endl;
|
||||
VideoCapture capture(-1); // open the first available camera
|
||||
VideoCapture capture(0); // open the first camera
|
||||
if (!capture.isOpened())
|
||||
{
|
||||
cerr << "ERROR: Can't initialize camera capture" << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user