Patent ID: 9692929
Date: 2017-06-27
CPC Classifications: G06K,H04N

Claim:
1. A method for correction of an image acquired by a hand-held scanning device wherein the image has at least one central text portion which is distorted by instantaneous change of scanning direction of the hand-held scanning device relative to an image to be acquired, the method comprising the steps of binarizing the image acquired by a hand-held scanning device to become a binarized image of first and second components, cropping the binarized image to become a cropped image by removing columns on the left end and on the right end of only first components, creating a work image from the cropped image by replacing in each row of components series of first components smaller than a predetermined distance with series of second components, identifying in the work image a central line, the identifying step comprising selecting first connected components for which a leftmost triplet is part of the leftmost column of the cropped image, determining couples of first connected components of which the distance between the middle points of the leftmost triplets is between a predetermined range, selecting in the couples of first connected components the couple of first connected components nearest to the middle of the cropped image in the column direction, and determining the central line as the components between the selected couple of first connected components, the method further comprising determining in the cropped image the components corresponding to the central line in the work image as a central text line to create a central line image, and straightening the central text line in the central line image to become a corrected image.