Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vidcap = cv2.VideoCapture(path)
- print path
- success,image = vidcap.read()
- total_count = 0
- success = True
- while success:
- success,image = vidcap.read()
- cv2.imwrite("test%d.jpg" % total_count, image)
- print(total_count)
- if cv2.waitKey(10) == 27:
- break
- total_count += 1
Add Comment
Please, Sign In to add comment