1. A processor-implemented method for text processing comprising: expanding a Maximally Stable Extremal Region (MSER) in an image captured by a camera to obtain a neighborhood associated with the MSER, the neighborhood comprising a plurality of sub-blocks; detecting a shadow in the neighborhood based, at least in part, on parameters associated with intensities of pixels in the neighborhood; and when a shadow is detected in the neighborhood, thresholding a subset of sub-blocks of the plurality of sub-blocks in the neighborhood, the subset of sub-blocks comprising sub-blocks with text, wherein, to detect the sub-blocks with text, each sub-block in the subset of sub-blocks is thresholded using a corresponding local threshold associated with the sub-block.