Some jurisdictions allow expert testimony about the unreliable nature of eye witness testimony. One example is Commonwealth of Pennsylvania v. Benjamin Walker, No. 28 EAP 2011-Supreme Court of Pennsylvania.
I recommend that anyone interested in this subject read The Invisible Gorilla: How Our Intuitions Deceive Us which is about attention, perception, memory, reasoning, and how they can cause problems in eye witness testimony.
Another book to read is Picking Cotton: Our Memoir of Injustice and Redemption which is about a man falsely accused of rape by a woman who said that she memorized certain characteristics about her attacker so she “wouldn’t forget”.