Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cv2
- if __name__=='__main__':
- video_path="D:\\UCF101\\v_ApplyEyeMakeup_g01_c01.avi"
- cap= cv2.VideoCapture(video_path)
- ret, frame= cap.read()
- FPS= 25
- wait_ms_seconds= 1000//FPS
- print(wait_ms_seconds)
- while(ret):
- cv2.imshow("Video", frame)
- cv2.waitKey(wait_ms_seconds)
- ret, frame= cap.read()
- cv2.destroyAllWindows()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement