From 9550ac7422add871f8dff24d8d6db97ac9d4040f Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 9 Feb 2021 07:22:06 -0600 Subject: [PATCH] fix intersection calculation --- frigate/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/video.py b/frigate/video.py index 1f59e6819..c01177860 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -284,7 +284,7 @@ def reduce_boxes(boxes): # modified from https://stackoverflow.com/a/40795835 def intersects_any(box_a, boxes): for box in boxes: - if box_a[2] < box[0] or box_a[0] > box[2] or box_a[1] < box[3] or box_a[3] > box[1]: + if box_a[2] < box[0] or box_a[0] > box[2] or box_a[1] > box[3] or box_a[3] < box[1]: continue return True