Catch case where detected object has a height of 0 (#7425)

This commit is contained in:
Nicolas Mowen 2023-08-10 04:51:30 -06:00 committed by GitHub
parent 4c63ad767a
commit 3921a7faa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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