1. A computer-implemented method comprising: obtaining an image of a paper document; detecting data fields on the image corresponding to a document type; generating by a processor of a data capture system a flexible document description for the document type 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.
1. A computer-implemented method comprising: obtaining an image of a paper document; detecting data fields on the image corresponding to a document type; generating by a processor of a data capture system a flexible document description for the document type 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. 4. The method of claim 1 , wherein the search elements comprise a type element to identify a data field by type and at least one anchor element to enable detection of a data field based on its position relative to the anchor element.