Commit 975ecaca authored by Gary Bradski's avatar Gary Bradski

added output camera id if it fails

parent 251918e1
...@@ -414,7 +414,7 @@ int main( int argc, char** argv ) ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment