OpenCV讲堂 python 画图点,画圆,画线

Python 用 OpenCV 画点和圆 (2):

https://blog.csdn.net/u011520181/article/details/83933325

point_size = 1

point_color = (0, 0, 255) # BGR

thickness = 4 # 可以为 0 、4、8

# 要画的点的坐标

points_list = [(160, 160), (136, 160), (150, 200), (200, 180), (120, 150), (145, 180)]

for point in points_list:

  cv.circle(img, point, point_size, point_color, thickness)

# 画圆,圆心为:(160, 160),半径为:60,颜色为:point_color,实心线

cv.circle(img, (160, 160), 60, point_color, 0)
 

你可能感兴趣的:(OpenCV讲堂)