frrostbitee

FrameGen_final

Apr 15th, 2019
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. vidcap = cv2.VideoCapture(path)
  2.     print path
  3.     success,image = vidcap.read()
  4.     total_count = 0
  5.     success = True
  6.     while success:
  7.         success,image = vidcap.read()
  8.         cv2.imwrite("test%d.jpg" % total_count, image)
  9.         print(total_count)
  10.         if cv2.waitKey(10) == 27:                    
  11.             break
  12.         total_count += 1
Add Comment
Please, Sign In to add comment