Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.04 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.04 KB

drash - Image Hash Distance

drash is a Rust-based command-line tool for calculating perceptual hashes of images and comparing them to detect duplicates. This tool uses difference hashing (dHash) to generate a hash for each image, and then calculates the Hamming distance between these hashes to determine the similarity.

Usage To use ImageHashComparator, you need to have Rust installed on your system. You can install Rust from here.

Building the Project

Clone the repository and build the project using Cargo:

git clone <repository_url>
cd ImageHashComparator
cargo build --release

Running the Project

To run the project, provide two image file paths as arguments:

cargo run --release <path_to_image_1> <path_to_image_2>

For example:

cargo run --release images/image1.png images/image2.png

Example Output

5 bit differs out of 128 (3.9%) in 12ms

Acknowledgments

This code was inspired by Dr. Neal Krawetz blogpost