Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
GRAPHICALLY DEMODULATING BAR CODES WITHOUT FOREKNOWLEDGE OF THE ORIGINAL UNMODULATED BASE IMAGE
Document Type and Number:
WIPO Patent Application WO/2003/036554
Kind Code:
A1
Abstract:
Systems and methods of graphically demodulating a graphical bar code (10) (i.e., an image that contains inconspicuous graphical modulations that encode information (22) embedded in an original base (26) are described. The graphical bar code (10) may be graphically demodulated automatically without foreknowledge of the original unmodulated base image (26), but rather based upon a base image (60) that is derived based upon intrinsic features of the graphical bar code (10).

Inventors:
SHAKED DORON
LEVY AVRAHAM
YEN JONATHAN
Application Number:
PCT/US2002/032423
Publication Date:
May 01, 2003
Filing Date:
October 09, 2002
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
HEWLETT PACKARD CO (US)
International Classes:
G06K7/10; G06K7/14; (IPC1-7): G06K7/10; G06K7/14
Domestic Patent References:
WO1995034043A11995-12-14
Foreign References:
US5367578A1994-11-22
Other References:
PATENT ABSTRACTS OF JAPAN vol. 1997, no. 01 31 January 1997 (1997-01-31)
Attorney, Agent or Firm:
Heminger, Susan E. (IP Administration P. O. Box 27240, Ft. Collins CO, US)
Download PDF:
Claims:
WHAT IS CLAIMED IS:
1. A method of decoding a graphical bar code (10) corresponding to an original base image (26) modulated with a graphical encoding of an original message (24), comprising: measuring one or more intrinsic features of the graphical bar code (10); based upon the intrinsic feature measurements, selecting a sequence of graphical templates from a predefined template set of informationencoding graphical templates; and graphically demodulating the graphical bar code (10) with the selected sequence of graphical templates to produce a message (58).
2. The method of claim 1, wherein selecting the sequence of graphical templates comprises deriving a base image (60) corresponding to the original image based upon the intrinsic feature measurements.
3. The method of claim 2, wherein selecting the sequence of graphical templates comprises selecting a template for each region of the graphical bar code (10) likely to match a corresponding region of the original base image (26).
4. The method of claim 3, further comprising computing a weighted average of gray value measurements over each graphical bar code region.
5. The method of claim 4, wherein the weighted average of gray values is computed by fitting a mask to dot locations over each graphical bar code region.
6. The method of claim 5, wherein the mask has a truncated Gaussian profile.
7. The method of claim 5, wherein the step of selecting a template for each region of the graphical bar code comprises computing template probabilities for each graphical bar code region.
8. The method of claim 5, further comprising assigning to each pixel a dark pixel value or a bright pixel value based upon a threshold applied to the masked average gray value measurements.
9. The method of claim 2, wherein selecting the sequence of graphical templates comprises selecting a base image likely to match the original base image (26) from a set of possible base images based upon information encoded in the graphical bar code (10).
10. A computer program for decoding a graphical bar code (10) corresponding to an original base image (26) modulated with a graphical encoding of an original message (24), the computer program residing on a computerreadable medium and comprising computerreadable instructions for causing a computer to: measure one or more intrinsic features of the graphical bar code (10); based upon the intrinsic feature measurements, select a sequence of graphical templates from a predefined template set of informationencoding graphical templates ; and graphically demodulate the graphical bar code (10) with the selected sequence of graphical templates to produce a message (58).
Description:
GRAPHICALLY DEMODULATING BAR CODES WITHOUT FOREKNOWLEDGE OF THE ORIGINAL UNMODULATED BASE IMAGE CROSS-REFERENCE TO RELATED APPLICATIONS This application relates to the following co-pending applications, each of which is incorporated herein by reference: U. S. Patent Application No. 09/579,010, filed May 25, 2000, by Doron Shaked et al., and entitled"A Method and Apparatus for Generating and Decoding a Visually Significant Bar Code ;" U. S. Patent Application No. 09/429,515, filed October 28,1999 by Renato Kresch et al. , and entitled"System and Method for Counterfeit Protection ;" U. S. Serial No. 09/728,292, filed December 1, 2000, by Jonathan Yen et al. , and entitled"Authenticable Graphical Bar Codes ;" U. S. Patent Application No. 09/578,843, filed May 25,2000, by Doron Shaked et al. , and entitled"Geometric Deformation Correction Method and System for Dot Pattern Images ;" U. S. Serial No.

09/877,516, filed on June 7,2001, by Doron Shaked et al. , and entitled"Generating and Decoding Graphical Bar Codes ;" U. S. Patent Application No. 09/877, 581, filed on June 7,2001, by Jonathan Yen et al. , and entitled"Automatically Extracting Graphical Bar Codes ;" and U. S. Patent Application No. 09/877,517, filed on June 7,2001, by Doron Shaked et al., and entitled"Fiducial Mark Patterns for Graphical Bar Codes." TECHNICAL FIELD This invention relates to systems and methods of graphically demodulating graphical bar codes.

BACKGROUND A typical bar code symbol is a pattern of parallel bars and spaces of various widths that represent data elements or characters. The bars represent strings of binary ones and the spaces represent strings of binary zeros. A conventional"one-dimensional" bar code symbol contains a series of bars and spaces that vary only in a single dimension.

One-dimensional bar code symbols have relatively small information storage capacities.

"Two-dimensional"bar codes have been developed to meet the increasing need for machine-readable symbols that contain more information than one-dimensional bar code symbols. The information storage capacity of two-dimensional bar code symbols is increased relative to one-dimensional bar codes by varying the bar code patterns in two dimensions. Common two-dimensional bar code standards include PDF417, Code 1, and

Maxicode. One-dimensional and two-dimensional bar code symbols typically are read by optical scanning techniques (e. g. , by mechanically scanned laser beams or by self- scanning charge-coupled devices (CCD's) ) that convert a printed bar code symbol into electrical signals. The electrical signals are digitized and decoded to recover the data encoded in the printed bar code symbol.

Bar codes may be used in a variety of applications, including low information content applications (e. g. , automatic price tagging and inventory management), and relatively high information content applications (e. g. , encoding mail addresses and postage for automated mail reading and mail distribution systems, and encoding compressed content of a printed page).

SUMMARY As used herein, the term"graphical bar code"broadly refers to an image that contains inconspicuous graphical modulations that encode embedded information. The invention features systems and methods of graphically demodulating a graphical bar code automatically without foreknowledge of the original unmodulated base image, but rather based upon a base image that is derived based upon intrinsic features of the graphical bar code.

In one aspect, the invention features a method of decoding a graphical bar code corresponding to an original base image that is modulated with a graphical encoding of an original message. In accordance with this inventive method, one or more intrinsic features of the graphical bar code are measured. Based upon the intrinsic feature measurements, a sequence of graphical templates is selected from a predefined template set of information-encoding graphical templates. The graphical bar code is graphically demodulated with selected sequence of graphical templates to produce a message.

Embodiments in accordance with this aspect of the invention may include one or more of the following features.

The step of selecting the sequence of graphical templates preferably comprises deriving a base image corresponding to the original image based upon the intrinsic feature measurements.

In some embodiments, the step of selecting the sequence of graphical templates comprises selecting a template for each region of the graphical bar code likely to match a corresponding region of the original base image. A weighted average of gray value measurements may be computed over each graphical bar code region. The weighted

average of gray values may be computed by fitting a mask to dot locations over the given graphical bar code region. The mask may have a truncated Gaussian profile.

In some of these embodiments, the step of selecting a template for each region of the graphical bar code comprises computing template probabilities for each graphical bar code region. Template probabilities may be computed for a given bar code region based upon the weighted average of gray value measurements over each graphical bar code region. In some of these embodiments, parameters of probability distributions fit to a histogram of the weighted average gray values may be estimated.

In other embodiments, the step of selecting a template for each region of the graphical bar code comprises assigning a dark pixel value or a bright pixel value to each pixel based upon a threshold that is applied to the masked average gray value measurements.

In some embodiments, the step of selecting the sequence of graphical templates comprises selecting a base image that is likely to match the original base image from a set of possible base images. The matching base image may be selected based upon information that is encoded in the graphical bar code. For example, the matching base image may be selected based upon size and aspect ratio characteristics of the graphical bar code. The matching base image may be selected based upon correlation between the graphical bar code and base images of the set of possible base images. The matching base image also may be selected based upon a message that is associated with the graphical bar code. The message may be embedded in a bar code located in a predefined position relative to the graphical bar code, in a marking pattern surrounding the graphical bar code, or in a marking pattern having a different radiant energy response than the graphical bar code.

In another aspect, the invention features a computer program for decoding a graphical bar code corresponding to an original base image that is modulated with a graphical encoding of an original message. The computer program resides on a computer-readable medium and comprises computer-readable instructions for causing a computer to: measure one or more intrinsic features of the graphical bar code; based upon the intrinsic feature measurements, select a sequence of graphical templates from a predefined template set of information-encoding graphical templates; and graphically demodulate the graphical bar code with the derived sequence of graphical templates to produce a message.

Other features and advantages of the invention will become apparent from the following description, including the drawings and the claims.

DESCRIPTION OF DRAWINGS FIG. 1 is a block diagram of an encoding module, a decoding module, and document-handling channel through which one or more graphical bar codes may be transmitted.

FIG. 2 is a flow diagram of a method of rendering a base image with a graphical encoding of information.

FIG. 3 is a flow diagram of a method of graphically demodulating a graphical bar code without foreknowledge of the original unmodulated base image.

FIG. 4 is a diagrammatic view of a process of deriving a base image from a graphical bar code.

FIG. 5 is a flow diagram of a method of computing a histogram of weighted average of gray values of graphical bar code input regions that are correlated with a mask.

FIG. 6 is an example of a histogram that is computed in the method of FIG. 5.

FIG. 7 is a flow diagram of a method of computing a threshold value that is used to select pixel values for estimating the original unmodulated base image.

FIG. 8 is a flow diagram of method of estimating parameters of a pair of probability distribution functions fit to the histogram of FIG. 6.

FIG. 9 is a flow diagram of a method of deriving a base image by selecting a predefined base image that is most likely to match the original unmodulated base image based upon information encoded in the graphical bar code input.

DETAILED DESCRIPTION In the following description, like reference numbers are used to identify like elements. Furthermore, the drawings are intended to illustrate major features of exemplary embodiments in a diagrammatic manner. The drawings are not intended to depict every feature of actual embodiments nor relative dimensions of the depicted elements, and are not drawn to scale.

Referring to FIG. 1, in one embodiment, a graphical bar code 10 may be generated by an encoding module 12, processed through a document-handling channel 14, and decoded by a decoding module 16.

Encoding module 12 includes an encoding stage 18 and a graphic modulation stage 20. Encoding module 12 may be implemented as one or more program modules that are executable on a computer or other programmable processor. In operation, encoding module 12 encodes information 22 into an encoded message 24. For example, information 22 may be compressed in accordance with a conventional compression algorithm, and encoded with an error correction code. Error correction coding provides robustness to errors due to degradations introduced by document-handling channel 14.

The error correction codes also may be interleaved to protect against burst errors. In some embodiments, encoding module 12 may be programmed to generate from information 22 a corroborative signed message in accordance with the encoding process described in U. S. Serial No. 09/728,292, filed December 1, 2000, by Jonathan Yen et al., and entitled"Authenticable Graphical Bar Codes. "During the encoding stage 18, the compressed and error correction coded message is translated into an ordered sequence of information-encoding graphical templates. During the graphic modulation stage 20, an original base image 26 is modulated in accordance with the ordered sequence of graphical templates to produce graphical bar code 10. Base image 26 may be any graphical pattern, including a logo (e. g. , a company logo), graphics, pictures, text, images, or any pattern that has visual significance. Information 22 may be embedded in the graphical design of text, pictures, images, borders, or the background of base image 26 to produce graphical bar code 10. Information 22 may be embedded in graphical bar code 10 in the form of a binary image (e. g. , a dark and bright dot pattern), a multilevel image (e. g. , a gray-level image), or a multilevel color image.

In the document-handling channel 14, graphical bar code 10 may be converted into one or more hard copies 30 by a printing stage 28. Hard copies 30 may be processed through a handling stage 32 before being converted into an electronic scanned image 36 by a scanning stage 34. Graphical bar code 10 may be printed by a conventional printer (e. g. , a LaserJeti) printer available from Hewlett-Packard Company of Palo Alto, California, U. S. A. ) or a special-purpose label printing device. Hard copies 30 may be in the form of any one of a wide variety of printed materials, including a bank draft (or check) carrying a graphical bar code of a withdrawal authorization signature, a stock certificate or bond carrying a graphical bar code of an authenticity certification, and an envelope carrying a graphical bar code of postage indicia. Hard copies 30 may be scanned by a conventional desktop optical scanner (e. g. , a ScanJet scanner available from Hewlett-Packard Company of Palo Alto, California, U. S. A. ) or a portable scanner

(e. g. , a CapShareW portable scanner available from Hewlett-Packard Company of Palo Alto, California, U. S. A. ). The scanned image 36 that is acquired by the scanner and introduced into decoding module 16 is a degraded version of the original graphical bar code 10. These degradations may be generated at one or more of the document-handling channel stages, including the printing stage 28, the handling stage 32 (e. g. , copying degradations, stains, folds, staples, and markings), and the scanning stage 34.

In general, decoding module 16 includes a pre-processing stage 40, an alignment stage 42, a geometric correction stage 44, an optional probabilistic analysis stage 46, a graphic demodulation stage 48, and a decoding stage 50. Decoding module 16 may be implemented as one or more program modules that are executable on a computer or other programmable processor. During the pre-processing stage 40, a scanned graphical bar code image 52 may be located in scanned image 36, and non-bar code regions may be cropped and trimmed from the scanned (or input) image 36. See U. S. Patent Application No. 09/877, 581, filed on June 7, 2001, by Jonathan Yen et al., and entitled "Automatically Extracting Graphical Bar Codes. "During the alignment stage 42, fiducial marks are detected in scanned bar code image 52. The configuration of the detected fiducial marks indicates the type of global deformations that might have been introduced into the graphical bar code during transmission of graphical bar code 10 through document handling channel 14. These global deformations (e. g., translational, rotational, affine and skew distortions) may be corrected during the geometric correction stage 44 as described in U. S. Patent Application No. 09/578,843, filed May 25,2000, by Doron Shaked et al. , and entitled"Geometric Deformation Correction Method and System for Dot Pattern Images. "During the probabilistic analysis stage 46, in one embodiment, probability models are applied to pixel value measurements obtained from the aligned and geometrically corrected scanned bar code image 54 to produce a set of probability parameters 56. The probability parameters 56 are used during the graphic demodulation stage 48 to select the most likely sequence of information-encoding graphical templates that corresponds to the graphical template sequence that was originally encoded into base image 26. See U. S. Serial No. 09/877,516, filed on June 7,2001, by Doron Shaked et al., and entitled"Generating and Decoding Graphical Bar Codes. "The selected graphical template sequence is translated into an encoded message 58 that is decoded into information 22 by the decoding stage 50. As explained in detail below, decoding module 16 is configured to decode scanned graphical bar code 36 automatically without

foreknowledge of the original, unmodulated base image 26, but rather based upon a derived base image 60.

Referring to FIG. 2, graphical bar code 10 may be produced by graphically modulating base image 26 in accordance with the following graphical encoding process.

Base image 26 is partitioned into a plurality of sub-matrices (or sub-images) (step 62).

For example, if base image 26 is an M x N pixel image, it may be partitioned into a regular array of O K x K pixel sub-matrices, where O = M x N/ (K x K). Optionally, one or more base image sub-matrices may be reserved for fiducial marks (step 64). Un- reserved sub-matrices are converted into binary bar code matrices based upon a selected graphical encoding process (step 66). For example, in one graphical encoding embodiment, information 22 may be encoded into a bi-level image by a two-bit encoding process based upon two-by-two halftone patterns (or matrices). See U. S. Patent Application No. 09/579, 010, filed May 25,2000, by Doron Shaked et al. , and entitled"A Method and Apparatus for Generating and Decoding a Visually Significant Bar Code." In another graphical encoding embodiment, un-reserved sub-matrices may be converted into binary bar code matrices by applying an invertible graphical operation (e. g. , an XOR graphical operation) between the un-reserved sub-matrices and a sequence of information-encoding graphical templates that is ordered in accordance with the information 22 to be encoded. See U. S. Patent Application No. 09/877,516, filed on June 7,2001, by Doron Shaked et al., and entitled"Generating and Decoding Graphical Bar Codes. "A fiducial mark pattern also may be generated to track one or more reference locations and local deformation across the resulting graphical bar code (step 68). See U. S. Patent Application No. 09/877,517, filed on June 7,2001, by Doron Shaked et al., and entitled"Fiducial Mark Patterns for Graphical Bar Codes." Referring to FIG. 3, in one embodiment, decoding module 16 is configured to graphically demodulate scanned graphical bar code 36 automatically without foreknowledge of the original unmodulated base image 26, but rather based upon a base image 60 that is derived from intrinsic features of scanned graphical bar code 36. In accordance with this graphical demodulation method, one or more intrinsic features of scanned graphical bar code 36 are measured (step 70). The intrinsic features may correspond to pixel values of scanned graphical bar code 36. Alternatively, the intrinsic features may correspond to encoded information that is associated with scanned graphical bar code 36 and from which a base image of a predefined set of possible base images may

be selected. Based upon the intrinsic feature measurements, a sequence of predefined graphical templates is selected (step 72). The graphical bar code is demodulated with the selected sequence of graphical templates to produce a message (step 74). The message then may be decoded to recover information 22.

In general, each scanned sub-image may be compared against all of the halftones that an arbitrary input sub-image may have created. After the best match is found, the halftone information is available for the demodulation process. For example, if a sub- image holds n pixels, there are 2"different sub-images. Assuming each different sub- image may give rise to L distinct halftone patterns, there are L2"possible bar code templates to compare. For the L2"output sub-images to be distinct, there should be more halftone dots than input pixels. Specifically, if there are m dots in every halftone pattern, this condition requires that 2"'> L2", or m > log2L + n. Both the base image input region (one of 2n) and the information-encoding graphical template (one of L) may be derived from the best match between the input sub-image and the L2"halftones.

Referring to FIG. 4, in some embodiments, the process of identifying the best match between the input sub-image and the L2n halftones is separated into the steps of estimating the most likely base image region, and identifying the corresponding graphical template by graphically demodulating the graphical bar code input region with the estimated (or derived) base image region. A base image may be derived from scanned bar code image 36 (or graphical bar code input) by selecting templates for each region (or sub-image) of the graphical bar code input likely to match a corresponding region of the original base image 26. In accordance with this embodiment, intrinsic features of the graphical bar code input 36 are measured (step 80). Based upon the intrinsic feature measurements, a threshold is estimated (step 82). The estimated threshold then is applied to the intrinsic feature measurements to derive the base image 60 (step 84).

Referring to FIGS. 5,6 and 7, in one embodiment, graphical bar code 10 may be decoded in accordance with the process of FIG. 4, as follows.

Referring initially to FIG. 5, pixel arrays in the scanned and aligned bar code image are identified to individual pixels in the original bar code image 10 (step 90).

Typically, the graphical bar code is scanned at a high resolution such that each original pixel corresponds to an array of r x r scanned pixels. Due to the visual degradation that often is caused by the printing, handling and scanning processes of document-handling channel 14, the resulting arrays of scanned pixels are no longer homogenous and, instead,

contain scanned pixels of different gray levels. Under these conditions, the borders of the scanned pixels arrays corresponding to each pixel in the original graphical bar code 10 are identified in accordance with the method described in U. S. Patent Application No.

09/578,843, filed May 25,2000, by Doron Shaked et al. , and entitled"Geometric Deformation Correction Method and System for Dot Pattern Images." As explained in detail below, each r x r dot array in scanned bar code image 36 is identified with a single original graphical bar code pixel. For example, if the encoding process is based upon a set of 2x2 graphical templates, each 2x2 dot array in the scanned bar code image 36 is identified with a single pixel of the original bar code image. Next, the input pixel is estimated by measuring the average gray value of the corresponding rxr dot pattern. The average gray value may be measured by correlating the arrays with a mask. In the following description, s is defined as an array of scanned pixels corresponding to one original pixel and the gray levels of its scanned pixels are denoted by sij where i, j=l,.., r.

Referring to FIGS. 5 and 6, in one embodiment, a weighted average of gray values is computed for each pixel of each measurement block (step 94). To that end, a function of the sij that discriminates between arrays that corresponds to dark original pixels and those corresponding to bright original pixels is applied to the scanned pixel arrays. In one embodiment, the linear discrimination function of equation (1) is applied to the scanned pixel arrays to discriminate between dark and bright pixels. where the coefficients cij are taken as grid values of the two dimensional truncated gaussain shaped surface of equation (2). pos (exp (- (X-C) 2/5)-) (2) where x indicates the mask coordinate, c the center of the dot pattern, A the truncation factor, s a scalar factor, and pos (x) = x for x>0 and 0 for xO. The scalars s and A are tuned according to the scanning resolution and the expected deformation strength. In one

embodiment, s and A are set so that the mask is 0 along a band whose width is about 1/3 dot size, and rises to half its amplitude at about 1/3 dot size away from the center.

The measurements are collected, and analyzed to find a threshold indicating whether the original pixel corresponding to a measured pattern is dark or bright. To this end, a histogram (see FIG. 6) of the discrimination function is computed for each pixel in the scanned halftoned image (step 96). The histogram measurements are a weighted average of gray values of aligned and geometrically corrected dot locations over a given image. The horizontal axis is a linear function of the weighted average of gray values, and the vertical axis is the histogram count axis. The right side population belongs to "bright"pixels and the left side population belongs to"dark"pixels.

Refering to FIG. 7, in one embodiment, a threshold for identifying bright and dark pixels is estimated as follows. First, the histogram function is smoothed using, for example, a conventional smoothing algorithm (e. g. , an algorithm based upon convolution with a Gaussian function) (step 100). Next, a gradient descent start value is set initially to the median gray value (step 102). A gradient descent is performed from the start value (step 104). If the resulting local minimum is located in the lower 10th percentile of the distribution of dots (step 106), the gradient descent start value is increased (step 108) and the process is repeated (step 104). Similarly, if the resulting local minimum is located in the upper 10th percentile of the distribution of dots (step 110), the gradient descent start value is decreased (step 112) and the process is repeated (step 104). Otherwise, the estimated threshold is set to the local minimum gray value (step 114).

The estimated base image 60 is derived by applying the estimated threshold to the histogram (step 84; FIG. 4). The derived base image 60 then may be used to graphically demodulate the graphical bar code input (step 48; FIG. 1). For example, each of the templates of a known set of graphical templates may be applied to the derived base image 60 to generate a set of L possible halftone patterns. Each of the set of L possible halftone patterns then may be compared with the sub-image regions of the input scanned bar code image 36 to determine the most likely sequence of graphical templates. The most likely matching graphical templates may be selected using the matched filter approach described in U. S. Patent Application No. 09/579,010, filed May 25,2000, by Doron Shaked et al. , and entitled"A Method and Apparatus for Generating and Decoding a Visually Significant Bar Code. "Alternatively, the most likely matching graphical templates may be selected using the maximum likelihood approach described in U. S.

Serial No. 09/877,516, filed on June 7,2001, by Doron Shaked et al. , and entitled

"Generating and Decoding Graphical Bar Codes."The template sequence then is translated into a corresponding symbol sequence based upon the coding process used to encode information 22 into graphical bar code 10.

Referring to FIG. 8, in another embodiment, derived base image 60 may be decoded probabilistically by estimating probability density function parameters, and determining the pixel value probability (i. e. , the probability of being a dark pixel or a bright pixel) for each pixel. Based on the shape of such histograms, the distribution of f (s) may be modeled by bi-modal non-symmetric exponential distributions. For example, in one embodiment, dark (bright) pixels y f (s) may be assumed to be distributed in accordance with the asymmetric Laplacian distributions of equation (3).

The parameters of the distribution functions may be estimated as follows. Since the parameters aL, aR and t are different for the dark pixel population and the bright pixel population, the overall number of parameters to be estimated in this probabilistic approach is six. To simplify the notations in the following description, dark pixels are denoted by 0 and bright pixels are denoted by 1, and the parameters are indexed accordingly. As shown in FIG. 9, in order to reduce the computational burden, the parameter estimation process is divided into two steps: (1) estimating pto, µ1, a0Land alR ; and (2) estimating (XIL and aoR.

Initially, the observations yi=f(gi) are partitioned into two populations based upon the known or expected numbers of"dark"pixels (No) and"bright"pixels (Ns) (step 130).

The"dark"population includes the smallest No observations and the"bright"populations includes the rest (largest N). For each of these populations the mode (t) is estimated by the following maximum likelihood approximated method (step 134). The value of p (for the sake of simplicity we ignore the 0/1 subscript) that maximizes the maximum likelihood estimator for p is computed from equation (4) (step 136).

where IL is the set of observations smaller than , IR the set of observations larger than u, NL=# IL I and NR=| IR I- (Note that IL and IR-and hence NL and NR-are functions of..) The parameters aoL and al R are estimated for the best corresponding µ by equations (5) and (6) (step 138). where IOL is the set of observations smaller than µ0, I@r the set of observations larger than µ1, N0L=#I0L# and NIR=| IIR I After dz µ1, α0L and α1R have been estimated, the parameters alL and aoR may be estimated (step 140). (Hereinafter, the notations al and ao are used for alL and α0R, respectively. ) All observations below µ0 and above Ill are ignored and IM and NM are defined as IM = {y#µ0 # y # µ1} and NM = #IM#. The observations {yi:i # IM} are are to be samples from a random vector with the following distribution: where xi takes the values 0 or 1 with the probabilities Po and PI, respectively. The EM paradigm is used to estimate a, and ao. The EM algorithm begins with initial values for the parameters and perform a series of updating stages that converge to a (local) maximum of the mean maximum likelihood objective function.

To estimate the values of a, and ao the conditional expectation of equation (8) is maximized at each stage of the algorithm.

The estimation for alL and aoR are the values of the estimates for al and ao at the last updating stage. The EM algorithm includes an initialization step and an updating step.

Referring to FIG. 9, in one embodiment, the sequence of predefined graphical templates may be selected based upon measured intrinsic features corresponding to encoded information that is associated with scanned graphical bar code 36. The graphical bar code input 36 initially is measured (step 150). Next, a base image index value corresponding to the identified base image is selected (step 152). Finally, a derived base image 60 is extracted from a set of possible base images (step 154). The derived base image 60 may then be used to graphically demodulate the scanned bar code image 36, as described above. The derived base image 60 also may be used during the geometric correction process 44 or the probabilistic analysis process 46, or both (see FIG. 1).

In general, the base image identification information is coded (implicitly or explicitly) in the graphical bar code 10 in such a way that it is possible to extract the information without foreknowledge of the base image. In some embodiments, the identification information is encoded in the size and aspect ratio of bar code image 10. In other embodiments, the base image may be identified by correlating the graphical bar code input 36 with each of the set of possible base images. The base image from the set of possible base images with the highest correlation with the input image is selected as the derived base image 60. Thus, high correlation of the input graphical bar code image with a base image is an implicit indicator. In other embodiments, the base image index value may be coded as a conventional one-dimensional or two-dimensional bar code or a graphical bar code. For example, the base image index value may be coded in a designated area of graphical bar code 10 (e. g. , in the first couple of dot lines). The base image index value also may be coded in an area near graphical bar code 10.

Alternatively, the base image index value may be coded in markings (e. g. , simulated perforation marks) surrounding graphical bar code 10. In other embodiments, the base image index value may be embedded in a marking pattern having a different radiant energy response from the graphical bar code. For example, the base image index value may be encoded using an ink (e. g. , ultraviolet ink) that appears only under certain lighting < conditions, or that responds to a visible light color channel (e. g. , chrominance) that is different from the visible light color channel response of graphical bar code 10.

Some embodiments may incorporate one or more of the above-described base image index encoding methods. In embodiments incorporating multiple encoding methods, the results of multiple corresponding intrinsic feature measurements may be forwarded to the decision block (step 152) for use in identifying the most likely matching base image.

The systems and methods described herein are not limited to any particular hardware or software configuration, but rather they may be implemented in any computing or processing environment, including in digital electronic circuitry or in computer hardware, firmware or software. The encoding and decoding modules may be implemented, in part, in a computer program product tangibly embodied in a machine- readable storage device for execution by a computer processor. In some embodiments, these modules preferably are implemented in a high level procedural or object oriented programming language; however, the algorithms may be implemented in assembly or machine language, if desired. In any case, the programming language may be a compiled or interpreted language. The encoding and decoding methods described herein may be performed by a computer processor executing instructions organized, e. g. , into program modules to carry out these methods by operating on input data and generating output.

Suitable processors include, e. g. , both general and special purpose microprocessors.

Generally, a processor receives instructions and data from a read-only memory and/or a random access memory. Storage devices suitable for tangibly embodying computer program instructions include all forms of non-volatile memory, including, e. g., semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM. Any of the foregoing technologies may be supplemented by or incorporated in specially-designed ASICs (application-specific integrated circuits).

Other embodiments are within the scope of the claims.