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

标签 python opencv debian

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

最佳答案

使用元组。这是实心绿色圆圈的示例:

cv2.circle(img, (x1, y1), 3, (0, 255, 0), -1)

关于python - 最新稳定的 Debian 上的 Python OpenCV 中没有 cv.Point,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10790116/

相关文章:

python - len(bytes(1000)) 在内存中占用 1000 字节?

go - 在 Debian Docker 镜像中使用 librdkafka 构建 Golang 应用程序?

kubernetes - 在没有 systemd 的 Debian Stretch 服务器上安装 Kubernetes

python - 使用正则表达式检查密码强度

Python PIL getdata() 方法不返回元组

python - Psycopg2 使用 pip 安装有效但无法在 OS X 10.9 上导入模块

c++ - 要包含在 Visual Studio C++ 中以使用 CUDA 的文件/目录?

android - Imgproc.FindContours 不填充 List<MatOfPoint> 的轮廓 Opencv Android

android - 如何在 Android 中以编程方式创建双重曝光效果?

git - 将存储在 github 上的项目部署到 debian 网络服务器