mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 13:10:12 +08:00
added output camera id if it fails
This commit is contained in:
parent
251918e120
commit
975ecaca7d
@ -414,7 +414,7 @@ int main( int argc, char** argv )
|
||||
capture.open(cameraId);
|
||||
|
||||
if( !capture.isOpened() && imageList.empty() )
|
||||
return fprintf( stderr, "Could not initialize video capture\n" ), -2;
|
||||
return fprintf( stderr, "Could not initialize video (%d) capture\n",cameraId ), -2;
|
||||
|
||||
if( !imageList.empty() )
|
||||
nframes = (int)imageList.size();
|
||||
|
Loading…
Reference in New Issue
Block a user