Expand description
imeq-rs aims to quickly compare two images to see if they are the same image. Compare images
§Example
let image_1 = "images/baseline.jpeg".to_string();
let image_2 = "images/modfied.jpeg".to_string();
let images_match = imeq::Compare::new(image_1, image_2)
.enable_check_images_have_same_path()
.enable_check_image_hashes_match()
.enable_check_images_dimensions_match()
.enable_check_images_pixels_match()
.are_match();
if images_match {
println!("Images are a match");
} else {
println!("Images are not a match");
}
Structs§
- Compare images