phash

Haskell bindings to pHash, the open source perceptual hash library

http://github.com/michaelxavier/phash

Version on this page:0.0.5
LTS Haskell 5.18:0.0.5
Stackage Nightly 2016-05-16:0.0.5
Latest on Hackage:0.0.6

See all snapshots phash appears in

GPL-3.0-only licensed and maintained by Michael Xavier
This version can be pinned in stack with:phash-0.0.5@sha256:fd03ed6e19db31b9ed34f1be02ca19ffa672cfa0e9cd6cccd59d7d46acb927e7,2244

Module documentation for 0.0.5

Depends on 1 package(full list with versions):

phash: Haskell bindings to pHash, the open source perceptual hash library

Build Status

PHash is a library for generating perceptual hashes of media files. These bindings currently only support images. You can compare these hashes to detect visually similar images.

Installation Notes

Note that this library does not come bundled with the source code for pHash. You must install that yourself. Your package manager may have it available as libphash. If that is not available, you can install it from source from http://phash.org.

Usage

import Data.PHash

main = do
  Just h1 = imageHash "somefile.jpg"
  print h1
  print =<< imagesSimilar "somefile.jpg" "similarfile.jpg" reasonableThreshold
  where reasonableThreshold = 15

Credit

All credit goes to the original pHash authors. For more information about pHash visit http://phash.org

Contributors