From 7fae4dbbb8813730b137a0dd7a5f3cac923a74b0 Mon Sep 17 00:00:00 2001 From: Kader Miyanyedi Date: Fri, 2 Feb 2024 20:38:30 +0300 Subject: [PATCH] fix(line_zone): fix in/out values --- supervision/detection/line_counter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervision/detection/line_counter.py b/supervision/detection/line_counter.py index 09efd49d..8f09f219 100644 --- a/supervision/detection/line_counter.py +++ b/supervision/detection/line_counter.py @@ -137,7 +137,7 @@ class LineZone: continue triggers = [ - self.vector.cross_product(point=anchor) > 0 for anchor in box_anchors + self.vector.cross_product(point=anchor) < 0 for anchor in box_anchors ] if len(set(triggers)) == 2: