Skip to content

zhaotaomcp/image-similarity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

image-similarity

  • An easy way to retrieve similar images by phash

Dependency:

  • pip install imagehash
  • pip install PIL

Program description:

    1. Get the phash of images.
    1. Calculate the Hamming distance between the images.

What is a perceptual hash?

  • A perceptual hash is a fingerprint of a multimedia file derived from various features from its content. Unlike cryptographic hash functions which rely on the avalanche effect of small changes in input leading to drastic changes in the output, perceptual hashes are "close" to one another if the features are similar.

What is the Hamming distance?

  • The Hamming distance between two integers is the number of positions at which the corresponding bits are different

Reference:

About

An easy way to retrieve similar images by phash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages