# draw gt
cv2.rectangle(img, (gt[0], gt[1]), (gt[2], gt[3]), (0,255,0), 1)
The following error occurred while running:
The rectangle function in opencv453 is incompatible with floating-point data
terms of settlement:
It is OK to convert the two coordinate data types in the rectangle function to int
cv2.rectangle(img, (int(gt[0]), int(gt[1])), (int(gt[2]), int(gt[3])),(0,255,0), 1)