22. A system for determining a logical structure of a document, the system comprising: a processor; a memory configured with instructions to perform a method comprising: acquiring an image of the document; generating at least one document hypothesis for the image of the document, wherein said generating includes referencing a plurality of document models, wherein each document model describes one or more possible logical structures in the image of the document; selecting programmatically as a best document hypothesis the document hypothesis that has a best correspondence with the image of the document; and forming a representation of the document based on the best document hypothesis.
24. The system of claim 22 , wherein said selecting programmatically as a best document hypothesis the document hypothesis includes selecting programmatically the document hypothesis that has the best degree of correspondence with the selected best block hypotheses for the document.