matplotlib
Org web: http://matplotlib.org/ Github: https://github. […]
人生没有原因,闯出一路精彩
Org web: http://matplotlib.org/ Github: https://github. […]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
lenna = Image("lenna") lenna.show() bigface = lenna.scale(3) roteated = lenna.rotate(90) warped = lenna.warp(((100,10),(300,10),(450,300), (10,300))) inverted = lenna.invert() grey = lenna.greyscale() matrix = grey.getNumpy() lenna.binarize() lenna.binarize(127) dilated = lenna.dilate(10) eroded = lenna.erode(10) open = lenna.morphOpen() closed = lenna.morphClose() |
[crayon-64729e4c7c3eb1 […]
1 2 3 4 5 6 7 8 9 10 11 |
lenna = Image("lenna") segment = HaarCascade("face.xml") autoface = lenna.findHaarFeatures(segment) if ( autoface is not None ): face = autoface[-1].crop() face.show() |
其中”face.xml̶ […]
use:
1 2 3 |
theArr = [1, 5, 7,9] print len(theArr) |
http://blog.csdn.net/zouxy09/article/details/38639349 作 […]
http://www.it-ebooks.info/ 转自:http://weibo.com/ttarticl […]