mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
Catch case where detected object has a height of 0
This commit is contained in:
parent
fbed3fbb8b
commit
c200d7c2c3
@ -593,7 +593,7 @@ def detect(
|
|||||||
width = x_max - x_min
|
width = x_max - x_min
|
||||||
height = y_max - y_min
|
height = y_max - y_min
|
||||||
area = width * height
|
area = width * height
|
||||||
ratio = width / height
|
ratio = width / max(1, height)
|
||||||
det = (
|
det = (
|
||||||
d[0],
|
d[0],
|
||||||
d[1],
|
d[1],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user