在最新稳定的Debian上没有Python OpenCV中的cv.Point

use*_*730 10 python debian opencv

当尝试使用cv.Circle在图像上绘制圆形时,我意识到没有cv.Point函数在Python OpenCV中创建cvPoint.我正在使用Debian的最新稳定版本,我使用Synaptic安装了所有Python OpenCV软件包.如何创建cvPoint以与cv.Circle函数一起使用?

And*_*aev 12

使用元组.以下是填充绿色圆圈的示例:

cv2.circle(img, (x1, y1), 3, (0, 255, 0), -1)
Run Code Online (Sandbox Code Playgroud)