filvyb / dhash

Implementation of dHash algorithm in Nim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Implementation of dHash algorithm in Nim

License:GNU Lesser General Public License v3.0


Languages

Language:Nim 100.0%