From f2a538d6c4460893738d5085d95d71a2abf5f758 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Tue, 17 Oct 2023 17:22:55 -0600 Subject: [PATCH] Add clarifying comment --- frigate/util/object.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frigate/util/object.py b/frigate/util/object.py index 046d6818e..61f7d2108 100644 --- a/frigate/util/object.py +++ b/frigate/util/object.py @@ -175,6 +175,7 @@ def get_region_from_grid( if not cell or not cell["sizes"]: return calculate_region(frame_shape, box[0], box[1], box[2], box[3], min_region) + # convert the calculated region size to relative calc_size = (box[2] - box[0]) / frame_shape[1] # if region is within expected size, don't resize