A DHash calculator for images. In Rust.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Julio Biason 6a0ca29214 Licensing 4 years ago
src Licensing 4 years ago
.gitignore Simple dhash calc 4 years ago
AUTHORS Licensing 4 years ago
COPYING Licensing 4 years ago
Cargo.lock Simple dhash calc 4 years ago
Cargo.toml Simple dhash calc 4 years ago
README.md Licensing 4 years ago

README.md

dhash

A simple DHash calculator in Rust.

What's a "DHash"?

A DHash is a image perceptual hashing in which the image is reduced to 9x8 pixels and have it converted to grayscale. Each pixel is compared to the next: if it is whiter, the hash produces a 0 bit; if if is darker, it produces a 1. The final result is a 64-bit hash for the image.

Running

Simply call dhash <filename>.

License

GNU AFFERO GENERAL PUBLIC LICENSE, Version 3.