mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-19 15:23:20 +00:00
Catch case where detected object has a height of 0 (#7425)
This commit is contained in:
1 parent
4c63ad767a
commit
3921a7faa2
1 file changed
+1
-1
+1
-1
@@ -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],
|
||||
|
||||
Reference in new issue
Block a user