xioren / imagehash-nim

image hashing algorithms in nim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Based on imagehash. Provides Average, Difference, Perceptual, and Wavelet hash functions. Comes packaged with imageman for basic image support.

let imgx = loadImage[ColorRGBU]("/path/to/imagex.jpeg")
let imgy = loadImage[ColorRGBU]("/path/to/imagey.png")

let hx = pHash(imgx)
let hy = pHash(imgy)

echo hx == hy
echo hx - hy # hamming distance

echo $hx
echo $hy

About

image hashing algorithms in nim

License:MIT License


Languages

Language:Nim 100.0%