You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sorry for stupid question again,
i got this code from your page
from PIL import Image
import imagehash
hash = imagehash.average_hash(Image.open('tests/data/imagehash.png'))
print(hash)
print(type(hash))# i edit this line
otherhash = imagehash.average_hash(Image.open('tests/data/peppers.png'))
print(otherhash)
print(hash == otherhash)
print(hash - otherhash)
as you can see, your hash can do some arithmetic,
i tried to convert from str : "ffd7918181c9ffff" or int : ffd7918181c9ffff
and both is fail ,
how to convert hash string into <class 'imagehash.ImageHash'>,
so i can do some arithmetic of it,
thank you,
have a nice day
The text was updated successfully, but these errors were encountered:
sorry for stupid question again,
i got this code from your page
as you can see, your hash can do some arithmetic,
i tried to convert from str : "ffd7918181c9ffff" or int : ffd7918181c9ffff
and both is fail ,
how to convert hash string into <class 'imagehash.ImageHash'>,
so i can do some arithmetic of it,
thank you,
have a nice day
The text was updated successfully, but these errors were encountered: