imagehash 0.1.0

image hashing library
Documentation

imagehash

The imagehash crate provides image hashing algorithms.

Supported Algorithms

  • Average Hash (aHash)

Usage

use image;
use imagehash::AverageHash;

let img_filename = "tests/1.jpg";
let img = image::open(img_filename).unwrap();

let hasher = AverageHash::default();
let hash = hasher.hash(&img);
println!("{}", hash); // hex-encoded hash string