9. A non-transitory computer-readable medium having stored thereon a sequence of instructions which when executed by a system, causes the system to perform a method, comprising: obtaining an image of a document; detecting image objects on the image; matching by a processor the image objects to a predetermined document type, wherein image objects distinguish the document type from other document types, and wherein image objects include anchor elements; generating by the processor a flexible structure description corresponding to the predetermined document type based on the detected image objects, wherein the flexible structure description includes a set of search elements for each data field in the image of the document, each search element having an associated search criterion; searching, via a search algorithm, additional document images to determine a respective document type of the additional document images, wherein each of the additional document images are of a document type corresponding to the predetermined document type; modifying the flexible structure description based on said searching of additional document images, wherein the search algorithm is configured to detect data fields based on the flexible structure description, said data fields corresponding to the predetermined document type; and repeating said searching and modifying of the flexible structure description until a defined level of precision is achieved or exceeded.
9. A non-transitory computer-readable medium having stored thereon a sequence of instructions which when executed by a system, causes the system to perform a method, comprising: obtaining an image of a document; detecting image objects on the image; matching by a processor the image objects to a predetermined document type, wherein image objects distinguish the document type from other document types, and wherein image objects include anchor elements; generating by the processor a flexible structure description corresponding to the predetermined document type based on the detected image objects, wherein the flexible structure description includes a set of search elements for each data field in the image of the document, each search element having an associated search criterion; searching, via a search algorithm, additional document images to determine a respective document type of the additional document images, wherein each of the additional document images are of a document type corresponding to the predetermined document type; modifying the flexible structure description based on said searching of additional document images, wherein the search algorithm is configured to detect data fields based on the flexible structure description, said data fields corresponding to the predetermined document type; and repeating said searching and modifying of the flexible structure description until a defined level of precision is achieved or exceeded. 11. The non-transitory computer-readable medium of claim 9 , wherein detecting image objects on the image comprises: detecting an anchor element on the image for a data field.