/dhash

Implementation of dHash algorithm in Nim

Primary LanguageNimGNU Lesser General Public License v3.0LGPL-3.0

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