New Script To Compute Perceptual Hashes

A plethora of command-line scripts that perform geometric transforms, blurs, sharpens, edging, noise removal, and color manipulations.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

New Script To Compute Perceptual Hashes

Post by fmw42 »

I have just added two new scripts.

The first, phashes, computes and stores one or more perceptual hashes for all provided images. Any or all of four different binary string perceptual hashes are available: block mean hash (bmh), block difference hash (bdh), Annular Variance Hash (avh) and Polar FFT Hash (pfh). The hashes may be stored in 1) the image's comment field, 2) the image's label field, 3) a JSON file or 4) just redirected from the terminal session to a simple text file.

The second, hamming, computes the percent hamming distance between two binary strings of equal length. The perceptual hash strings may be automatically extracted from the two images' comment or label field or the two string may be provided as arguments.
Post Reply