Make highgui.hpp independent from C API
This commit is contained in:
@@ -34,15 +34,15 @@ int main( int argc, char** argv )
|
||||
cap.open(argv[1]);
|
||||
if( cap.isOpened() )
|
||||
cout << "Video " << argv[1] <<
|
||||
": width=" << cap.get(CV_CAP_PROP_FRAME_WIDTH) <<
|
||||
", height=" << cap.get(CV_CAP_PROP_FRAME_HEIGHT) <<
|
||||
", nframes=" << cap.get(CV_CAP_PROP_FRAME_COUNT) << endl;
|
||||
": width=" << cap.get(CAP_PROP_FRAME_WIDTH) <<
|
||||
", height=" << cap.get(CAP_PROP_FRAME_HEIGHT) <<
|
||||
", nframes=" << cap.get(CAP_PROP_FRAME_COUNT) << endl;
|
||||
if( argc > 2 && isdigit(argv[2][0]) )
|
||||
{
|
||||
int pos;
|
||||
sscanf(argv[2], "%d", &pos);
|
||||
cout << "seeking to frame #" << pos << endl;
|
||||
cap.set(CV_CAP_PROP_POS_FRAMES, pos);
|
||||
cap.set(CAP_PROP_POS_FRAMES, pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user