From c200d7c2c38de3cd7ad213c8f6660cadf5ec596b Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 8 Aug 2023 17:45:04 -0600 Subject: [PATCH] Catch case where detected object has a height of 0 --- frigate/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/video.py b/frigate/video.py index 075e53a0c..f2a49fee3 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -593,7 +593,7 @@ def detect( width = x_max - x_min height = y_max - y_min area = width * height - ratio = width / height + ratio = width / max(1, height) det = ( d[0], d[1],