roboflow / supervision

We write your reusable computer vision tools. 💜
https://supervision.roboflow.com
MIT License
24.21k stars 1.8k forks source link

How does line zone get triggered? #1451

Closed abichoi closed 3 months ago

abichoi commented 3 months ago

Search before asking

Question

Hi, I am trying to under how the line zone get triggered. Let's say I set the triggering_anchors as BOTTOM_LEFT. Does xy of the bottom_left corner of the detection box of the object has to cross the line exactly to trigger the line zone? For example, does the bottom left corner needs to be one pixel below the line in frame 1, then the corner is on the line in frame 2, and then the corner is one pixel above the line in frame 3, to trigger the line?

Or is there a buffer zone? For example, if the bottom_left corner is a few pixels BELOW the line in frame 1 and it is a few pixels ABOVE the line in frame 2, will it trigger the line?

Sorry I am aware how confusing my question sounds...

Additional

No response