代码如下:

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()

 

输出如下:

 

 

 

 

posted on 2020-01-13 17:34  Google-boy  阅读(517)  评论(0编辑  收藏  举报