我使用 ImageChops 库是为了使用差异函数来比较两个图像:
im1 = Image.open("image1.jpg") im2 = Image.open("image2.jpg") diff= ImageChops.difference(im1, im2)
差分函数究竟是如何工作的?它实际上在做什么?
python image-processing
image-processing ×1
python ×1