Due to the -1, it may be negative

This commit is contained in:
Nicolas Mowen 2022-09-21 07:30:47 -06:00 committed by GitHub
parent 45bda4ae47
commit c916e9bf03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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