The phash package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

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]

Properties

Versions0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.6
Change logNone available
Dependenciesbase (>=4.6 && <5) [details]
LicenseGPL-3
CopyrightCopyright: (c) 2014 Michael Xavier
AuthorMichael Xavier <michael@michaelxavier.net>
MaintainerMichael Xavier <michael@michaelxavier.net>
CategoryData
Home pagehttp://github.com/michaelxavier/phash
Bug trackerhttp://github.com/michaelxavier/phash/issues
Source repositoryhead: git clone https://github.com/michaelxavier/phash
UploadedThu Mar 23 01:13:50 UTC 2017 by MichaelXavier

Modules

Flags

NameDescriptionDefaultType
lib-werrorDisabledManual

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

Downloads

Maintainers' corner

For package maintainers and hackage trustees


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