查看两张相似图形的差异

Posted ylhe

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了查看两张相似图形的差异相关的知识,希望对你有一定的参考价值。

代码如下:

#使用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()

 

输出如下:

 技术图片

 

 

 

以上是关于查看两张相似图形的差异的主要内容,如果未能解决你的问题,请参考以下文章