I know all the solutions on the internet say to give integer co-ordinates but that isn't working for me.
def box(x,y,w,h):
print(x,y,w,h)
print(type(x),type(y),type(w),type(h))
cv2.rectangle(image, (int(x),int(y)) , (int(x+w),int(y+h)) , (255,0,0) , 2.0) ----> error
for i in indices.flatten():
x,y,w,h = boxes[i][0],boxes[i][1],boxes[i][2],boxes[i][3]
box(int(x),int(y),int(w),int(h))
Output of debug
414 1308 53 404
<class 'int'> <class 'int'> <class 'int'> <class 'int'>
Python version - 3.7.0 OpenCv version - 4.4.0.42