From bf072e7241bb4f375b7a387cf73f9f85bd984374 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 1 Nov 2023 13:09:06 -0600 Subject: [PATCH] Fix region when no data in grid --- frigate/util/object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/util/object.py b/frigate/util/object.py index 69d2c6b32..a93d9afa9 100644 --- a/frigate/util/object.py +++ b/frigate/util/object.py @@ -176,7 +176,7 @@ def get_region_from_grid( # if there is no known data, get standard region for motion box if not cell or not cell["sizes"]: - return calculate_region(frame_shape, box[0], box[1], box[2], box[3], min_region) + return box # convert the calculated region size to relative calc_size = (box[2] - box[0]) / frame_shape[1]