Python
Python Image Processing Library
guruzoa
2013. 4. 23. 21:28
Python Image Processing Library
- PIL은 윈도우 7 64bit에서 설치 안됨
- Pillow 는 설치됨 (https://github.com/python-imaging/Pillow)
- Example
from PIL import Image
from PIL import ImageEnhance
im = Image.open("kodim01.ppm")
print im.format, im.size, im.mode
out = im.point(lambda i: i * 2)
#enh = ImageEnhance.Contrast(im)
#enh.enhance(2).show("30% more contrast")
im.show()
out.show()