import cv2
# 读取图像
image = cv2.imread("color.png")
# 在图像上找到一点,并标注为红色
point = (200, 320) # 点的坐标
radius = 5 # 圆的半径
color = (0, 0, 255) # 红色
thickness = -1 # 填充整个圆
# 绘制红色圆形
result = cv2.circle(image, point, radius, color, thickness)
# 显示标注后的图像
cv2.imshow("Annotated Image", result)
cv2.waitKey(0)
cv2.destroyAllWindows()
python在图像上绘制一个像素点并显示绘制后的图像
最新推荐文章于 2024-06-06 10:21:28 发布