supervision/tests
Agis Kounelis 8692148c67
fix(detection): make `get_anchors_coordinates` OBB-aware (#2382)
- Fixed `get_anchors_coordinates` to compute anchor positions from oriented bounding boxes when OBB geometry is available, ensuring anchor-based operations (such as zone counting and annotators) align with the rotated object instead of its axis-aligned bounding box.
- Preserved existing behavior for axis-aligned boxes, while continuing to use mask centroids for `CENTER_OF_MASS` anchors when masks are available.
- Improved the `get_anchors_coordinates` documentation with the updated anchor selection order, OBB usage examples, and notes describing OBB winding-order requirements and anchor tie-breaking behavior.

---------

Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
2026-07-02 00:04:26 +02:00
..
annotators feat: declare annotator mask requirements (#2370) 2026-07-01 19:34:21 +02:00
assets chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00
classification refactor docstrings in `draw`, `classification`, and `key_points` (#2161) 2026-03-10 18:07:39 +01:00
dataset chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00
detection fix(detection): make `get_anchors_coordinates` OBB-aware (#2382) 2026-07-02 00:04:26 +02:00
draw perf(annotators): skip corner circles when drawing square label backgrounds (#2346) 2026-07-01 01:25:25 +02:00
geometry chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00
key_points chore(typing): Add explicit selection helpers (#2373) 2026-06-29 15:39:58 +02:00
metrics perf(detection): count mask pixels with `count_nonzero` (#2361) 2026-07-01 23:22:46 +02:00
tracker chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00
utils chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00
__init__.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
conftest.py chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00
helpers.py chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00
test_validate_deprecations.py chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00