Add CV_CAP_PROP_POS_FRAMES property to cap_images.cpp

This commit is contained in:
VBystricky 2015-01-15 01:55:17 +04:00
parent b2a5e66fc5
commit d5092a6f7c

View File

@ -135,6 +135,8 @@ double CvCapture_Images::getProperty(int id) const
return 0;
case CV_CAP_PROP_POS_FRAMES:
return currentframe;
case CV_CAP_PROP_FRAME_COUNT:
return length;
case CV_CAP_PROP_POS_AVI_RATIO:
return (double)currentframe / (double)(length - 1);
case CV_CAP_PROP_FRAME_WIDTH: