EPS数据狗论坛's Archiver
首页
›
数据爬虫
› Python的PIL库中的eval方法
风枫
发表于 2018-6-4 13:26:17
Python的PIL库中的eval方法
from PIL import Image
import matplotlib.pyplot as plt
img = Image.open("D:\\image_for_test\\windows.jpg")
def f(x):
return 0.5*x
img_e = Image.eval(img,f)
plt.imshow(img)
plt.show()
plt.imshow(img_e)
plt.show()
页:
[1]
查看完整版本:
Python的PIL库中的eval方法