Questions tagged [imagehash]

A image hashing library written in Python.

A image hashing library written in Python. ImageHash supports:

average hashing (`aHash`)
perception hashing (`pHash`)
difference hashing (`dHash`)
wavelet hashing (`wHash`)

Available on pypi,org.

20 questions
0
votes
1 answer

Python calculate phash from an image located at a url

I want to calculate the phash from about 10.000.000 pictures, from which i only have the url where they are located at. I know how to download a picture and then calculate the phash after that, but i always have to safe the picture first. Is it…
lxg95
  • 553
  • 2
  • 8
  • 28
0
votes
1 answer

AttributeError: 'Subject' object has no attribute 'file' when upload file in Django

i 'm trying tp upload a file in Django use ImageField. I want to hash this img before upload (using ImageHash), and save the image with the hashed file name. Below is my code, can you helo me fix this? models.py from utils import hash_image ... …
hajuha
  • 37
  • 1
  • 7
0
votes
2 answers

How to find an exact match of an image in hashed data with openCV

for my school project, I need to find images in a large dataset. I'm working with python and opencv. Until now, I've managed to find an exact match of an image in the dataset but it takes a lot of time even though I had 20 images for the test code.…
-1
votes
1 answer

How to compare hash values in python

I want to know how to compare two hash values not Hamming distance. Is there a way? The final goal is to determine key of python dictionary that similar images can have in common. for example. import imagehash # img1, img2, img3 are same…
minholee
  • 1
  • 1
-1
votes
1 answer

As a result of the Euclidean distance many images are mistakenly identified as identical

Sorry for my bad english, i have a small database that contains hashes of photos, when I try to find similar photos to the one below: for which the following hash was calculated: "0f3f2764ecc482c2" using the method…
user3391185
  • 33
  • 1
  • 1
  • 5
1
2