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
I don't think the imagehash library has inherent support for aniamted GIFs, so I will probably need to add it myself in the future. However, GIFs and Pillow seem to be a pain in the ass so here's hoping it's easier than it looks.
Why?
I just came across a relatively new discord bot named Onixian that uses animated gifs to identify pokemon.
Followup Idea:
Maybe don't hash each frame, only selective frames. Bots can change single frames and mess up the hash. I have to keep reminding myself that perceptual hashes are different than cryptographic hashes lol.
The text was updated successfully, but these errors were encountered:
I don't think the imagehash library has inherent support for aniamted GIFs, so I will probably need to add it myself in the future. However, GIFs and Pillow seem to be a pain in the ass so here's hoping it's easier than it looks.
Idea:
Resources:
https://gist.github.com/revolunet/848913
https://gist.github.com/BigglesZX/4016539
python-pillow/Pillow#2893
https://pythontic.com/image-processing/pillow/extract%20frames%20from%20animated%20gif
Why?
I just came across a relatively new discord bot named Onixian that uses animated gifs to identify pokemon.
Followup Idea:
Maybe don't hash each frame, only selective frames. Bots can change single frames and mess up the hash. I have to keep reminding myself that perceptual hashes are different than cryptographic hashes lol.
The text was updated successfully, but these errors were encountered: