# Parse the outputs for output in outputs: for detection in output: scores = detection[5:] class_id = np.argmax(scores) confidence = scores[class_id] if confidence > 0.5: # Draw a bounding box x, y, w, h = detection[0:4] * np.array([width, height, width, height]) cv2.rectangle(img, (int(x), int(y)), (int(x+w), int(y+h)), (0, 255, 0), 2)
Using "cracked" versions of utility software like YoloMouse is highly discouraged for several reasons: YoloMouse - Steam Community yolomouse cracked
Instead of searching for cracked versions which often carry malware risks, consider these legitimate free options: # Parse the outputs for output in outputs:
# Load the pre-trained YOLOv3 model net = cv2.dnn.readNet("yolov3.weights", "yolov3.cfg") h = detection[0:4] * np.array([width
If you want to use YoloMouse safely without risking your PC, you have two legitimate options: