acter, graphic, symbol or the straight line portion such as the frame and rule, and a second pattern including the character, graphic or symbol which touches the straight line portion such as the frame and rule, based on each straight line portion extracted by the straight line extracting means, and separating means for separating the straight line portions such as the frame and rule from the seco