Structural similarity
Project description
SSIM-PIL
Comparison of two images using the structural similarity algorithm (SSIM). It's compatible with the PIL. Supports GPU acceleration via pyopencl.
Installation
python3 -m pip install SSIM-PIL
Usage Example
from SSIM_PIL import compare_ssim
from PIL import Image
image1 = Image.open(path)
image2 = Image.open(path)
value = compare_ssim(image1, image2)
print(value)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
SSIM-PIL-1.0.5.tar.gz
(4.6 kB
view hashes)