Eidetic memory or photographic memory is an ability to clearly recall images from memory alone.
Cardassians have photographic memories, particularly Iliana Ghemor, who was told by Corbin Entek that hers was exceptional. (DS9 episode: "The Maquis, Part I", DS9 novels: Fearful Symmetry, The Soul Key)
Elim Garak's eidetic memory was trained at the Bamarren Institute for State Intelligence. (DS9 novel: A Stitch in Time)
When Shaloza Trestan learned that Cardassians had photographic memories, he attempted to develop one himself. (DS9 short story: "The Manhunt Pool")
Julian Bashir and Sarina Douglas have total recall abilities and eidetic memories due to their genetic enhancements. (DS9 episode: "Inter Arma Enim Silent Leges", DS9 novel: Disavowed)