No description
Find a file
2023-04-11 17:48:17 +02:00
src Additional QoL 2023-04-11 17:48:17 +02:00
tests Switch library for bigger ints 2023-03-13 20:49:54 +01:00
.gitignore Basic version done 2023-03-12 13:50:51 +01:00
dhash.nimble Ops 2023-04-11 17:32:49 +02:00
LICENSE Repo init 2023-03-10 22:41:39 +01:00
README.md Switch library for bigger ints 2023-03-13 20:49:54 +01:00
testimage1.jpg Minor edits 2023-03-12 17:15:34 +01:00
testimage1_low.jpg Minor edits 2023-03-12 17:15:34 +01:00
testimage2.jpg Minor edits 2023-03-12 17:15:34 +01:00

dhash

dhash is a Nim library and CLI program that generates a perceptual hash for a given image based on Neal Krawetzs 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