Function blockhash::blockhash64

source ·
pub fn blockhash64<I: Image>(img: &I) -> Blockhash64
Expand description

Generates a 64-bit perceptual hash of an image.

§Examples

use blockhash::{blockhash64, Blockhash64};

let img = image::open("images/example.png").unwrap();
let hash = blockhash64(&img);

assert_eq!(hash.to_string(), "c7c48f8989c77e0c");