Skip to main content

Structural similarity

Project description

SSIM-PIL

Structural similarity algorithm with compatibility to PIL.

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

Uploaded Source

Built Distribution

SSIM_PIL-1.0.2-py3-none-any.whl (3.4 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