1. 程式人生 > >OpenCV講堂 python 畫圖點,畫圓,畫線

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)