Patent ID: 8467608

Claim:
A method for character string recognition by processing image data obtained through picking up a character string placed on a medium comprising: a first step of calculating vertical projection data of the image data in a vertical direction perpendicular to a direction of the character string while shifting the image data in the direction of the character string; and a second step of detecting positions exceeding a prescribed threshold value in the vertical projection data obtained through the first step described above as segmentation positions of characters included in the character string; wherein the prescribed threshold value comprises: a first threshold value determined according to the number of pixels existing between both ends of the character string detected by using the vertical projection data obtained through the first step; a second threshold being set to an “n+1”-th value of positive peak values of the vertical projection data obtained in the first step, where “n” represents the number of characters included in the character string; wherein the first threshold value defines a threshold value that becomes larger as the number of pixels between both ends of the character string becomes larger and becomes smaller as the number of pixels between both ends of the character string becomes smaller; the second threshold value corresponds to the “n+1”-th value of the peak values where the positive peak values included in the vertical projection data are disposed in due order starting from the largest one; and the second step uses the second threshold value for detecting the segmentation positions if the first threshold value is smaller than the second threshold value.