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

[ data, gpl, library ] [ Propose Tags ] [ Report a vulnerability ]

See http://www.phash.org/ for more info. Note that you must have libphash installed on your system to use this library. Check your system library.


[Skip to Readme]

Modules

[Last Documentation]

  • Data
    • Data.PHash
      • Data.PHash.Image
      • Data.PHash.Types

Flags

Manual Flags

NameDescriptionDefault
lib-werrorDisabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6
Dependencies base (>=4.6 && <5) [details]
License GPL-3.0-only
Copyright Copyright: (c) 2014 Michael Xavier
Author Michael Xavier <michael@michaelxavier.net>
Maintainer Michael Xavier <michael@michaelxavier.net>
Category Data
Home page http://github.com/michaelxavier/phash
Bug tracker http://github.com/michaelxavier/phash/issues
Source repo head: git clone https://github.com/michaelxavier/phash
Uploaded by MichaelXavier at 2017-03-23T01:14:13Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 4932 total (15 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2017-03-23 [all 2 reports]

Readme for phash-0.0.6

[back to package description]

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