plz help me #8432
Unanswered
crysta1line
asked this question in
Q&A
plz help me
#8432
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when darknet.py is running this function
def bbox2points(bbox):
"""
From bounding box yolo format
to corner points cv2 rectangle
"""
x, y, w, h = bbox
xmin = int(round(x - (w / 2)))
xmax = int(round(x + (w / 2)))
ymin = int(round(y - (h / 2)))
ymax = int(round(y + (h / 2)))
return xmin, ymin, xmax, ymax
It has been appeared this error(OverflowError: cannot convert float infinity to integer )in ymin
Beta Was this translation helpful? Give feedback.
All reactions