SSIM-PIL
Comparison of two images using the structural similarity algorithm (SSIM). The resulting value varies between 1.0 for identical images and 0.0 for completely different images. It's based on the PIL and also supports GPU acceleration via pyopencl.
Installation
python3 -m pip install SSIM-PIL
Be sure to install a working version of pyopencl to benefit from faster parallel execution on the GPU. (The code was tested with OpenCl version 1.2.)
Usage Example
from SSIM_PIL import compare_ssim
from PIL import Image
image1 = Image.open(path)
image2 = Image.open(path)
# Compare images using OpenCL by default
value = compare_ssim(image1, image2)
print(value)
# Compare images using CPU-only version
value = compare_ssim(image1, image2, GPU=False)
print(value)
Feedback
For feedback please contact me over github: https://github.com/ChsHub/SSIM-PIL.
Metadata
Release files for SSIM-PIL 1.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| SSIM-PIL-1.0.14.tar.gz | 6.9 kB | Without provenance | Details for SSIM-PIL-1.0.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| SSIM_PIL-1.0.14-py3-none-any.whl | Python 3 | none | any | Details for SSIM_PIL-1.0.14-py3-none-any.whl |
Total release size: 18.0 kB
Release files / SSIM-PIL-1.0.14.tar.gz
| Download URL | SSIM-PIL-1.0.14.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d9f9066bc268570d29145532e5b4cc6fefc1974aaf5f0a31773fc391b13c898
|
|
BLAKE2b-256 checksum How to use checksums |
23c35538bdb2654005bc162d4fdf49c21de11fb03d317077d21c885d950febbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.2.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.6rc1
|
Release files / SSIM_PIL-1.0.14-py3-none-any.whl
| Download URL | SSIM_PIL-1.0.14-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c33b7d269f21d3de1509de3a4a21ff2445c9d5e1c8f732aef5e00839ae6a0b49
|
|
BLAKE2b-256 checksum How to use checksums |
07d2432fcd360b617fc1787f104fd7c608a10a752f6277755517a57d4b1fbac6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.2.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.6rc1
|
Security for SSIM-PIL 1.0.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.