import numpy as np
import cv2
import os
def draw_cylcle(point, image_path):
'''
todo: draw cylcle with opencv
'''
img = np.zeros((512,512,3),np.uint8)
print(img.shape)
cv2.circle(img, point,1,(0,0,255),4)
cv2.circle(img, point, 60,(0,0,255),0)
cv2.imwrite(os.path.join(image_path,'test.png'), img)
def main():
image_path = r'/home/xx/'
# 点坐标
point = (350,96)
draw_cylcle(point, image_path)
if __name__ == '__main__':
main()
Python opencv 画圈圈
最新推荐文章于 2023-12-28 06:07:32 发布