# Detecting objects blob = cv2.dnn.blobFromImage(frame, 0.00392, (416, 416), (0, 0, 0), True, crop=False) net.setInput(blob) outs = net.forward(output_layers)
layer_names = net.getLayerNames() output_layers = [layer_names[i - 1] for i in net.getUnconnectedOutLayers()] random_anna.mp4
indexes = cv2.dnn.NMSBoxes(boxes, confidences, 0.5, 0.4) # Detecting objects blob = cv2