Patent ID: 8170862

Claim:
A document image processing device comprising: a region dividing unit that divides a document image into sentence regions; a character recognizing unit that recognizes characters in each sentence region obtained by the region dividing unit; a classifying unit that classifies first character sizes and first line spacings in the sentence regions as a same group (i) when the first character sizes are the same as each other or the first character sizes are in a first predetermined range and (ii) when the first line spacings are the same as each other or the first line spacings are in a second predetermined range, wherein the first character sizes represent sizes of the recognized characters and the first line spacings represent spacings between lines; a translation unit that translates the characters constituting a character string in each sentence region to another language; a calculating unit that calculates, for each sentence region, second character sizes and second line spacings that are used when a character string obtained by translating by the translation unit is arranged in each sentence region; and a correcting unit that corrects the second character sizes and the second line spacings of the sentence regions classified into the same group by the classifying unit so that differences in second character size and second line spacing between the sentence regions of the same group are substantially equal to or less than predetermined values.