https://github.com/vitroid/imagehash
Image hash for fast similarity search
https://github.com/vitroid/imagehash
Last synced: 9 months ago
JSON representation
Image hash for fast similarity search
- Host: GitHub
- URL: https://github.com/vitroid/imagehash
- Owner: vitroid
- Created: 2022-02-27T14:45:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-01T04:42:12.000Z (over 4 years ago)
- Last Synced: 2025-03-14T15:21:46.648Z (over 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# imagehash
Image hash for fast similarity search
## Usage
### Make the index file
```shell
find . -name \*.png | store.py
```
For now, only bitmap images (that are accessible via PILLOW) can be specified.
### Query a similar image
```shell
query.py filename.png
query.py --level 6 filename.png
```
The similarity level is between 1 (lowest resolution (2x2), 1 bit in brightness level) and 8 (highest resolution (256x256), 8 bits in brightness level).