Random_anna.mp4 -

video = cv2.VideoCapture('random_anna.mp4')

# Load YOLO net = cv2.dnn.readNet("yolov3.weights", "yolov3.cfg") classes = [] with open("coco.names", "r") as f: classes = [line.strip() for line in f.readlines()] random_anna.mp4

while video.isOpened(): ret, frame = video.read() if not ret: break video = cv2

height, width, channels = frame.shape

indexes = cv2.dnn.NMSBoxes(boxes, confidences, 0.5, 0.4) "yolov3.cfg") classes = [] with open("coco.names"