"过目不忘的能力" can be translated into English as "the ability to remember everything after a single glance" or more concisely as "a photographic memory".
"The ability to remember everything after a single glance" directly describes the capability of recalling information perfectly after just seeing it once.
"A photographic memory" is a more idiomatic expression, implying that one's memory is as clear and detailed as a photograph, capable of retaining visual and other sensory information with high fidelity.