cv2.error: OpenCV(4.8.1) :-1: error: (-5:Bad argument) in function ‘rectangle‘ > Overload resolution

报错记录

cv2.error: OpenCV(4.8.1) :-1: error: (-5:Bad argument) in function 'rectangle'
> Overload resolution failed:
>  - Argument 'thickness' is required to be an integer
>  - Argument 'thickness' is required to be an integer
>  - argument for rectangle() given by name ('thickness') and position (4)
>  - argument for rectangle() given by name ('thickness') and position (4)

--line-thickness', default=1.5, type=int, help='bounding box thickness (pixels)')

line-thickness需要设置为整数,修改下就好了

猜你喜欢

转载自blog.csdn.net/2202_75422333/article/details/135216912