added output camera id if it fails

This commit is contained in:
Gary Bradski 2011-02-13 04:09:58 +00:00
parent 251918e120
commit 975ecaca7d

View File

@ -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();