标签:pre mamicode imp ima first png open second class
代码如下:
#使用Python+PIL
from PIL import Image from PIL import ImageChops im1 = Image.open((first_card.jpg‘) im2 = Image.open(‘second_card.jpg‘) im3 = ImageChops.invert(im2) Image.blend(im1,im3,0.5).show()
输出如下:
标签:pre mamicode imp ima first png open second class
原文地址:https://www.cnblogs.com/ylHe/p/12188372.html