import cv2 import numpy as np vidcap = cv2.VideoCapture("fileName.mp4") vidcap.set(1, FrameNumber) viwvidcap.read()[1].astype(np.uint8)