sdhash 0.0.4
pip install sdhash
Latest version
Released:
Library for image hashing and deduplication.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Horia Coman
- Tags photo, image, gif, hash, perceptual, dedup, deduplication, fft
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Horia Coman
- Tags photo, image, gif, hash, perceptual, dedup, deduplication, fft
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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
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 |