forked from Github/frigate
Catch case where detected object has a height of 0 (#7425)
This commit is contained in:
@@ -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],
|
||||||
|
|||||||
Reference in New Issue
Block a user