最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

使用Python實(shí)現(xiàn)圖像標(biāo)記點(diǎn)的坐標(biāo)輸出功能

 更新時(shí)間:2019年08月14日 10:25:39   作者:松子茶  
這篇文章主要介紹了使用Python實(shí)現(xiàn)圖像標(biāo)記點(diǎn)的坐標(biāo)輸出功能,非常不錯(cuò),具有一定的參考借鑒價(jià)值,需要的朋友參考下吧

Sometimes we have need to interact  with an application,for example by marking points in an image,or you need to annotation some training data.PyLab comes with a simple function ginput() the let's you do just that .Here's a short example.

from PIL import Image
from pylab import *
im = array(Image.open('test.jpg'))
imshow(im)
print 'Please click 3 points'
x =ginput(3)
print 'you clicked:',x
show()

This plots an image and waits for the user to click three times in the image region of the figures window.The coordinates[x,y] of the clicks are saved in a list x.

總結(jié)

以上所述是小編給大家介紹的使用Python實(shí)現(xiàn)圖像標(biāo)記點(diǎn)的坐標(biāo)輸出功能 ,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
如果你覺得本文對你有幫助,歡迎轉(zhuǎn)載,煩請注明出處,謝謝!

相關(guān)文章

最新評論

都安| 大石桥市| 沿河| 扬中市| 盐山县| 邢台市| 涿鹿县| 乌兰县| 江山市| 洛扎县| 阿拉善盟| 黄浦区| 正镶白旗| 元朗区| 慈利县| 泰兴市| 日土县| 小金县| 松江区| 独山县| 澄迈县| 肥西县| 敦化市| 抚远县| 子长县| 宣恩县| 文水县| 古丈县| 顺平县| 凤阳县| 广汉市| 庄河市| 项城市| 兴义市| 白城市| 卢氏县| 通江县| 大名县| 花垣县| 武隆县| 静乐县|