Skip to main content

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


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.8.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

SSIM_PIL-1.0.8-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page