Created
January 23, 2022 12:51
-
-
Save doleron/dd4c37a600b3477ea96e8e4fd85dad5f to your computer and use it in GitHub Desktop.
Python Using to reduce duplicates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| indexes = cv2.dnn.NMSBoxes(boxes, confidences, 0.25, 0.45) | |
| result_class_ids = [] | |
| result_confidences = [] | |
| result_boxes = [] | |
| for i in indexes: | |
| result_confidences.append(confidences[i]) | |
| result_class_ids.append(class_ids[i]) | |
| result_boxes.append(boxes[i]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment