Crate blockhash[−][src]
Expand description
A perceptual hashing algorithm for detecting similar images.
This is an implementation of the Blockhash algorithm, and can produce 16-, 64-, 144-, and 256-bit perceptual hashes.
Examples
Basic usage:
use blockhash::blockhash256; let img = image::open("images/512x512_rgb.png").unwrap(); let hash = blockhash256(&img); assert_eq!( hash.to_string(), "9cfde03dc4198467ad671d171c071c5b1ff81bf919d9181838f8f890f807ff01", );
Feature flags
std: Enables features that require the Rust Standard Library (enabled by default).image: Enables integration with theimagecrate.
Structs
A 16-bit hash digest.
A 64-bit hash digest.
A 144-bit hash digest.
A 256-bit hash digest.
Traits
Provides access to image data.
Functions
Generates a 16-bit perceptual hash of an image.
Generates a 64-bit perceptual hash of an image.
Generates a 144-bit perceptual hash of an image.
Generates a 256-bit perceptual hash of an image.