I am new to OpenCV in Python and I am trying to extract the frames of a short video using this code:
import cv2 dir_frame = \'path\' cap = cv2.VideoCapture(