This is a perceptual image and video hash calculation tool based on algorithm descibed in Block Mean Value Based Image Perceptual Hashing by Bian Yang, Fan Gu and Xiamu Niu.
Build and install
Blockhash requires libmagickwand and libopencv. On Debian/Ubuntu it can be installed using the following command:
sudo apt-get install libmagickwand-dev libopencv-dev
On Fedora and friends:
sudo dnf install ImageMagick-devel opencv-devel
To build blockhash cd to the source directory and type:
./waf configure ./waf
The program binary will land in
./build. To install it to
blockhash [list of images] for calculating hashes for image files.
blockhash_video [list of videos] for calculating hashes for video files.
blockhash --help for the list of options.
Please note that the status of the video algorithm is EXPERIMENTAL. It is subject to substantial changes and should not be relied upon.
Copyright (c) 2014-2015 Commons Machinery http://commonsmachinery.se/
Distributed under an MIT license, please see LICENSE in the top dir.