supervision/tests
Mahbod 937ed4af37
feat(detection): add require_all_anchors to PolygonZone (#2272)
Currently a detection counts as 'in the zone' only when every anchor in
triggering_anchors is inside. For boxes that straddle the zone boundary
this means a detection with many anchors (e.g. the four corners) is often
under-counted unless the user shrinks triggering_anchors to a single point.

Add require_all_anchors: bool = True so callers can opt into 'any anchor
inside is enough'. Default preserves current behaviour.

* test: strengthen PolygonZone require_all_anchors coverage
* docs: clarify require_all_anchors anchor-based semantics

---------

Co-authored-by: jirka <6035284+Borda@users.noreply.github.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
2026-07-17 18:56:42 +02:00
..
annotators refactor(cv2): add optional backend facade (#2430) 2026-07-15 20:53:24 +02:00
assets fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
classification fix: resolve medium dataset findings (#2408) 2026-07-08 08:56:34 +02:00
cv2 perf(cv2): simplify fallback operations (#2441) 2026-07-17 17:31:57 +02:00
dataset fix: read COCO export image sizes from headers instead of decoding pixels (#2442) 2026-07-17 18:30:24 +02:00
detection feat(detection): add require_all_anchors to PolygonZone (#2272) 2026-07-17 18:56:42 +02:00
draw feat(cv2): complete fallback integration (#2439) 2026-07-17 07:50:45 +02:00
geometry fix(docs): resolve review deprecation follow-ups (#2415) 2026-07-08 14:30:32 +02:00
key_points feat(cv2): complete fallback integration (#2439) 2026-07-17 07:50:45 +02:00
metrics fix(metrics): avoid division by zero RuntimeWarning in F1Score using np.divide (#2437) 2026-07-17 17:11:45 +02:00
tracker fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
utils feat(cv2): complete fallback integration (#2439) 2026-07-17 07:50:45 +02:00
validators fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
__init__.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
conftest.py fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
helpers.py feat(cv2): complete fallback integration (#2439) 2026-07-17 07:50:45 +02:00
test_public_api.py fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
test_validate_deprecations.py feat(cv2): complete fallback integration (#2439) 2026-07-17 07:50:45 +02:00