fix error while loading cv2.VideoCapture (#2344)
fix error while loading cv2.VideoCapture (#2344)

* test=develop fix error while loading cv2.VideoCapture

* test=develop
fix bug of index out of range in SampleFrames

* fix bug

PaddlePaddle/models,PaddlePaddle/models,PaddlePaddle/models