Library for image hashing and deduplication.
Project description
# SDHash [](https://travis-ci.org/horia141/sdhash)
A Python library for computing hashes of images which ignore perceptual differences.
## Usage
```python
import sdhash
from PIL import Image
i1 = Image.open('test1.png')
i2 = Image.open('test1_noise.png')
i3 = Image.open('test2.png')
sdhash.test_duplicate(i1, i2) # True
sdhash.test_duplicate(i1, i3) # False
sdhash.hash_image(i1) # [ an md5 output ]
```
## Background
Suppose you want to test that two images are identical. The naive approach of simply comparing the byte-array representation of the two is not good.
## Algorithm
## Installation ##
The Python image library and NumPy/SciPy etc.
Installation is simple, via `pip`:
```bash
pip install sdhash
```
## TODO
Resistance to rotation, mirroring etc.
Tunable knobs (for similarity detection etc.)
A Python library for computing hashes of images which ignore perceptual differences.
## Usage
```python
import sdhash
from PIL import Image
i1 = Image.open('test1.png')
i2 = Image.open('test1_noise.png')
i3 = Image.open('test2.png')
sdhash.test_duplicate(i1, i2) # True
sdhash.test_duplicate(i1, i3) # False
sdhash.hash_image(i1) # [ an md5 output ]
```
## Background
Suppose you want to test that two images are identical. The naive approach of simply comparing the byte-array representation of the two is not good.
## Algorithm
## Installation ##
The Python image library and NumPy/SciPy etc.
Installation is simple, via `pip`:
```bash
pip install sdhash
```
## TODO
Resistance to rotation, mirroring etc.
Tunable knobs (for similarity detection etc.)
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
sdhash-0.0.4.tar.gz
(4.0 kB
view details)
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 sdhash-0.0.4.tar.gz.
File metadata
- Download URL: sdhash-0.0.4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efb30ae8ab214b954282c003c6c6012f2cc131a722ec752f6d7d92076072204b
|
|
| MD5 |
fdfcff44910a0ae1c36dfa6a86540539
|
|
| BLAKE2b-256 |
19b3851dea40504daf899c0e545cdaa1641844d8090fe65ca319f13beebb3a7e
|
File details
Details for the file sdhash-0.0.4-py2-none-any.whl.
File metadata
- Download URL: sdhash-0.0.4-py2-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d67553152fb444b7a9237d08674640882447b60e950a40614558285fa03b7de6
|
|
| MD5 |
633e558c130a1acfa427745d0af1d309
|
|
| BLAKE2b-256 |
731ac58efc594f8ca4b952479ff2f004952502d0e209796ccf0e924701b2d908
|