Humans in the eyes of hamsters are black and white and blurry. Hamsters are nocturnal animals and their eyesight is not very good. They generally use smell to identify things, so in their world, their owners and the world they live in are all black and white.
Hamsters mainly rely on their sense of smell to recognize the outside world. If it is familiar with the owner's scent, it can recognize the owner. Of course, to reach this level, the owner and the hamster must become familiar with each other over a long period of time and build a bridge of trust.