The invention determines the correct orientation of text blocks being processed
with an optical character recognition computer program. The method determines a
recognition confidence of characters in a text block being analyzed by the optical
character recognition computer program and evaluates an orientation of the text
block based on the recognition confidence.