Last active
December 23, 2020 10:20
-
-
Save CreedsCode/acf5cc36cd7589553931c1ac351fb65c to your computer and use it in GitHub Desktop.
Revisions
-
CreedsCode renamed this gist
Dec 23, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
CreedsCode created this gist
Dec 23, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ import cv2 vidcap = cv2.VideoCapture('video.mp4') success, image = vidcap.read() count = 1 while success: cv2.imwrite("output/image_%d.jpg" % count, image) success, image = vidcap.read() print('Saved ', count) count += 1