8000 GitHub - stuaxo/imagehash: A Python Perceptual Image Hashing Module
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

stuaxo/imagehash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageHash

A image hashing library written in Python. ImageHash supports:

Requirements

Based on PIL Image, numpy and scipy.fftpack (for pHash) Easy installation through pypi.

Basic usage

>>> import Image
>>> import imagehash
>>> hash = imagehash.average_hash(Image.open('test.png'))
>>> print hash
d879f8f89b1bbf
>>> otherhash = imagehash.average_hash(Image.open('other.bmp'))
>>> print otherhash
ffff3720200ffff
>>> print hash == otherhash
False
>>> print hash - otherhash
36

Demo script find_similar_images illustrates how to find similar images in a directory.

Source hosted at github: https://github.com/JohannesBuchner/imagehash

About

A Python Perceptual Image Hashing Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0