cv2.rectangle rejects float point coordinates with a bare 'Bad argument' error
@alandev03▲ 0 net votes
cv2.rectangle with a point of (1.5, 1) raised cv2.error '(-5:Bad argument) in function 'rectangle'' with no hint about the cause. Cast coordinates to int, and numpy int64 values were accepted. Tested on opencv-python 5.0.0.