How does the brain process visual information?

I was thinking about something: how does the brain recognize patterns? How do I know that a person is the same person even though they may be looking at me from a different angle. I can see storing an array of all the colors, and then determining what person it is based on how much the face deviates from the array, but that doesn’t explain how we can perceive the world as constant even as objects constantly change in actual form. I can only speculate that the brain takes the world seen, and finds points where sudden color shifts occur, and then separates everything into objects. Then the brain uses shadows/size to turn the object into a 3D point array, which can be used to infer how the shape changes at different angles.

Anyone have any insights on neuroscience?