Eidetic memory

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. 

When Shaloza Trestan learned that Cardassians had photographic memories, he attempted to develop one himself. (SS DS9 (The Manhunt Pool))

Julian Bashir and Sarina Douglas have total recall abilities and eidetic memories due to their genetic enhancements.