mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-07 00:06:57 +01:00
Catch case where detected object has a height of 0 (#7425)
This commit is contained in:
parent
4c63ad767a
commit
3921a7faa2
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user