SHARE
TWEET

Untitled

a guest Sep 16th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top