Python图像处理-7.pil ginput 交互式标注,标注点过的点坐标
程序员文章站
2023-12-25 17:43:57
...
from PIL import Image
from pylab import *
im = array(Image.open('pic1.png'))
imshow(im)
print('Please click 3 point')
x = ginput(3)
print('you clicked:',x)
show()