High density two dimensional symbol set

Abstract: A nonvolatile electro-optical read-only memory includes a substrate on which is printed (or otherwise inscribed) a complex symbol or "label" with a high density two-dimensional symbology, a variable number of component symbols or "codewords" per row, and a variable number of rows. Codewords in alternating rows are selected from mutually exclusive subsets of a mark pattern such as a (17.4) mark pattern. The subsets are defined in terms of particular values of a discriminator function, which is illustrated as being a function of the widths of bars and spaces in a given codeword. In the illustrated embodiment, each subset includes 929 available codewords; that, plus a two-step method of decoding scanned data, permitting significant flexibility in defining mappings of human-readable symbol sets into codewords. The memory may be used in conjunction with a scanner and a suitable control system in a number of applications, e.g., robotic operations or automated microfilm searching.

Description: 1. Background of the Invention The present invention relates to a method of reading and decoding a machine readable symbol, the symbol including a plurality of adjacent groups of codewords, each group comprising a plurality of individual codewords having a detectable mark/space pattern. It further relates to apparatus for reading and decoding such symbols. Typically, the symbol is printed or otherwise inscribed on a substrate, thereby defining a non-volatile electro-optical read-only memory. The symbol or "label" typically has a high density two-dimensional symbology, a variable number of component symbols or "codewords" per line, and a variable number of lines. 1.1 Bar Code Symbology A bar code is typically a linear array of elements that are either printed directly on an object or on labels that are affixed to the object. As shown in Figures 1 and 2, bar code elements typically comprise bars and spaces, with bars varying widths representing strings of binary ones and spaces of varying widths representing strings of binary zeros. Many bar codes are optically detectable and are read by devices such as scanning laser beams or handheld wands. Other bar codes are implemented in magnetic media. The readers and scanning systems electro-optically decode the symbol to multiple alphanumerical characters that are intended to be descriptive of the article or some characteristic thereof. Such characters are typically represented in digital form as an input to a data processing system for applications in point-of-sale processing, inventory control, and the like. Scanning systems of this general type have been disclosed, for example, in US Patent Nos. 4,251,798; 4,360,798; 4,369,361; 4,387,297; 4,409,470 and 4,460,120, all of which have been assigned to the same assignee as the instant application. Most bar codes presently used contain only five or six letters or digits, no more than a typical vehicle license plate. In view of the relatively small amount of data contained in a typical linear bar code, the most typical applications of a bar code is to use the encoded data merely as an index to a file or data base associated with the computer system comprehensive information is available. As noted above, the contrasting parallel bars and spaces (referred to herein as "marks") or typical optically-detectable bar codes have varying widths. Generally, the bars and spaces can be no smaller than a specified minimum width, termed the code's "unit" (or "x dimension" or "module"). While the theoretical minimum unit size is the wavelength of the light being used to read the bar code, other practical limitations exist. Among those limitations are the desired depth of field of the reading equipment, the limitations of a given printing process, and the robustness of the printed image to be correctly read despite dust, dirt, and minor physical damage. The bar code symbols are formed from bars or elements typically rectangular in shape with a variety of possible widths. The specific arrangement of elements defines the character represented according to a set of rules and definitions specified by the code or "symbology" used. The relative size of the bars and spaces is determined by the type of coding used, as is the actual size of the bars and spaces. The number of characters per inch represented by the bar symbol is referred to as the density of the symbol. To encode a desired sequence of characters, a collection of element arrangements are concatenated together to form the complete bar code symbol, with each character of the message being represented by its own corresponding group of elements. In some symbologies as a unique "start" and "stop" character is used to indicate where the bar code begins and ends. A number of different bar code symbologies exist. These symbologies include UPS/EAN, Code 39, Code 93, Code 128, Codebar, and Interleaved 2 of 5. 1.2 Symbologies of (n,k) Type Some bar codes are referred to as belonging to the (n,k) family defined by Savir and Laurer in "The Characteristics and Decodeability of the universal Product Code, "IBM Systems Journal, Vol. 14, No. 1,1973. A code of the (n.k) type represents characters uniquely by a string of n bits each containing k runs of one bit (i.e., k bars) and k runs of zero bits (i.e., spaces). An (n,k) code is decodable in both directions, i.e., by scanning it either forwards or backwards. Such bar codes are often referred to by numbers n and k; for example, the well-known Code 93 derives its name from this (n.k) notation, i.e., n = 9 and k = 3. The UPC code is an example of a (7,2) code, i.e., n = 7 and k = 2. 1.3 Prior Two-Dimensional Bar Codes Known two-dimensional bar codes exist that are extensions of one-dimensional bar codes, in that one-dimensional bar codes are stacked with horizontal guard bars between them to increase the density. An example of such bar codes is seen in U.S. Patent No. 4,794,239, to Allais. An obstacle to increasing the density of two-dimensional bar codes is the need for a certain minimum height in the vertical direction. A minimum height is needed to ensure that a human operator can keep a "scan line: (i.e., the path of a given scanning motion, such as that achieved by passing a hand-held wand across a bar code) within the area of a single bar-code row. Figure 1 illustrates this difficulty: scan lines 10, 11 and 12 present identical exemplar paths of, e.g., hand-held wands over the bar code 15, 16, 17. It will be seen that with a tall bar code 15, the scan lines 10 all stay within the confines of one bar code row, whereas with shorter bar codes 16 or 17, the scan lines 11 and 12 cross from one row to another. Another limitation seen in some known two-dimensional bar codes is the use of fixed maps to translate from codewords to characters. The fixed maps restrict the flexibility of applications. For example, the well-known Code 49 has six fixed maps (i.e., six modes) to translate a codeword numerically or alphanumerically. Although such two dimensional bar codes provide some increase in the storage capacity, such codes are still used as indices for file look-up, rather than as a complete data file in itself. Still another drawback of some known two-dimensional codes is the need for a fixed number of codewords per line (referred to here as a "row") and the limitation of a maximum number of rows. For instance, Code 49 (a bar code generally in accordance with the aforementioned Allais '239 patent) has 4 codewords per row and 8 rows maximum. Yet another problem is the lack of flexibility in choosing a suitable security system. (The term "security" is commonly used to refer to confidence in accuracy or correctness; it is usually specified by a misdecode rate, e.g., in errors per million.) Code 49, for example, provides a very high level of security while sacrificing about 30% of its codewords on average for checking errors. In some applications however, a lesser degree of security may be an acceptable trade-off in return for a greater codeword density; the ability to vary the security would be advantageous. The closest prior art is represented by US-A-4794239 relating to a multitrack bar code symbol and an associated decoding method. That document discloses a method of reading and decoding a machine readable symbol, the symbol including a plurality of adjacent individual code words having a detectable mark/space pattern; the code words together defining, when taken in sequence, an encoded version of the data to be decoded, the method comprising: (a) scanning and reading the codewords, not necessarily in the said sequence; (b) calculating, for each codeword X, a discriminator function f(X); (c) dividing the scanned codewords into a plurality of partial scans; (d) recreating the said sequence by stitching together the partial scans; and (e) decoding the codewords and outputting or storing the sequenced decoded data. 2. Summary of the Invention The present invention, as defined by claims 1 and 27 enables the use of an improved high-density two-dimensional symbology, as well as a flexible method for using the symbology to encode and decode data. The symbology may be used to create a nonvolatile read-only memory, which in turn may be used in a computer system. Prior codes have been restricted in terms of Information capacity or density. The present invention allows the use of symbologies which may achieve storage capacity of up to 1 kilobytes of memory within an area of one to four square inches. The significance of such a memory one should not be underestimated - it represents about 250 English words, about the size of a page or screen display. As an information unit, such unit is most suitable for many applications. 2.1 Summary of Label Row-Wise Organization A suitable exemplary two-dimensional label for use with the method and apparatus of the invention may comprise multiple rows of codewords; that is, the term "label" is used here to mean a complex marking of specified dimensions that includes a number of codewords organized in rows. Each codeword is a mark pattern comprising a plurality of elements or marks; the marks can be of various heights, as in a bar code, or can be of a relatively small height to form a "dot code". Not just any mark pattern can constitute a codeword, however; each codeword belongs to a specific family or "set" of mark patterns that conforms to a particular descriptive rule about some characteristic of each mark pattern, e.g., a rule about the width of each mark and the total width of each mark pattern. The codewords in any two adjacent rows are written in mutually exclusive subsets of the mark-pattern set (although in some embodiments the union of the subset is not exhaustive of the set itself). In particular, each subset of the mark-pattern set is defined so that it includes, as valid codewords for that subset, only those mark patterns that satisfy certain discriminator-function criteria. Such row-wise usage of alternating subsets of codewords, grouped according to discriminator-function criteria, permits quick determination whether a row has been crossed, without the need for a horizontal guard bar. This is, for a given scanned codeword in a label, determination of the discriminator function indicates whether the codeword comes from the same row as the previously-scanned codeword or from a different row (that is, whether the scan line has crossed between rows as illustrated in Figure 1). Detection of line-crossing permits "stitching" of partial scans of particular rows into a map (e.g., in memory) of the label. The stitching process is roughly analogous to stitching a number of pieces of colored fabric into a predesigned quilt that displays, e.g., a picture: as each "piece" is required by the scanning process, it is incorporated piecewise into the appropriate point of the label. For example, suppose that computation of the appropriate discriminator functions reveals that a scanning pass has scanned the first half of row 1 and the second half of row 2 of a label such as is shown in Figure 3. Assume that the respective longitude of the scanned data with respect to the ends of the label are known, e.g., through detection of start- and/or stop-codes. The knowledge that a row boundary has been crossed permits all the scanned data from the scanning pass to be incorporated into the respective proper rows of the label map at the respective proper longitudes (assuming no scanning or decoding errors); the data from the scanning pass need not be discarded merely because the data did not come from a single desired row. As another (greatly simplified) hypothetical example, assume that a part of one row has been scanned and that the data "123456789" are incorporated into the label map as a result. Further assume that a second scanning pass of that row is made, and that the data "6789ABCD" are decoded as a result. If the overlapping portion if any between the two scanned data "pieces" - in this case, the "6789" portion - can be determined (e.g., with string-matching techniques such as described below), then the remainder of the later-scanned data can be approximately incorporated into the label map (in this case, the "ABCD" portion). Consequently, the operator need not be scrupulously careful to sweep the wand over the label one row at a time; virtually any scanning pass that includes either a row's start code or a stop code, or that can somehow be determined to overlap with data already incorporated in the label map, will yield usable data (assuming no coding or decoding errors). Such a label thus advantageously increases the density of information by permitting height reductions in the codewords. 2.2 Summary of organization of Codeword Subsets As noted, above, a key feature of the invention is the use of different codeword subsets, preferably in different rows, each subset satisfying certain discriminator-function criteria. In one embodiment described here for illustrative purposes, a (17,4) symbology is used. A discriminator function is used to divide the 11,400 available mark patterns in that symbology into three mark pattern subsets of 929 codewords each. The discriminator function may take as its inputs the various widths of the on- and off marks of a mark pattern (e.g., optically detectable bars and spaces) and may provide as an output a number from 0 to 8. Three subsets may then be selected whose discriminator function values are 0, 3, and 6, respectively, and whose mark widths meet certain other criteria. Each subset thus comprises a collection of codewords, all of whose discriminator functions are both equal to each other and readily distinguishable from those of the codewords in the other two subsets. The availability of 929 codewords in each subset, each with a unique discriminatory-function number, permits each codeword to be used to represent a two-digit number in base 30. This capability leads to several advantages. As shown in Figure 5, each digit of the two-digit base-30 number can be used in an "alpha mode" or in a "mixed mode"; that is, each digit can be mapped into a 30-place alphabetic translation table or into a 30-place mixed alphanumeric translation table. In each of these 30 place tables, one or more digits are reserved for use as signals to change translation tables. Alternatively, each two-digit number can be used in a "numeric mode" or in a "user mode" that is, each number can be mapped into a 929-place numeric translation table or into any of up to twenty-seven 929-place user-defined translation tables. In each of these tables as well, one or more digits are reserved for use as signals to begin using a different translation table. 2.3 Summary of Two-Step Decoding Method In the first step of the preferred method, when a codeword is scanned, the discriminator function of the scanned codeword is computed to determine the codeword subset of which the scanned codeword is a member. A t-sequence number based on the width of the marks comprising the codeword is also computed; that number is used as an entry point into a lockup table for the codeword subset in question. The lockup table yields a number from 0 to 928, which is parsed into a two-digit number in base 30. In the second step, the high- and low-order digits of the base-30 number are used to determine the symbolic meaning assigned to the codeword (which may include an instruction to change translation tables. The method of the invention thus advantageously permits the user to define multiple translation tables. In addition, the invention is not constrained by logical limits on the number of codewords per row nor on the number of rows. This gives the user freedom to lay out the symbology in areas of varying shapes. 2.4 Summary of Error Detection and Correction A row-oriented incremental error detection capability is provided through the use of a checksum codeword for each row. After completion of low-level decoding but before performance of high-level decoding, various checksum computations are performed to test the accuracy of the scan. In addition, a "final" checksum codeword for the label as a whole is used for additional security. The use of these checksums permits a limited degree of error recovery, since the checksums reflect the information contents of each of the codewords in the label. That is, errors in decoding particular codewords can be corrected in some circumstances by "subtracting" the known correct codewords from the checksum, so to speak, thereby yielding the correct value for the erroneously decoded codeword. If the test results are satisfactory, the high-level decoding step is performed. 2.5 Summary of System Implementation The present invention may be applied within a system for reading bar code symbols or the like, including a hand-held scanning unit in a lightweight, portable housing including a symbol-detection device for generating a laser beam directed toward a symbol to be read, and for receiving reflected light from such symbol to produce electrical signals corresponding to data represented by the symbol; a data processing device for processing the data represented by the symbol having a state according to at least first and second different coding procedures; and a read-control device to actuate the symbol-detection device to initiate reading of a symbol; wherein the symbol includes at least two groups of codewords; each codeword representing at least one information-bearing character and being selected from among a set of valid mark patterns. Each mark pattern comprises a pattern of marks, each mark pattern being representative of encoded data according to one of a plurality of different coding procedures; the codewords in each group being selected from a subset of mark patterns, the subset for said group being defined by a specified rule for that group that differs from the rule specified for said a different group each coding procedure being a function of the state of the data processing device. 3. Brief Description of the Drawings Figure 1A is an illustration of a prior-art bar code symbology. Figure 1B is an illustration of a label in accordance with the present invention; Figure 2 is an illustration of the relationship between an x-sequence and a t-sequence in a codeword comprising part of a label embodying the present invention; Figure 3 is an exemplar layout of an illustrative high density two-dimensional symbology design in accordance with the invention; Figure 4 is a block-diagram illustration of the use of alternate sub-symbologies in different rows of a multi-row label in accordance with the invention; Figure 5 is a table showing alternate translation modes for encoding or decoding codewords; Figure 6 is a state-machine diagram of aspects of a method for using the table shown in Figure 5; Figure 7 is a pictorial representation of a sequence of encoding a string of readable characters into scannable codewords; Figure 8 is a logic diagram of an illustrative circuit for computing a checksum for a row in a label embodying the invention; Figure 9 shows a similar circuit for computing an additional checksum for the entire label. Figure 10 is a schematic illustration of the layout of codewords within a label; Figures 11 through 13 are logic diagrams of illustrative circuits for performing error recovery in accordance with the invention; Figures 14A through 14D, Figures 15A through 15D, and Figures 16A through 16D depict tables used for decoding codewords in three different sub-symbologies. Figure 17 is a C-language program that may be used to generate these tables; Figure 18 is a block diagram of a computer system using a nonvolatile electro-optical memory in accordance with the invention; Figure 19a, 19b, 19c, and 19d is an alternative type of laser scanning pattern that may be used in connection with the present invention; Figure 20 is an alternative arrangement of a bar code symbol; and Figure 21 is a cross-sectional view of an implementation of a hand-held laser scanner which may be used to implement the present invention. 4. DETAILED DESCRIPTION OF SPECIFIC EMBODIMENTS 4.1 Stitching of Partial Scans The label of the invention proves especially useful for stitching together of partial scans. As noted above (and referring to Figure 1), when scan lines 12 cross codeword rows in a label 17, the partial scans must be "stitched" or pieced together. For example, consider a retail store checkout counter where a sales clerk manually passes a hand-held wand over a multirow label. If the wand's travel does not run substantially parallel to the label, the scan line may pass from one row to another; parts of different rows are thus scanned, but neither row is scanned completely. Stitching entails building a map of each row of the label (e.g. in memory); successive passes of the wand result in a greater degree of filling in the map. It can be accomplished by using known string matching algorithms, such as disclosed in D Sankoff and J B Kruskal, editors, Time Warps, String Edits, and Macro-molecules: The Theory and Practice of Sequence Comparison, Addison-Wesley, Reading, Massachusetts, 1983. One such algorithm is described below. 4.2 Partitioned Symbology Stitching is facilitated by using different sub-symbologies in alternate rows, selected so that the scanner can made a local decision on whether a row has been crossed. Using different sub-symbologies in alternate rows allows the elimination of horizontal guard bars seen in prior-art code symbologies, thus permitting high density of information. The illustrative embodiment of the present invention utilizes an advantageous scheme for organizing codewords into readily distinguishable groups. The scheme makes use of the principle of coding theorem to pick only a fraction of available mark patterns as legal code words to increase decoding reliability; it can be applied to any of a number of labels. One such label, referred to here as a "PDF417" label (for "Portable Data File 417"), is described as an illustration of this invention. PDF417 is a (17,4) label of the (n.k) type described above. Each codeword has 4 bars and 4 spaces with a total width of 17 modules. It can be shown that this code yields a set of 11,440 different combinations of mark patterns. To increase decoding reliability, only a fraction of these available mark patterns are used as valid codewords. 4.3 Discriminator Function for Defining Subset Partition As a first step in selecting a group of mark patterns for such use for this particular code, the 11,440 mark patterns are partitioned into nine subsets or "clusters," by calculating a discriminator function f(X) for each mark pattern X: f(X) = (x 1 -x 3 +x 5 -x 7 ) mod 9 where x 1 ,x 3 ,x 5 and x 7 stand for the bars' widths, and x 2 ,x 4 ,x 6 and x 8 stand for the spaces' widths. The discriminator function f(X) above is one of possible alternative equations used to subdivide the different possible combinations into nine different subsets. Further narrowing is performed on three of the nine subsets of mark patterns, namely the subsets in which f(X)=0, f(X)=3, and f(X)=6 (sometimes called cluster(0) cluster(3) and cluster(6), respectively). The narrowing is performed in part by defining a "t-sequence" for each mark pattern. Each element t k of the t-sequence is computed according to the formula: t k = x k +x k+1 where k = 1, . . ., 7 The three subsets cluster(i) (where i = 0, 3, 6) are narrowed by selecting mark patterns where no mark width xj is more than six (where j 1, ...,7), and where no t k is more than nine (where k = 1, ..., 7). Thus, the three final subsets cluster(i) of the mark patterns X that are selected for use as code words can be summarized as follows: cluster (i) = {x= f(X) = i, x j ≤6, t k ≤9} where i = 0, 3, 6, j = 1, ..., 8, and k = 1, ..., 7. After sorting each cluster by the t-sequence while suppressing duplicate entries, it can be shown that each cluster(i) includes at least 934 mark patterns. The closest prime number to 934 is 929; accordingly, 929 mark patterns are selected from each cluster(i) for use as codewords. (For convenience, the term "x-sequence," with respect to any given mark pattern, is defined as the number having its digits x 1 x 2 ... x 9 ). The t-sequence of each codeword can be used to identify that codeword, since it can be shown that each such t-sequence is unique within the three subsets cluster(i). It will be apparent that only the first six digits of the seven-digit t-sequence need be used to uniquely specify a codeword of the (17,4) type, since as illustrated in Figure 2, the value of the final t-sequence element t 7 is completely determined by the first six elements t 1 and the fixed total Σx j of the mark pattern. As an example, suppose that t 1 =2, t 2 =4, t 3 =6, t 4 =7, t 5 =6, and t 6 =4; the t-sequence for that codeword would be 246764. The partition just described has the advantage that, by computing f(X) for any scanned mark pattern, the mark pattern's membership (or non-membership) in a codeword subset can quickly be ascertained. Furthermore, since the t-sequence for each codeword is unique, computation of the t-sequence permits that value to be used in a lockup table to determine the symbolic meaning assigned to a scanned mark pattern that belongs to a codeword subset. Other equivalent discriminator functions f(X) may be constructed and used. Preferably, such a discriminator function should partition the available mark patterns into clusters (not necessarily nine clusters) approximately uniform in size. In addition, the clusters selected for use as codewords preferably are equidistant in "error distance", that is, the probability that a codeword from any of selected clusters A, B, C, etc., will be mistaken for a codeword from another one of those clusters should be of the same order of magnitude regardless of which of the other clusters is considered. 4.4 Generating Subsets of Codewords An example of a computer program for generating lists of codewords for the various clusters(i) is set forth in Figure 17. The example program is written for convenience in the well-known C programming language, although any suitable language may be used; the example program is used generally as follows: 1. The program of Figure 17 is used to generate 9 output files, referred to here as out(i), where i = 0, ..., 8. Only the output files out(0), out(3), and out(6) are used; they may be renamed as "cluster" files cluster(0), cluster(3), and cluster(6), respectively. 2. All three cluster files are conventionally sorted to remove ambiguous entries, i.e., to eliminate any mark pattern whose t-sequence is identical to the t-sequence of any other mark pattern. 3. The cluster files cluster(3) and cluster(6) are conventionally filtered to remove those entries in which any t k is wider than 9. 4. In the cluster file cluster(0), those odd entries (i.e., the first entry, third entry, etc) in which any t k is wider than 6 are filtered out, as are those even entries in which any t k is wider than 7. This is an arbitrary restriction designed to help make cluster(0) approximately the same size as cluster(3) and cluster(6), inasmuch as without such a restriction cluster(0) would be larger than the other two. 5. The first 929 t-sequences of each of the filtered cluster files are selected as the desired entries for the respective lockup tables. 4.5 Multirow Label Using Alternating Codeword Subsets In the multirow label of the invention, each row uses codewords from a different subset than the rows immediately adjacent to it. This enables the scanner to recognise with a high degree of precision whether a scan line has crossed a row in the middle of a codeword, because if a row has been crossed, the codewords scanned will not yield the same f(X) as the previous row. A row of codewords in accordance with the invention may conveniently contain unique start and stop codes in the conventional manner whose x-sequences are, e.g., 81111113 and 71121113 respectively. These start and stop codes are unique in that no other codeword in any cluster has the same t-sequence as either of them; furthermore, they are members of none of the final subsets of codewords because the required condition x j ≤ 6 for all j = 1, ..., 8 is not true for those codes. The start code may be selected to have its widest bar away from the ensuing data codewords to reduce the possibility of intercodeword interference, as is the above start code; if desired, the stop code may be so selected as well. The height unit module ratio H (the ratio of the height of a codeword (or a row) to one module width) may be changed from label to label or even from row to row depending on the printing/scanner (system or channel) resolution, R, or on the need of various applications. Figure 3 shows the first and the last rows having H approximately equal to 10, the rows in between having H approximately equal to 3, and the resolution R being approximately equal to 10 mil. The first row of the multirow label uses cluster(0) codes, the second row cluster(3) codes, the third cluster(6) codes, the fourth cluster(0) codes, the firth cluster(3) codes, and so on. There is no logical limit on the number of codewords per row or the total number of rows. In the embodiment illustrated here, the first codeword in each row is dedicated for use as a row identifier and the last codeword in each row is a checksum. (The maximum number of rows is thus 929, i.e., the number of codewords in the dedicated cluster). It is of course possible to distinguish between forward scanning and backward scanning of the row by matching the start/stop codeword forwardly or backwardly. 4.6 Other Row-Wise Partitioning of Codewords It will be apparent to those of ordinary skill having the benefit of this disclosure that the invention is not limited to the specific mark patterns, discriminator function f(X), and t-sequence described above. The foregoing method of deriving a symbology can be applied in a substantially similar manner to yield equivalent symbologies having other kinds of mark patterns. For example, labels can be constructed from bars of varying shades of gray or even from bars of a wide range of colors, instead of from black and white marks only. In such a label, a discriminator function for dividing all possible mark patterns into mutually exclusive codeword subsets, and a t-sequence function for uniquely identifying each codeword within a subset, may be based on a readily detectable attribute of a mark such as its hue or its gray scale value as well as on the width of each mark (or in lieu of the width, or in combination with the width). It will likewise be apparent that, broadly construed, the same principle encompasses the equivalent use of codewords of different colors (or shades of gray) in alternate rows. That is, all rows of a multi-row label could use the same subset of mark patterns as codewords, but in different colors or shades or orientations; the determination whether a row has been crossed would be made based on whether a color or shade or orientation change had occurred. 4.7 Subset Organization for Two-Step Decoding In the illustrative, width-based embodiment described above, since each cluster(i) includes 929 codewords, each t-sequence in a cluster thus will correspond to a number from 0 to 928. The codewords in each subset can be organized according to a base 30 system in which one codeword, representing a number in base 30, is used to signify two alphanumeric characters. Codewords can be scanned and decoded as follows. When a codeword is scanned, its t-sequence is noted. The t-sequence is then used as input to an initial, low-level decoding step; the output from the low-level decoding step is a number from 0 to 928 which in turn is used as an input to a high-level decoding step. 4.8 Initial Low-Level Decoding Step The low-level decoding step entails looking up the t-sequence in a table for the appropriate cluster to find a corresponding value. The table may be created as described above. Referring to Figure 14A (a lockup table for cluster(0)), for example, the t-sequence 246764 corresponds to the value 111. The actual circuitry for the lockup tables may be conventional; it will be appreciated by those of ordinary skill that the use of a prime number of codewords in a subset, e.g., 929, advantageously facilitates the design of the circuitry. 4.9 Mode-Dependent High-Level Decoding Step The look-up value 111 from the foregoing example can be broken down into a two-number sequence in base 30, each number being in the range of 0-29 and having a high-level value V H and a low-level value V L . The base-30 sequence is computed as follows: V H = x div 30; and V L = x mod 30. For the t-sequence used above, 246764, yielding a look-up value of 111, the high level value is 3, and the low level value is 21, since 111=3x30 + 21. Each of the high and low values (i.e., 3 and 21) is then evaluated by looking it up in a suitable (arbitrary) table, such as shown in Figure 5. The examplar table in Figure 5 shows 30 decoding modes, including Alpha, Numeric, Mixed, and User modes. The various User modes are designated as the modes in Figure 5 corresponding to columns 3 through 29 (with column 0 being Alpha mode). In the illustrative embodiment, the Alpha mode is the default mode; therefore, the sample t-sequence 246784 ultimately translates into the two-letter sequence DV, via the lockup value 111 and the base-30 sequence 3,21. It will be seen that the coding arrangement depicted in Figure 5 provides for mode switching that can be advantageously effected either within a single codeword or within a strong of codewords. The technique for invoking mode switching varies depending on the current decoder mode. 4.10 Examples of High-Level Decoding The state machine diagram in Figure 6 illustrates a high-level decoding process in accordance with the invention for the exemplar embodiment. For convenience, a two-number sequence in base 30 is represented as "xxH xxL" or "(xxH, xxL)", where "xx" represents an arbitrary one or two-digit number. For example, a high-level value of 18 and a low-level value of 10 is depicted herein as 18H, 10L or as (18H, 10L). As an example, assume the decoder is currently in Alpha mode. As shown in Figure 5, changing from Alpha mode to Mixed mode required that either the high value or the low value of the two-digit base-30 sequence be equal to 28. If the high value is 28, then the low value is unimportant for mode switching purposes; likewise, if the low value is 28, then the high value is unimportant for mode switching purposes. For Alpha mode, a high value of 28 signals to the decoder that a mode switch to Mixed mode (depicted in Figure 5 as "ms" or Mixed-mode switch) must be effected; therefore, the low value of the high value/low value pair will be interpreted in the Mixed mode. A low value of 28 allows the decoder to interpret the high value of the high value/low value pair in the current mode, namely Alpha mode, and then to switch into Mixed mode. This mode switching technique allows a final value to be decoded in the current mode before switching to the next mode, therefore, eliminating waste resulting from using an extra high value/low value pair to insure that a final high value is interpreted in the current mode. With decoding being done in Alpha mode, a hypothetical value of 856 yields 28H 16L, i.e. a high value of 28 and a low value of 16 (since 856 = 28x30 + 16). The high value of 28 toggles the decoder into Mixed mode, and the low value 16, when translated according to Mixed mode protocol, yields "!" (an exclamation point). To change from Alpha mode to User mode, a high value of 29 (depicted as "us" or User-mode switch) and any low value n within the range of 3 to 29 is required. Low values of 0, 1, or 2 result in no mode switch, a switch to Mixed mode, or a switch to Numeric mode, respectively. In contrast to switching from Alpha to Numeric or Mixed modes, a switch to a User mode cannot be done by a low value of 29; any such values are ignored. Switching between other modes is done in a generally similar manner, as shown in Figures 5 and 6. Referring to those Figures, a decoder in Numeric mode can only directly switch to Alpha mode or Mixed mode. To toggle from Numeric mode to Alpha mode a non-position dependent value of 927 is required, i.e., either a high-level value or a low-level value equal to 927 will effect the mode switch. Likewise, to toggle from Numeric mode to Mixed mode a non-position dependent value of 928 is required. It will be apparent that the numbers 927 and 928 are the last two positions in the Numeric mode, and are reserved for mode-switching characters for convenience. To change from User mode to one of the predefined modes (Alpha, Numeric or Mixed) a high value of 29 and a low value within the range 0 to 2 is required. The low value in this combination corresponds to the predefined mode into which the decoder is switching (i.e. a low value of 0 corresponds to Alpha mode, a low value of 1 corresponds to Mixed mode and a low value of 2 corresponds to Numeric mode. For example, assume that the current mode is Alpha and that three consecutive codewords are to be decoded: 872, 345 and 99. Translating into base 30, 872 yields a high level value of 29 and a low level value of 2 (872=29x30 + 2). The first codeword 872 thus defines a User mode into which the decoder is switching. Referring to Figure 5, if the decoder is in Alpha mode and a high level value of 29 and a low level value of 2 are encountered (as in the example above), the decoder changes to Numeric mode. As another example, assume that the decoder is in Alpha mode and that the scanned codeword's lockup value is 723. In this case V H = 723 div 30 = 24, and V L = 723 mod 30 = 3. Therefore, the decoded codeword is (24H,3L). Since the current mode is Alpha, Figure 5 yields (Y,D) as the respective values for the decoded codeword (24H,3L). Decoding of values in the Numeric mode differs from decoding of values in Alpha mode and Mixed mode. Decoding in Numeric mode treats a two-number sequence as a number in base 926. For example, suppose that the current mode is Alpha and that the following three codewords are encountered 872, 345 and 99. A base 30 conversion of the first codeword 872 yields H = 29 and L = 2. This sequence signals the decoder to switch from Alpha mode to Numeric mode. Switching to the radix-926 decoding system, the second and third codewords are decoded as (345 x 926) + 99 = 319569. The User modes may be used with considerable flexibility. All or part of one or more modes may be used to represent a special user-defined code; for example, frequently-occurring words, phrases, sentences, paragraphs, etc., can be assigned to respective positions within a User mode. A given phrase etc., can be represented in the label as a single codeword (combined with a "us" mode-switch command if necessary). It will be apparent that a great many different words, phrases, etc., can be represented, e.g., in the coding scheme depicted in Figure 5 as illustrations. 4.11 Encoding Method An encoding procedure is the reverse process of the decoding procedure. For example, referring to Figure 7, a license plate number "HUD-329" when encoded yields the following strong of codewords: 230, 926, 843, 69. Each element of the original string "HUD-329" is located in Table 2 and translated according to proper mode protocol. The first four elements of the string are translated using Alpha mode. This results in H=7, U=20, D=3, and (hyphen) =26. The last three elements may be translated using Mixed mode. To switch to Mixed mode from Aopha mode a Mixed Shift (28) character is needed. The Mixed-mode translation then results in 3=3, 2=2 and 9=9. The complete string is thus 7 20 3 26 28 3 2 9. This string is partitioned into high value/low value pairs, with resulting pairs (7,20) (3,26) (28,3) and (2,9). Each of these pairs is encoded as a codeword. To encode a high value/low value pair, the high value is multiplied by 30, and the low value is added to the result of this multiplication. For example, the pair (7,20) is encoded by multiplying 7 times 30 and adding 20, yielding a result of 250. All four pairs are encoded in this manner; the resulting string is 230 116 843 69. The string is translated into codewords in accordance with the appropriate lockup table for the codeword subset in use. Assuming hypothetically that cluster(0) is in use, the string is expressed using the codewords corresponding respectively to t-sequences 335633 (for 230), 255663 (for 116), etc. 4.12 Checksum Computation A checksum and error recovery scheme provides a row-oriented incremental error detection capability and high primitive decoding reliability. Within each row, a long polynomial division checksum scheme is used. For convenience, each i-th codeword may be referred to by a corresponding index number a i , i.e., by the result of the low-level decoding step discussed above for that codeword. Each codeword's index number a i will thus have a value from 0 to 928; each codeword is referred to sometimes for convenience by its index number. Each row with codewords a n-1 , a n-2 , ..., a 0 can be represented as a polynomial; a(x) = a 0 + a 1 x + a 2 x 2 ... +a n-1 x n-1 This polynomial is referred to herein as the message polynomial, as discussed in, e.g., Shu Lin & D.J. Costello, Jr., Error Control Coding, 1983. A row checksum b r0 is defined as the remainder resulting from dividing the message polynomial a(x) by a generator polynomial (see ibid.): g r (x) = x + 926 Those of ordinary skill will recognize that 926 is the complement of 3 in a Galois Field based on 929, or GF(929). The checksum of each row can conveniently be computed using the checksum encoding circuit shown in Figure 8. In Figures 8 through 13, the circle-plus (modula addition), circle-X (modulo multiplication), and circle-C (modulo complementation) symbols are defined over GF(929) as: x (circle-plus) y = (x + y) mod 929 x (circle-X)y = (x * y) mod 929 (circle-C) x = 929 - x where x and y are any numbers from 0 to 928. It will of course be recognized that the design and construction of actual circuitry is a matter of routine implementation by those of ordinary skill. Such circuitry consequently is not further discussed here. To perform the checksum computation, the register b r0 is initialized to 0. The input is a sequence of codewords' index numbers a 3 in a row, fed one number at a time into the input. The input fans into the output line (e.g., to a label printer) and the checksum encoding circuit simultaneously. As the first codeword is input, the circle-plus computation is performed with the codeword's number a i sequence and b r0 (i.e., 0) as operands. The output of that computation and the number 926 is fed to the circle-X computation; the input of that computation is complemented and stored in the b r0 register. After all of the codewords in a row have been processed through the checksum encoding circuit, the complement of the final value of b r0 is the checksum and is appended at the end of the row. The sequence of codewords for the row (e.g., as printed) is now a n-1 , a n-2 , ..., a 0 , 929-b r0 . A similar scheme is used to compute a structure checksum, one representing the entire label. For this second type of checksum, all codewords in the label as printed (9ncluding the codewords representing the checksums for each row except the last row) form the message polynomial, which may be expressed as: a(x) = a m,2 + a m,3 x + ...+ a m,n-1 x n-3 + b m-1,ro x n-z + ... + a 1,n-1 x nm-3 where the coefficients are defined as in Figure 10, tracing backwardly from right to left and bottom to top. A different generator polynomial is used to calculate a remainder in a similar fashion as before, namely: g s (x) = (x + 926) (x + 920) Dividing the new message polynomial by this new generator polynomial results in a remainder b(x) = b s0 + bs1x . Complementing the coefficients of this remainder yields two parity-check codewords, which serve as a structure checksum as discussed below. In implementation this division is accomplished by using a division circuit such as shown in Figure 9. The registers b s0 and b s1 are initialized as zeros. As soon as the message polynomial has entered the output and the circuit, the complements of the parity-check codewords are in the registers and are appended in the order b s1 , b s0 just before the checksum of the last row. Then the checksum b r0 of the last row is computed and appended to the end of the last row, as shown in Figure 10. It will be noted that there are no user-definable codewords corresponding to the positions a m,1 and a m,0 . These positions are reserved for the codewords b s,1 and b s,0 as shown in Figure 10. Thus, in a label with m rows and no codewords per row, the total number of user-definable codewords is nm-4m-2, i.e., the number of codewords per row times the number of rows, minus four codewords for each row (a start code, a stop code, a row number, and a row checksum), and also minus the two parity-check codewords (i.e., the structure checksum). 4.13 Gross Error Detection Gross error detection may be accomplished as follows. At the beginning of the scanning process, all entries (e.g., "slots" or "grid locations") of the map of the label are initialized to indicate unknown characters. The low -level decoding step, as applied to a signal generated by any given scanning pass, will generate a sequence of one or more index numbers, one for each codeword that was scanned. Each index number may be any number from 0 to 928, depending on the t-sequence of the corresponding scanned codeword. For each scanning pass, three arrays DA, CA, and FA are constructed (e.g., in memory in accordance with conventional techniques) to represent the codewords scanned in that pass: A "decoding array" DA represents the index numbers that are obtained from the tables in Figures 14A through 16D and that correspond to the scanned codewords. A "cluster array" CA represents the clusters or subsets to which the respective scanned codewords belong. A "confidence array" FA represents the confidence existing in the accuracy of the decoding of the respective scanned codewords. For example, a scanning pass and low-level decoding step may generate a decoding array DA comprising a sequence of index numbers such as (293, 321, 209, 99, 679). The corresponding sequence of clusters might be (3, 3, 0, 0, 0) indicating that the first two codewords were members of cluster(S) and the final three were members of cluster(0). This implies that the subsequence comprising the second and third codewords (represented by 321 and 209 in the array DA) bracket the point at which a row was crossed, i.e., that the two codewords are in two adjacent rows. Because such row-crossing subsequences frequently have higher error probability, they are assigned a relatively low weight in confidence array FA. In the example above, the confidence array FA for the scanned codewords might be (3, 1, 1, 3, 3). Now suppose that a previous scanning pass had resulted in a decoding array DA of (293, 329, 222, 999, 999) for the same sequence of codewords, where 999 represents an unknown codeword whose confidence level is zero. Further assume that the confidence array FA for that previous scanning pass is (3, 3, 1, 0, 0), because the row was crossed between the third and fourth characters on that pass instead of between the second and third characters as hypothesized in the previous paragraph. A "voting" process may be used to compare the confidence arrays for the two scanning passes to determine which results are more likely to be correct. For example, the voting rules may be as follows: 1. If two successive scans of a given codeword result in the same index number after low-level decoding, then the corresponding confidence figures in the two confidence arrays FA are added; 2. In contract, if two successive scans result in different numbers for the same codeword, then (a) if one of the two index numbers has a higher confidence level than the other, the higher-confidence index number "survives" and is filled into the decoding array DA, but the confidence level for the corresponding position in the confidence array FA is reduced by the confidence level for the nonsurviving index number, (b) if both index numbers have equal confidence levels, then neither index number survives; instead the unknown-codeword index number 999 is used as the "surviving" index number and the confidence is reset to zero; and 3. If the index number a 1 for one scan of a given codeword is 999 (representing an unknown codeword) and an acceptable index number for the other scan (i.e., an index number from 0 to 928), then the acceptable index number is kept, and the confidence level of that index number remains the same. It will of course be appreciated by those of ordinary skill that a wide variety of conventional array and memory-management techniques may be used for creating and manipulating the arrays DA, CA, and FA. For example, the decoding array DA might be the label map itself, with a temporary array being used to hold the index numbers a i for a new scan and with surviving index numbers from that scan being written into the appropriate position in the array DA (or perhaps not written if the same index number is already represented at that position). In such an example the cluster array CA and the confidence array FA might each be "shadows" of the decoding array DA, with as many positions in each as there are in the decoding array DA. When the decoding array DA has been filled with an acceptable index number a i for all codeword positions corresponding to a particular row in the label, the representation of that row in the decoding array DA is set aside. That is, regardless of the confidence that exists about the accuracy of the contents of the decoding array DA, once the row has been decoded to indicate acceptable index numbers for each codeword, no further decoding is done for codewords in that row; additional error detection proceeds as described below. 4.14 Further Error Detection and Recovery by Checksumming Errors may still exist in the decoding array DA for a particular row even after that row is set aside. Before performing high-level decoding, the redundant information stored in the row checksums and the label checksum can advantageously be used to detect and/or recover from errors in scanning any particular codeword by a process of elimination. Generally speaking, if all but one or two of the codewords in the entire label are known to be correct, the correct values of the unknown codewords can be computed by "subtracting" (so to speak) the values of the known codewords from the values of the checksums, which of course reflect the values of all codewords, known and unknown. Errors in any particular row may be detected by using a syndrome divider such as shown in Figure 11. The register d r0 is initialised to zero. After the index numbers a 1 of the scanned row are fed to the syndrome divider, the register d r0 indicates the detection result. If d r0 is equal to zero, the corresponding row was correctly scanned and its image or map in memory can be locked; otherwise, an error occurred in the scanning and decoding of the row, and the row must be rescanned. If all codewords in the label are decoded and check summed without error, then the following error recovery step can be skipped. When the total number of still-unknown codewords is less or equal to two, an error recovery scheme as follows can be invoked. The unknown codewords first are replaced in the label map with zeros. A syndrome S i is then computed for each i = 1, 2. Since by hypothesis the position p v of the unknown (i.e., erroneous) codewords is known, where v = 1, 2, only the values of those unknown codewords need be computed. As a first step, an error value e pv is computed for each error position p v by solving the following system of matrix equations: If only one error exists, the system becomes overdetermined, that is, more information is present than is needed to solve the above matrix, which reduces to: For an assumed one-error case, if the above matrix equation system is consistent (that is, if the foregoing two matrix equations yield the same solutions), then one error does indeed exist and the solution of 3 p1 is the error value, i.e., the correct value of the unknown codeword. Otherwise, an undiscovered second error exists in the label, and the decoding result is rejected. After successfully solving for the error values, the complement of error values are filled into the corresponding unknown codewords' locations. Then the error detection computation is performed again for those rows containing unknown codewords. If no errors are detected, the decoding result then is taken as correct; otherwise, the decoding result is likewise rejected. 4.15 Nonvolatile Memory and Computer System Referring to Figure 18, a nonvolatile electro-optical memory 100 may be created by marking a suitable substrate (e.g., paper) with one or more labels in accordance with the foregoing description. The memory 100 may be combined with a fixed or movable scanner 110 for use as a storage device for a suitably programmed computer such as a processor 120. For example, a robot might have an on-board computer programmed to control the robot to perform simple tasks, such as selectively moving an object 130 by means of a manipulator 140. An on-board scanner 110 might operate as the robot's "eyes" for reading labels of the kind described above. In similar fashion, a conveyor system might include a fixed scanner 130 and a moving belt that served as the manipulator 140. The label preferably contains a list of instructions for operating the robot, with the computer on-board. The robot responding to data and instructions contained on the label. It will of course be recognized by those of ordinary skill (having the benefit of this disclosure) that the invention is capable of being adapted to other uses and in other embodiments than the illustrative ones disclosed above. Furthermore, the invention may be implemented in numerous specific architectures. A few examples are briefly mentioned below for illustrative purposes: The decoder of a conventional one-dimensional scanner could be reprogrammed to perform one or more of the functions described above, e.g., by replacing a read-only memory (ROM) chip containing the programming if the scanner is so constructed; A scanning system could be built using a suitably programmed microprocessor or other computational unit to perform one or more of the above functions. The programming could be loaded into dynamic read-write memory (RAM), or could be "burned" into read-only memory (ROM) either on-board or out-board of the microprocessor; A scanning system could be built using a computation unit specially designed to perform the functions described above; parallel processing technology could be used to partition the work of decoding the various parts of a label; and so forth. The actual design and construction of any particular implementation is a matter of routine for those of ordinary skill having the benefit of this disclosure, the details of which are not further discussed here. Referring to Figure 18, a computer system including a nonvolatile memory 100 of the type described could be used in a number of applications. As an illustrations, an overnight package delivery service (e.g., Federal Express, UPS, Purolator, and the like) might have certain of its package-sorting functions automated through the use of memories 100 in the form of printed labels in accordance with the foregoing, applied to packages such as the object 130 shown in the figure. In one such possibility, package shippers would fill out a waybill 100 by responding to queries posed by a suitable computer program. The program's printed output (e.g., on a laser printer or dot matrix printer) might include both a human-readable destination address and a label 100 as described above in which that information was encoded in scannable form. The shipper would affix the printed waybill 100 to the object 130 being shipped. (Other information such as the shipper's telephone number and the like could likewise be so encoded.) One of the key advantages of the high data capacity memory 100 of the present invention is that it may be created at the warehouse or loading dock by an inexpensive printer so that updated or corrected information may be applied at the point of shipment. The fact that the memory is merely a paper label means that it is inexpensive and disposable. Thus, the present invention may be implemented in conjunction with a portable terminal and thermal printer to create and print a label, even in a remote location. Such a portable terminal, connected to scanner, allows the user to scan, print, and apply the label to the article quickly and inexpensively. At various points during shipment, suitable robots could read the label 100 and, using manipulators 140, direct the object 130 appropriately; e.g., a scanner 110 could read the memory 100 to generate a signal; based on the content of that signal, a manipulator 140 controlled by a processor 120 could move the object 140 as appropriate. A similar arrangement could be used in a warehouse inventory control system. A label of the type described could be printed or otherwise applied to or inscribed on one or more sides of a shipping carton or directly to merchandise. The label might have encoded therein as much information as desired about the specific item, e.g., its type, color, dimensions, weight, point of manufacture, lot number and so forth. A suitable robot could be used as an order-filling machine by moving within the warehouse and, using its scanner, searching for merchandise whose label indicates that it matches a specified order. (Searching could of course be in accordance with techniques now known or hereafter developed.) It will be apparent that this arrangement would permit information about specific merchandise items to be stored locally at the merchandise itself. Another feature of the present invention is to utilize the bar code according to the present invention so that it may be affixed to an article as a means of identifying that article and associating information with the article much like a "read-only memory" or identification tag implemented in so called RF ID systems. One such implementation is to print a variety of different bar code symbols which are available in easily disposable and affixable format so that information may be easily and quickly affixed to the article. One example of an application is in connection with the repair and service of equipment. The use of a service record is useful for quality control and documentation purposes, but it is often impractical to store detailed written records with the equipment. The use of a high density, encoded service report affixed to the equipment in the form of a two dimensional bar code is especially advantageous. The service technician may select the appropriate PDF label from a set of labels corresponding to repairs performed, and attach the label to the repaired equipment. If the equipment is returned for subsequent repairs, the service technician has the complete service history attached to the equipment in only a few square inches. Such local storage could advantageously take the place of a separate file of information about the item, e.g., stored in a computer database and keyed to a bar-code serial number on the item. Local storage would reduce the problem of dealing with "orphan" merchandise whose serial numbers were not known to the computer database. In addition, it would permit rapid in-processing of newly-received merchandise shipments, in that complete information about the new merchandise could be scanned into the warehouse's information system, obviating the need for the shipper to generate and transmit a separate information file (e.g., on a computer tape or by hard copy) about the specified items being shipped. This would similarly be advantageous in, e.g., libraries or other organizations that regularly received shipments of books or similar objects that required cataloguing. Another example, a nonvolatile memory and scanner system could be used for enhanced searching of microfilm rolls or microfiche sheets. Assume that a large body of text and/or graphical information is stored photographically on a roll of microfilm. An example of such information might be the thousands of documents - printed, typed, handwritten, drawn, or a combination thereof - that can be involved in a large litigation. Known computerized litigation support systems permit paralegals to summarize each document page in a database; for each document page, selected information from the database could be inscribed as a label in accordance with the foregoing on the corresponding frame of microfilm, in a corner or other appropriate location. A microfilm reader could be equipped with (a) input means such as a keyboard by which a user could specify search criteria (e.g., in Boolean logic); (b) a fixed scanner to read microfilm labels as the microfilm was scrolled; and (c) control means to determine whether a given microfilm frame satisfied the specified search criteria. The user would then be able to view documents conveniently. In the case of multiple-reel document collections, a master index or indexes could be encoded on a separate reel; output means such as a CRT or an LCD or LED display could be used to instruct the user as to which reel to mount to locate the specific document desired. For example, a microfilm reader with a scanner might be designed to be coupled to and controlled by a conventional desktop, laptop, or notebook computer in a conventional manner as a peripheral device (or the essentials of such a computer could be built into the reader). The computer would not need to have the entire document-summary data base available on disk storage, since the microfilm itself would contain the necessary information; it would suffice if the computer was programmed (e.g., in ROM) to perform the desired search functions using the label-encoded data from the microfilm. Still another feature of the present invention is to provide a method for processing information by optically scanning indicia on the surface of a substrate, the indicia including a plurality of codewords scanned sequentially and organized into at least two independent scanning paths, each codeword being either an information codeword or a control codeword, and each information codeword corresponding to at least one information-containing character. A plurality of different mapping functions are provided each associating the code word with one character out of a set of different characters, with only one mapping function being active at any given time. Each codeword in any one scanning path is distinct from any codeword in an adjacent scanning path. Using such a codeword data structure, the method includes the steps of: determining whether a scanned codeword is an information codeword or a control codeword; decoding the codeword according to the mapping function if said codeword is an information codeword; and processing the codeword if the codeword is a control codeword. If the codeword is a control codeword, it identifies a new mapping function, and processing of subsequently scanned codewords take place using the new mapping function. As an example of the different scanning paths that may be used, and a different organization of the codewords, reference is made to Figures 19 and 20. Figure 19a, 19b, 19c, and 19d is an alternative type of laser scanning pattern that may be used in connection with the present invention. The present invention may be implemented in a hand-held, laser-scanning, bar code reader unit such as illustrated in Figure 21. This hand-held device of Figure 21 is generally of the style disclosed in U.S. Patent 4,760,248, issued to Swartz et al, assigned to Symbol Technologies, Inc., and also similar to the configuration of a bar code reader commercially available as part number LS 8100II from Symbol Technologies, Inc. Alternatively, or in addition, features of U.S. patent 4,387,297 issued to Swartz et al, or U.S. Patent 4,409,470 issued to Shepard et al, both such patents assigned to Symbol Technologies Inc, may be employed in constructing the bar code reader unit of Figure 21. A outgoing light beam 151 is generated in the reader 100, usually by a laser diode or the like, and directed to impinge upon a bar code symbol a few inches from the front of the reader unit. The outgoing beam 151 is scanned in a fixed linear pattern, or more complex pattern such as shown in Figure 19 may be employed and the user positions the hand-held unit so this scan pattern traverses the symbol to be read. The use of a central dark portion, such as in Fig. 19d, may be used for aiming, or other visual techniques associated with alignment. Reflected light 152 from the symbol is detected by a light-responsive device 146 in the reader unit, producing serial electrical signals to be processed for identifying the bar code. The reader unit 100 is a gun shaped device, having a pistol-grip type of handle 153 and movable trigger 154 is employed to allow the user to activate the light beam 151 and detector circuitry when pointed at the symbol to be read, thereby saving battery life if the unit is self-powered. A light-weight plastic housing 155 contains the laser light source, the detector 146, the optics and signal processing circuitry, and the CPU 140 as well as a battery 162. A light-transmissive window 156 in the front end of the housing 155 allows the outgoing light beam 151 to exit and the incoming reflected light 152 to enter. The reader 100 is designed to be aimed at a bar code symbol by the user from a position where the reader 100 is spaced from the symbol, i.e., not touching the symbol or moving across the symbol. Typically, this type of hand-held bar code reader is specified to operate in the range of perhaps several inches. As seen in Figure 21, a suitable lens 157 (or multiple lens system) is used to collimate and focus the scanned beam into the bar code symbol at an appropriate reference plane, and this same lens 157 may be used to focus the reflected light 152. A light source 158 such as a semiconductor laser diode is positioned to introduce a light beam into the axis of the lens 157 by a partially-silvered mirror and other lenses or beam-shaping structure as needed, along with an oscillating mirror 159 which is attached to a scanning motor 160 activated when the trigger 154 is pulled. If the light produced by the source 158 is not visible, an aiming light may be included in the optical system, again employing a partially-silvered mirror to introduce the bema into the light path coaxially with the lens 157. The aiming light, if needs, produces a visible-light spot which is scanned just like the laser beam; the user employs this visible light to aim the reader unit at the symbol before pulling the trigger 154. In real applications, either the length of bar code should be fixed, or an additional character should be placed in the bar code to indicate its length. If not, misdecodings may occur. If the length of the bar code is fixed, the performance of decoding using stitching might be better than that of decoding using a complete scan, because the reject rate and the misdecode rate is less in most good quality bar code (in cases that the quality of the bar code is very very poor, the misdecode rate may be greater, but never greater than 2K times, K is the number of the scans used for stitching). Although the present invention has been described with respect to multiple line bar codes, it is not limited to such embodiments. It is conceivable that the method of the present invention may also find application for use with various machine version or optical character recognition applications in which information is derived from other types of indicia such as characters or from the surface characteristics of the article being scanned. In all of the various embodiments, the elements of the scanner may be assembled into a very compact package that allows the scanner to be fabricated as a single printed circuit board or integral module. Such a module can interchangeably be used as the laser scanning element for a variety of different types of data acquisition systems. For example, the module may be alternately used in a hand-held scanner, a table top scanner attached to a flexible arm or mounting extending over the surface of the table or attached to the underside of the table top, or mounted as a subcomponent or subassembly of a more sophisticated data acquisition system. The module would advantageously comprise a laser/optics subassembly mounted on a support, a scanning element such as a rotating or reciprocating mirror, and a photodetector component. Control or data lines associated with such components may be connected to an electrical connector mounted on the edge or external surface of the module to enable the module to be electrically connected to a mating connector associated with other elements of data acquisition system. An individual module may have specific scanning or decoding characteristics associated with it, e.g. operability at a certain working distance, or operability with a specific symbology or printing density. The characteristics may also be defined through the manual setting of control switches associated with the module. The user may also adapt the data acquisition system to scan different types of articles or the system may be adapted for different applications by interchanging modules on the data acquisition system through the use of the simple electical connector. The following claims are intended to encompass all such uses, implementations, and embodiments.

Claims: A method of reading and decoding a machine readable symbol, the symbol including a plurality of groups of codewords, arranged in a plurality of lines within the symbol, each group comprising a plurality of individual codewords having a detectable mark/space pattern; at least some of the codewords together defining, when taken in sequence, an encoded version of the data to be decoded, the method comprising: (a) scanning and reading the codewords, not necessarily in the said sequence: (b) calculating, for each codeword X, a function f(X) the value of which distinguishes the group containing X from at least one other group of codewords; (c) determining the line in which the codeword X lies at least partially by the value of f(X), and dividing the scanned codeword into a plurality of partial scans, each partial scan consisting wholly of codewords of one group; (d) recreating the said sequence; and (e) decoding the codewords and outputting or storing the sequenced decoded data. A method as claimed in Claim 1 in which the function f(X) may take a plurality of discrete values, the line in which the codeword X falls being uniquely determined by f(X). A method as claimed in Claim 1 or Claim 2 in which the mark/space patterns within any given group are approximately equidistant in terms of error distance from the mark/space patterns within any other group. A method as claimed in Claim 1 in which the codewords are arranged in a plurality of adjacent rows within the symbol, the row in which the codeword X lies being determined at least partially by the value of f(X). A method as claimed in Claim 4 in which corresponding codewords in each group are aligned in a direction perpendicular to the rows. A method as claimed in Claim 4 or Claim 5 in which the codewords are scanned row-wise or at a skewed angle thereto, the codewords X i (i = 1,2...) on scanning being assigned to a common row only for so long as f(X i ) remains constant. A method as claimed in Claim 4 and Claim 6 in which the values of f(X) uniquely discriminate between any codeword lying in a first row and any codeword lying in a second adjacent row. A method as claimed in Claim 7 in which the respective values of f(X) also uniquely discriminate between any codeword lying in the first or second rows, and any codeword lying in a third row, adjacent to the second row. A method as claimed in any one of the preceding claims in which each mark/space pattern comprises a plurality of bars and spaces in which f(X) is a function of the widths of the individual bars and/or spaces making up the codeword X. A method as claimed in Claim 9 in which each mark/space pattern has exactly four bars and in which f(X) = (x 1 - x 3 + x 5 - x 7 ) mod 9 where: x 1 = width of 1st bar x 3 = width of 2nd bar x 5 = width of 3rd bar x 7 = width of 4th bar A method as claimed in Claim 10 in which a scanned mark/space pattern is determined not to be a codeword if f(X) does not equal O, 3 or 6. A method as claimed in any one of the preceding claims in which a scanned mark/space pattern is determined not to be a codeword if any of the marks or spaces making up the pattern are wider than a specified width limit. A method as claimed in any one of the preceding claims in which a scanned mark/space pattern is determined not to be a codeword if the distance between the start of any one of the marks or spaces making up the pattern, and the start of the adjacent such mark or space, is greater than a specified limit. A method as claimed in any one of the preceding claims in which a scanned mark/space pattern is determined not to be a codeword if the pattern does not comprise exactly a given number of marks and spaces. A method as claimed in Claim 12 in which the total width of a valid codeword is 17 units, and the width limit is 6 units. A method as claimed in Claim 13 in which the total width of a valid codeword is 17 units, and the specified units is 9 units. A method as claimed in Claim 14 in which the total width of a valid codeword is 17 units, and in which the said given number is 4 marks and 4 spaces. A method as claimed in any one of the preceding claims comprising calculating a t-sequence for the codeword X and decoding the codeword X according to the t-sequence and f(X); the t-sequence being defined as a sequence of N-1 digits t i where N is the total number of marks and spaces in the pattern and t i is equal to the measured distance between the beginning of the ith mark or space and the beginning of the next following mark or space respectively (Figure 2). A method as claimed in Claim 18 in which the codeword X is decoded by looking up in a table in memory an index number which, for a given value of f(X) uniquely corresponds to the calculated t-sequence. A method as claimed in Claim 19 including converting the index number into respective hight and low values, defined as follows: V H = (index number) div m V L = (index number) mod m and decoding the codeword X as two consecutive items corresponding to entries in a further look-up table at addresses V H and V L . A method as claimed in Claim 20 in which m = 30. A method as claimed in any one of Claims 19 to 21 including the following steps: (a) maintaining in memory a plurality of look-up tables corresponding to a plurality of decoding modes (eg figure 5); (b) maintaining a variable in memory representative of the decoding mode currently active; (c) when the index value for the codeword X, or the value of V H or V L , corresponds to a control character which specifies a new decoding mode, changing to the said new mode and updating the decoding mode variable. A method as claimed in any one of the preceding claims when dependent upon Claim 4 including calculating a checksum for each row and determining that an error has occurred if the calculated checksum does not match a checksum provided by a checksum-codeword in the row. A method as claimed in Claim 23 including the following steps, for each row: (a) scanning the mark/space patterns within the row and decoding each recognised codeword where possible, to an index value; (b) storing the respective index values in a decoding array (DA); (c) repeating steps (a) and (b) until an index number has been stored in the decoding array for; (i) the row check sum codeword for the row; and (ii) all but one of the codewords in the row; and (d) reconstructing the missing one codeword using the row checksum codeword. A method as claimed in Claim 23 including the following steps: (a) scanning the mark/space patterns within a row and decoding each recognised codeword, where possible, to an index value; (b) storing the respective index values in a decoding array (D); (c) repeating steps (a) and (b) as necessary for each row, and for all rows until an index number has been stored in the decoding array for: (i) a symbol checksum codeword; (ii) all but two of the codewords in the symbol; and (iii) the row check sum codewords for the rows having the missing codewords; and (d) reconstructing the missing codewords using the row checksum codewords and the symbol checksum codeword. A method as claimed in any one of Claims 23 to 25 including the following steps: (a) scanning the mark/space patterns and decoding each recognised codeword, where possible, to an index value; (b) storing the respective index values in a decoding array (DA); (c) determining a confidence level corresponding to each of the elements of the decoding array (DA) and storing the confidence levels in a corresponding confidence array (FA); (d) re-scanning, re-decoding, and re-determining index values and corresponding confidence values; (e) updating the decoding array and the confidence array according to the index values and confidence values determined at step (d) and the values in the decoding and confidence arrays. Apparatus for reading and decoding a machine readable symbol, the symbol including a plurality of groups of codewords, arranged in a plurality of lines within the symbol, each group comprising a plurality of individual codewords having a detectable mark/space pattern; at least some of the codewords together defining, when taken in sequence, an encoded version of the data to be decoded, the apparatus including means for scanning and reading the codewords, not necessarily in the said sequence, means for decoding the code words and means for outputting or storing the sequenced decoded data; characterised by: (a) means for calculating, for each codeword X, a function f(X) the value of which distinguishes the group containing X from at least one other group of codewords; (b) means for determining the line in which the codeword X lies at least partially by the value of f(X), and for dividing the scanned codewords into a plurality of partial scans, each partial scan consisting wholly of code words of one group; and (c) means for recreating the said sequence.

Inventors: PAVLIDIS THEODOSIOS, SWARTZ JEROME, WANG YNJUIN PAUL, PAVLIDIS, THEODOSIOS, SWARTZ, JEROME, WANG, YNJUIN PAUL
Applicants: SYMBOL TECHNOLOGIES INC, SYMBOL TECHNOLOGIES, INC.
Application year: 1990
Main classification: G06K19
IPC codes: H04N1, G06K17, G06F9, G06K19, G06K1, G06F3, G06K7