1. A computer-implemented method comprising: detecting, by a processor, text components in an image, each of the text components comprising a different respective portion of the image identified as likely containing text; generating, by the processor, lines between pairs of the text components; matching, by the processor, a first line of the lines with a set of the text components based on features of the text components of the set; and recognizing, by the processor, text from the set of the text components.