mirror of
https://github.com/filvyb/dhash
synced 2026-01-15 05:31:37 +00:00
No description
| src | ||
| tests | ||
| .gitignore | ||
| dhash.nimble | ||
| LICENSE | ||
| README.md | ||
| testimage1.jpg | ||
| testimage1_low.jpg | ||
| testimage2.jpg | ||
dhash
dhash is a Nim library and CLI program that generates a perceptual hash for a given image based on Neal Krawetz’s blog post on dHash algorithm
Usage
As library
import imageman
import bigints
import dhash
let image1 = get_img("path/to/image")
let hash1 = dhash_int(image1)
As a binary
dhash path/to/image