I am trying to identify pokémon. At first I thought about image-recognition, but then I realized it wasn't necessary since I could compare the screenshot of a pokémon with the actual sprites of the game (which are almost identical).
I searched on this community on how to check if two images look the same and I came across this question: Programmatically determine if 2 images look the same using Java.
I've tried the code posted in the accepted answer but sadly didn't work for me because even though the two images are almost identical the result stated otherwise.