cv2.error: OpenCV(4.5.2) :-1: error: (-5:Bad argument) in function 'circle'
时间: 2023-09-25 21:08:04 浏览: 239
opencv-python-4.10.0.84.tar.gz
5星 · 资源好评率100%
This error occurs when the arguments passed to the cv2.circle() function are incorrect or out of range.
Possible reasons for this error include:
1. Incorrect values for the center coordinates or radius of the circle.
2. Incorrect values for the color or thickness of the circle.
3. The image or canvas on which the circle is to be drawn is not properly initialized or created.
To fix this error, make sure that the arguments passed to the cv2.circle() function are correct and within the appropriate ranges. Also, check that the image or canvas on which the circle is to be drawn is properly initialized and created.
阅读全文