cv2 videocapture nth frame code example
Example: cv2 videocapture nth frame
import cv2
import numpy as np
vidcap = cv2.VideoCapture("fileName.mp4")
vidcap.set(1, FrameNumber)
viwvidcap.read()[1].astype(np.uint8)
import cv2
import numpy as np
vidcap = cv2.VideoCapture("fileName.mp4")
vidcap.set(1, FrameNumber)
viwvidcap.read()[1].astype(np.uint8)