Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import cv2
  2.  
  3.  
  4. if __name__=='__main__':
  5. video_path="D:\\UCF101\\v_ApplyEyeMakeup_g01_c01.avi"
  6. cap= cv2.VideoCapture(video_path)
  7.  
  8. ret, frame= cap.read()
  9. FPS= 25
  10. wait_ms_seconds= 1000//FPS
  11. print(wait_ms_seconds)
  12. while(ret):
  13. cv2.imshow("Video", frame)
  14. cv2.waitKey(wait_ms_seconds)
  15. ret, frame= cap.read()
  16.  
  17. cv2.destroyAllWindows()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement