added output camera id if it fails
This commit is contained in:
@@ -414,7 +414,7 @@ int main( int argc, char** argv )
|
|||||||
capture.open(cameraId);
|
capture.open(cameraId);
|
||||||
|
|
||||||
if( !capture.isOpened() && imageList.empty() )
|
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() )
|
if( !imageList.empty() )
|
||||||
nframes = (int)imageList.size();
|
nframes = (int)imageList.size();
|
||||||
|
Reference in New Issue
Block a user