diffimg:在python中区分图像 - 获取比率或百分比差异,并生成差异图像

时间:2021-05-30 18:05:37
【文件属性】:
文件名称:diffimg:在python中区分图像 - 获取比率或百分比差异,并生成差异图像
文件大小:3.25MB
文件格式:ZIP
更新时间:2021-05-30 18:05:37
python image-processing testing-tools diffing Python diffimg 使用 PIL 的直方图获取图像的百分比差异 + 生成差异图像。 图像应具有相同的颜色通道(例如,RGB 与 RGBA)。 如果图像尺寸不同,则在计算差异之前,将调整第二张图像的大小以匹配第一张图像。 安装 现在可以从 PyPi 获得: pip install diffimg 用法 >>> from diffimg import diff >>> diff('mario-circle-cs.png', 'mario-circle-node.png') 0.007319618135968298 默认情况下,diff函数返回原始比率而不是 %。 diff(im1_file, im2_file, delete_diff_file=False, diff_img_file=DIFF_IMG_FILE ignore_alpha=Fa
【文件预览】:
diffimg-master
----setup.py(678B)
----images()
--------diff_img.jpg(11KB)
--------black.png(70B)
--------white.png(78B)
--------mario-circle-cs.png(121KB)
--------mario-circle-node.png(148KB)
--------diff_img.png(17KB)
--------yandex2.png(1.13MB)
--------yandex1.png(1.83MB)
----setup.cfg(40B)
----LICENSE.txt(1KB)
----README.md(3KB)
----diffimg()
--------__init__.py(23B)
--------diff.py(2KB)
--------test.py(3KB)
--------__main__.py(2KB)
----test_install.sh(757B)

网友评论

  • 用户下载后在一定时间内未进行评价,系统默认好评。