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()
'Python' 카테고리의 다른 글
logging (screen out and file) (0) | 2021.02.19 |
---|---|
python code를 바꾼 다음 인터프리터에 반영하기 (0) | 2012.07.13 |
display class instance name & print class (0) | 2012.07.13 |
built-in fucntion 1 - ord (0) | 2012.07.11 |
Python 관련 사이트 모음... (0) | 2012.02.16 |