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

Safe HaskellNone
LanguageHaskell2010

Data.PHash.Image

Synopsis

Documentation

imageHash :: FilePath -> IO (Maybe PHash) Source

Obtain the hash of an image. Returns Nothing on failure. pHash's API does not provide any error information when this fails, but CImg may dump something to stderr.

Examples:

>>> import Data.PHash
>>> imageHash imgPath
Just (PHash 17549625427362946731)