Patent ID: 8135217

Claim:
A method for aligning a camera sensor to significant data which is text or barcode data to be recognized comprising the steps of: a) capturing an image of the significant data by means of the camera sensor; b) adapting contrast, compensating shade and processing an adaptive binarization of the image to obtain an artifact reduced image; c) edge and line filtering of the artifact reduced image to obtain an edge and line enhanced image; d) processing a transformation of the edge and line enhanced image by means of a robust algorithm for predominant alignment line angle detection of the significant data contained in the image in respect to a horizontal line of the camera sensor, such as to obtain a predominant alignment line, the predominant alignment line angle representing the inclination of the predominant alignment line in respect to the horizontal line; e) determining image sections within the edge and line enhanced image which contain most likely significant data lines, comprising the following sub-steps: detecting significant data lines which are substantially in alignment with the predominant alignment line; determining distances between adjacent significant data lines; and determining the image sections with substantially equally spaced apart adjacent significant data lines; f) selecting a representative image section out of the determined image sections with the highest likelihood of containing significant data and being aligned with the predominant alignment line; g) capturing a following image of the significant data by means of the camera sensor; h) applying steps b) and c) again, taking the following image now as the image for said image processing within steps b) and c) and obtaining an edge and line enhanced image; i) detecting and tracking the representative image section within the edge and line enhanced image of step h); k) starting the process again at step d) if the representative image could not be detected and tracked again within step i); l) determining the predominant alignment line angle from the representative image section in respect to the horizontal line of the camera sensor; m) generating an user feedback signal dependent on the predominant alignment line angle and checking whether the predominant alignment line angle is equal or below a threshold; n) repeating the process from step g) onwards if the predominant alignment line angle is above the threshold and the process of the alignment of the camera sensor to the significant data is not stopped by other means such as user action; n) storing the last taken image or making immediately a high resolution image for a further processing if the predominant alignment line angle is below or equal to the threshold or if the process of the alignment of the camera sensor to the significant data is stopped by other means such as user action.