How to check if 2 images are same?

“detection of hand drawn symbols” is actually a thing. google it