Agnosia (a-gnosis, "non-knowledge") is a loss of ability to recognize objects, persons, sounds, shapes or smells. However, the specific sense involved is not defective, there is no significant memory loss and knowledge of the characteristics of those objects or persons exist (So I may know that my keys are flat objects with a round or square head connected by a ring, but I can't tell you that the things dangling in front of my face are my keys) . Agnosia can result from strokes, dementia, or other neurological disorders. Most of the time agnosia is due to parietal or occipital lobe injury in the brain.
What are parietal and occipital lobes you ask? Well the occipital lobe is the very back part of your brain. In the picture below it is colored orange. As for the parietal lobe there are on the side of the brain. In the picture it is colored pink.

Visual agnosia is the inability to understand the meaning of visual stimuli despite apparently normal vision. There is a loss of recognition of visual perception. Visual agnosia is associated with lesion of the left occipital lobe and temporal lobes. Many patients who have visual agnosia also have a severe problems with their visual field.
Thank you