Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Convert a Video in python to individual Frames

import cv2
vidcap = cv2.VideoCapture('big_buck_bunny_720p_5mb.mp4')
success,image = vidcap.read()
count = 0
while success:
  cv2.imwrite("frame%d.jpg" % count, image)     # save frame as JPEG file      
  success,image = vidcap.read()
  print('Read a new frame: ', success)
  count += 1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Convert #Video #python #individual #Frames
ADD COMMENT
Topic
Name
1+2 =