perceptual-hash-0.1.4.5: Find duplicate images
Safe HaskellSafe-Inferred
LanguageHaskell2010

PerceptualHash

Synopsis
  • imgHash :: (Ord e, Floating e, Array arr Y e, Array arr X e, Vector (Vector arr) Bool, Vector (Vector arr) e) => Image arr Y e -> Word64
  • fileHash :: FilePath -> IO (Either String Word64)
  • hammingDistance :: Bits a => a -> a -> Int

Documentation

imgHash :: (Ord e, Floating e, Array arr Y e, Array arr X e, Vector (Vector arr) Bool, Vector (Vector arr) e) => Image arr Y e -> Word64 Source #

DCT based hash. See Zauner.

It is suggested that you use this with the Repa backend.

fileHash :: FilePath -> IO (Either String Word64) Source #

hammingDistance :: Bits a => a -> a -> Int Source #

See wiki.

Since: 0.1.4.0