Patent ID: 7007846

Claim:
A method for aligning a scan pattern to a two dimensional bar code having parallel rows of codewords, comprising the steps of: scanning the two dimensional bar code with a scanning pattern oriented such that a plurality of lines thereof cross the bar code rows; determining if there is a non-zero angle between at least one of the plurality of lines and the rows by decoding codewords in rows intersected by the at least one line; and adjusting the orientation of the scanning pattern to reduce the absolute value of the angle; wherein the bar code has row indicator code words in each row and wherein the step of determining comprises decoding the row indicator codewords read by the at least one line and determining the slope of the angle therefrom wherein the bar code has a fixed number of module widths in each codeword and a row height which is a function of the module width and the number of codewords per row encoded therein and wherein the step of determining further comprises determining a magnitude of the angle from the number of codewords per row and the aspect ratio of the row height to the module width.