Recognizing Characters with Severe Perspective Distortion Using Hash Tables and Perspective Invariants