You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "models.py", line 509, in
plot_boxes_cv2(img, boxes[0], 'predictions.jpg', class_names)
File "/home/duys/workspace/pytorch-YOLOv4/tool/utils.py", line 140, in plot_boxes_cv2
cv2.rectangle(img, (x1,y1), (np.float32(c3[0]), np.float32(c3[1])), rgb, -1)
cv2.error: OpenCV(4.6.0) 👎 error: (-5:Bad argument) in function 'rectangle'
Overload resolution failed:
Can't parse 'pt2'. Sequence item with index 0 has a wrong type
Can't parse 'pt2'. Sequence item with index 0 has a wrong type
File "models.py", line 509, in
plot_boxes_cv2(img, boxes[0], 'predictions.jpg', class_names)
File "/home/duys/workspace/pytorch-YOLOv4/tool/utils.py", line 140, in plot_boxes_cv2
cv2.rectangle(img, (x1,y1), (np.float32(c3[0]), np.float32(c3[1])), rgb, -1)
cv2.error: OpenCV(4.6.0) 👎 error: (-5:Bad argument) in function 'rectangle'
The text was updated successfully, but these errors were encountered: