1. A method for generating training data for optical character recognition, the method comprising: selecting a line of text from a multi-line text fragment; selecting a character located in the line of text; displaying a character subsequence from the line of text in a single-line user-interface (UI) element, wherein the character subsequence is rendered in a font type and a font size for display in the single-line UI element and wherein the character subsequence includes the character and any characters that precede the character in the line of text; determining a width used by single-line UI element to display the character subsequence; determining at least a first coordinate and a second coordinate, wherein the first coordinate and the second coordinate define a position of a bounding box for the character in a training image; and storing the training image, the multi-line text fragment, an indication of the font type, an indication of the font size, and the first and second coordinates as training data for optical character recognition.
1. A method for generating training data for optical character recognition, the method comprising: selecting a line of text from a multi-line text fragment; selecting a character located in the line of text; displaying a character subsequence from the line of text in a single-line user-interface (UI) element, wherein the character subsequence is rendered in a font type and a font size for display in the single-line UI element and wherein the character subsequence includes the character and any characters that precede the character in the line of text; determining a width used by single-line UI element to display the character subsequence; determining at least a first coordinate and a second coordinate, wherein the first coordinate and the second coordinate define a position of a bounding box for the character in a training image; and storing the training image, the multi-line text fragment, an indication of the font type, an indication of the font size, and the first and second coordinates as training data for optical character recognition. 8. The method of claim 1 , further comprising: receiving an indication of a set of font types for a batch mode; receiving an indication of a set of font sizes for the batch mode; selecting the font type from the set of font types; and selecting the font size from the set of font sizes.