20. A system comprising: a processor; and a memory coupled to the processor, the memory storing instructions which when executed by the processor causes the system to perform a method, comprising: detecting data fields on an image; generating a flexible document description based on the detected data fields, including creating a set of search elements for each data field, each search element having one or more associated search criteria; and training the flexible document description using a search algorithm to detect the data fields on additional training images based on the set of search elements.
20. A system comprising: a processor; and a memory coupled to the processor, the memory storing instructions which when executed by the processor causes the system to perform a method, comprising: detecting data fields on an image; generating a flexible document description based on the detected data fields, including creating a set of search elements for each data field, each search element having one or more associated search criteria; and training the flexible document description using a search algorithm to detect the data fields on additional training images based on the set of search elements. 22. The system of claim 20 , wherein the method further comprises receiving a user input indicating one or more of the data fields to be detected.