1. A method for identifying a page layout of an image that includes textual regions, comprising: receiving an input image that includes words around which bounding boxes have been formed; grouping the words into a plurality of text regions; grouping words within each of the text regions into reading lines, this grouping comprising: grouping the words into three categories based on their height relative to an average height of the words in the text region such that each word is assigned to a small, average or tall category, arranging words assigned to the average category into a first set of reading lines, arranging words assigned to the small category into the first set of reading lines, and arranging words assigned to the tall category into the first set of reading lines after the words assigned to the small category have been arranged into the first set of reading lines; and sorting the text regions in accordance with their reading order.