mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Due to the -1, it may be negative
This commit is contained in:
parent
45bda4ae47
commit
c916e9bf03
@ -464,7 +464,7 @@ def detect(
|
||||
area = width * height
|
||||
|
||||
# ignore objects that were detected outside the frame
|
||||
if height == 0:
|
||||
if height <= 0:
|
||||
continue
|
||||
|
||||
ratio = width / height
|
||||
|
||||
Loading…
Reference in New Issue
Block a user