Add CV_CAP_PROP_POS_FRAMES property to cap_images.cpp

pull/3602/head
VBystricky 10 years ago
parent b2a5e66fc5
commit d5092a6f7c
  1. 2
      modules/videoio/src/cap_images.cpp

@ -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:

Loading…
Cancel
Save