supervision/tests/utils
Jirka Borovec e03111e67c
feat: store keypoints on detections (#2290)
* docs: add API design principles to contribution guidelines
* feat: store keypoints on detections
* test: add "keypoints" to internal test cases
* docs: document keypoints field semantics and add docstring + dtype guard
* refactor: deduplicate keypoints shape check and add K-mismatch guard
* docs: clarify Detections.keypoints vs sv.KeyPoints decision rule and add KeyPoints filter example
* feat(key_points): add KeyPoints.from_detections() cross-container adapter
* test: extend keypoints test coverage — dtype guard, __eq__, dynamic field sets
* test: expand keypoints test coverage (M7/M8)
* fix: correct validate_xy expected_shape and dimensionality message
* fix: add ndim guard in KeyPoints.from_detections
* test: add unit tests for KeyPoints.from_detections adapter
* refactor: fix class_id cast and import formatting in key_points

---------

Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
2026-06-04 09:09:37 -06:00
..
assets refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +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
test_conversion.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
test_file.py Add `match` arguments to all `pytest.raises` for more precise error validation in tests (#2145) 2026-02-10 21:22:55 +09:00
test_image.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
test_internal.py feat: store keypoints on detections (#2290) 2026-06-04 09:09:37 -06:00
test_iterables.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
test_logger.py feat: replace print statements with structured logging (#2154) 2026-02-20 13:14:53 +01:00
test_video.py fix: preserve audio stream in process_video (#2252) 2026-05-19 14:09:45 +02:00