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 images
img1_hash = imagehash.average_hash(Image.open('data/image1.jpg'))
img2_hash = imagehash.average_hash(Image.open('data/image2.jpg'))
img3_hash = imagehash.average_hash(Image.open('data/image3.jpg'))
img4_hash = imagehash.average_hash(Image.open('data/image4.jpg'))
print(img1_has, img2_hash, img3_hash, img4_hash)
>>> 81c38181bf8781ff, 81838181bf8781ff, 81838181bf8781ff, ff0000ff3f00e7ff
Result that I want to print out.
{common value1 : [81c38181bf8781ff, 81838181bf8781ff, 81838181bf8781ff], common value2: [ff0000ff3f00e7ff]}
I tried to convert the image into a hash value and compare it,
but please let me know if there is any other way without converting to hash value.