1. An image processing apparatus, comprising: means for inputting a document image to be processed; means for extracting a non-character area from the document image, wherein the non-character area comprises a line; means for generating a character image by removing the non-character area from the document image; means for segmenting the character image into a plurality of sections to generate a segmented image; means for adjusting the segmented image using the line of the non-character area to generate an adjusted segmented image; and means for outputting a segmentation result generated based on the adjusted segmented image.