Recognition systems in our brains are complex. In fact, scientists are still trying to figure it out. What we can assume is that the neurons in our brain first identify the face in the scene (from the person's body to its background), we extract the facial features, and store it in our own kind of database.