Skip to content

Commit

Permalink
Catch case where detected object has a height of 0 (#7425)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 authored Aug 10, 2023
1 parent 4c63ad7 commit 3921a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frigate/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 3921a7f

Please sign in to comment.