Search before asking
Question
How can I register a detection inside a PolygonZone when there is any overlap? Without requiring the entire bounding box to be contained inside the zone.

I tried using triggering_anchors but it didn't work:
polygon_zone = sv.PolygonZone(
polygon=zone_ndarray,
frame_resolution_wh=(img_width, img_height),
# Make a detection be considered inside the zone if there is any
# overlap.
triggering_anchors=[
Position.TOP_LEFT,
Position.TOP_RIGHT,
Position.BOTTOM_RIGHT,
Position.BOTTOM_LEFT,
],
)
Thanks!
Additional
No response
Search before asking
Question
How can I register a detection inside a
PolygonZonewhen there is any overlap? Without requiring the entire bounding box to be contained inside the zone.I tried using
triggering_anchorsbut it didn't work:Thanks!
Additional
No response