From b12d73a883b8d43559e0fa66d0d02a86546f9dff Mon Sep 17 00:00:00 2001 From: SkalskiP Date: Wed, 17 Jan 2024 09:01:17 +0100 Subject: [PATCH 1/2] ready for review --- 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 851d1d4a..a7e99cbc 100644 --- a/supervision/detection/line_counter.py +++ b/supervision/detection/line_counter.py @@ -54,7 +54,7 @@ class LineZone: crossed_in = np.full(len(detections), False) crossed_out = np.full(len(detections), False) - for i, (xyxy, _, confidence, class_id, tracker_id) in enumerate(detections): + for i, (xyxy, tracker_id) in enumerate(zip(detections.xyxy, detections.tracker_id)): if tracker_id is None: continue From f7145aa6aa02f04efabe48666897196c729d93d8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 08:06:36 +0000 Subject: [PATCH 2/2] =?UTF-8?q?fix(pre=5Fcommit):=20=F0=9F=8E=A8=20auto=20?= =?UTF-8?q?format=20pre-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervision/detection/line_counter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/supervision/detection/line_counter.py b/supervision/detection/line_counter.py index a7e99cbc..960122e1 100644 --- a/supervision/detection/line_counter.py +++ b/supervision/detection/line_counter.py @@ -54,7 +54,9 @@ class LineZone: crossed_in = np.full(len(detections), False) crossed_out = np.full(len(detections), False) - for i, (xyxy, tracker_id) in enumerate(zip(detections.xyxy, detections.tracker_id)): + for i, (xyxy, tracker_id) in enumerate( + zip(detections.xyxy, detections.tracker_id) + ): if tracker_id is None: continue