From 3921a7faa21fd62503350305d47fec8fd4151ddf Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 10 Aug 2023 04:51:30 -0600 Subject: [PATCH] Catch case where detected object has a height of 0 (#7425) --- 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],