Skip to main content

Comparison of two images using the structural similarity algorithm (SSIM). It's compatible with the PIL.

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
SSIM_PIL-1.0.10-py3-none-any.whl (7.0 kB) Copy SHA256 hash SHA256 Wheel py3
SSIM-PIL-1.0.10.tar.gz (4.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page