I\'m using OpenCV and Python to take images. However currently I can only take one picture at a time. I would like to have OpenCV to take multiple pictures. This is my current c
i think this wil helpful...
import cv2 vid = cv2.VideoCapture("video.mp4") d = 0 ret, frame = vid.read() while ret: ret, frame = vid.read() filename = "images/file_%d.jpg"%d cv2.imwrite(filename, frame) d+=1
this will save every frame with different name.