Skip to content

xioren/imagehash-nim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages