1. A method comprising: applying a filter having a stroke width constraint and a stroke color constraint to an image to generate a first map based on the stroke width constraint and a second map based on the stroke color constraint; applying a first classifier to both the first map and the second map to generate a third map identifying a component of a text in the image; applying a second classifier to the third map to generate a fourth map identifying a text line of the text in the image; and thresholding the fourth map to identify text regions in the image.