supervision/tests
Copilot 85ba8be9dd
Fix KeyPoints 2D boolean mask indexing (uniform-count selection) (#2188)
* Fix KeyPoints 2D boolean mask filtering (keypoints[keypoints.confidence > 0.5])
* Fix ruff E501 and mypy type annotation in KeyPoints 2D mask branch
* Add match= to pytest.raises to fix ruff PT011
* Add shape validation for 2D boolean mask in KeyPoints.__getitem__
* Add edge-case tests for KeyPoints 2D boolean mask filtering
* refactor: extract 2D bool mask handling into _get_by_2d_bool_mask private method
* Document 2D mask uniform-count requirement; add canonical single-object test

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Borda <6035284+Borda@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-31 01:48:57 +02:00
..
annotators make pixel and kernel size dynamic (#709) 2026-03-30 22:17:53 +02:00
assets feat: replace print statements with structured logging (#2154) 2026-02-20 13:14:53 +01:00
classification refactor docstrings in `draw`, `classification`, and `key_points` (#2161) 2026-03-10 18:07:39 +01:00
dataset Fix lossy COCO round-trip: preserve `area` and `iscrowd` in `as_coco` (#2185) 2026-03-30 20:17:42 +02:00
detection Add out-of-bounds detection warning to InferenceSlicer (#2186) 2026-03-30 19:26:33 +02:00
draw feat: add support for hexadecimal RGBA color format (#2004) 2026-03-30 15:57:18 +02:00
geometry Extend docstrings to test cases for enhanced readability (#2130) 2026-02-03 17:28:33 +01:00
key_points Fix KeyPoints 2D boolean mask indexing (uniform-count selection) (#2188) 2026-03-31 01:48:57 +02:00
metrics Correct confusion matrix calculation-function `evaluate_detection_batch` (#1853) 2026-02-12 18:54:00 +09:00
tracker Fix external track ids (#1364) 2026-02-20 00:58:55 +01:00
utils feat: replace print statements with structured logging (#2154) 2026-02-20 13:14:53 +01:00
__init__.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
conftest.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
helpers.py Add unittests for `supervision.key_points.core` (#2190) 2026-03-30 20:36:31 +02:00