Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 466 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 466 Bytes

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