opencv画圆没转换成整数的各种报错,cv2.error: OpenCV(4.5.4-dev) :-1: error: (-5:Bad argument) in function ‘circle‘
出现背景:拟合圆,得到拟合的圆心和半径后,使用opencv画圆时出现报错报错信息:圆心半径画圆时,圆心坐标没转换成intcv2.circle(im,(x,y),r,(0,0,255),2)cv2.error:OpenCV(4.5.4-dev):-1:error:(-5:Badargument)infunction'circle'>Overloadresolutionfailed:>-Can'tpa