supervision/tests/detection/utils
Jirka Borovec e13090f84b
Fix detection medium review findings (#2400)
- Fixed detection medium findings across adapters, mask non-max merge, sinks, segmentation parsing, LineZone history, and mask ROI handling
- Fixed mask non-max merge deprecation warnings to honor the standard warning opt-out and include version context
- Fixed mask non-max merge validation for invalid IoU thresholds
- Fixed CompactMask non-max merge grouping to update merged mask candidates correctly
- Fixed selected and compacted detections to copy arrays and metadata, preventing mutations from leaking back to source detections
- Fixed LineZone crossing history eviction to tolerate short tracking gaps and evict stale state per tracker/class key
- Fixed semantic segmentation handling to preserve class ID 0
- Improved mask ROI conversion performance by avoiding unnecessary full-frame copies and repeated scans
- Updated JSONSink changelog/docs to document native bool/int/float output while leaving CSVSink unchanged
- Updated detection docstrings for mask parsing, selection copy semantics, validation errors, and argument readability guidance

---------

Co-authored-by: Codex <codex@openai.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-07-06 19:02:38 +02:00
..
__init__.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
test_boxes.py test: cover public API gaps and dataset split (#2399) 2026-07-03 20:57:42 +02:00
test_converters.py test: cover public API gaps and dataset split (#2399) 2026-07-03 20:57:42 +02:00
test_internal.py Fix detection medium review findings (#2400) 2026-07-06 19:02:38 +02:00
test_iou_and_nms.py Fix detection medium review findings (#2400) 2026-07-06 19:02:38 +02:00
test_masks.py Fix detection medium review findings (#2400) 2026-07-06 19:02:38 +02:00
test_polygons.py chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00
test_vlms.py chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00