Python Library to process and compare images.
Project description
snapdedup
- snapdedup is a Python package for processing images, including comparing two images and highlighting the differences.
Installation
-
You can install the package via pip:
-
pip install snapdedup
Usage
-
Here's a basic example of how to use the SnapDifferentiator class to display the difference between two images
-
import os from snapdedup.snap_differentiator import SnapDifferentiator # Define paths dir = 'img' op_directory = 'op_img_dir' image_1 = 'img_prep_1.png' image_2 = 'img_prep_2.png' # Create an instance of SnapDifferentiator img_p = SnapDifferentiator() # Display and save the difference between the two images img_p.display_difference(os.path.join(dir, image_1), os.path.join(dir, image_2), os.path.join(dir, op_directory), is_cv_read=False)
Running Tests
- To run tests, you need to have these installed.
- pytest
- pytest-cov
Improvements or Issues
- Other image processing features
- Please email us if you find any issues.
Contact
- Please mail us if you have any issues.
- Make sure to put subject as --> Improvements for python library
License
- MIT License
Acknowledgements
- Stackoverflow
Developers
- Sarthak Gholap
- Harshit Dalal
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snapdedup-0.0.1.tar.gz.
File metadata
- Download URL: snapdedup-0.0.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8869721a9ff4dcdc6e8dff8dd8ed9795e0a431415a40af749bfdb2b9330395d2
|
|
| MD5 |
cc3f1ba030d8e65c1a1c92ed6f48fe99
|
|
| BLAKE2b-256 |
81e7e34c97ab5dd6f11195869f2d0d8226245490d3ad0949f974d7bda6d9a546
|
Provenance
The following attestation bundles were made for snapdedup-0.0.1.tar.gz:
Publisher:
python-publish.yaml on Sarthak-Gholap/snapdedup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snapdedup-0.0.1.tar.gz -
Subject digest:
8869721a9ff4dcdc6e8dff8dd8ed9795e0a431415a40af749bfdb2b9330395d2 - Sigstore transparency entry: 206882330
- Sigstore integration time:
-
Permalink:
Sarthak-Gholap/snapdedup@849f7db9c8a39e5dff58d4561550f42f6e536a2a -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/Sarthak-Gholap
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yaml@849f7db9c8a39e5dff58d4561550f42f6e536a2a -
Trigger Event:
release
-
Statement type:
File details
Details for the file snapdedup-0.0.1-py3-none-any.whl.
File metadata
- Download URL: snapdedup-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0622e817b5a7ebc146f8ea5246e3bb35a284fc8a3417089e372a864ca6eae8a1
|
|
| MD5 |
d6b3f0d6e6548da2c55857cf143b56c9
|
|
| BLAKE2b-256 |
9fa1b8fe6a4a4d23183cbb633a2bef2097262692fbf8edb7904bf10c31e6bf8b
|
Provenance
The following attestation bundles were made for snapdedup-0.0.1-py3-none-any.whl:
Publisher:
python-publish.yaml on Sarthak-Gholap/snapdedup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snapdedup-0.0.1-py3-none-any.whl -
Subject digest:
0622e817b5a7ebc146f8ea5246e3bb35a284fc8a3417089e372a864ca6eae8a1 - Sigstore transparency entry: 206882331
- Sigstore integration time:
-
Permalink:
Sarthak-Gholap/snapdedup@849f7db9c8a39e5dff58d4561550f42f6e536a2a -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/Sarthak-Gholap
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yaml@849f7db9c8a39e5dff58d4561550f42f6e536a2a -
Trigger Event:
release
-
Statement type: