Abstract:
Bands of predetectors (92) detect the approach of lines of glyphs (12, 14) within an image being scanned. Linear lines or arrays of glyph detectors (116, 118, 120) are sampled in accordance with the detected approach of lines of glyphs. Each detector array includes a plurality of analog glyph detectors (20, 50) which respond to the presence of glyphs with a characteristic analog output. Preferably, the glyph detectors generate a corresponding analog output of a first polarity or other characteristic in response to glyphs of a first orientation and an output of a second polarity or characteristic in response to glyphs of a second orientation. The analog signals which are characteristic of the detection of a glyph are converted into binary 1&#39;s and 0&#39;s in accordance with the polarity or other characteristic of the signals. In this manner, glyphs are detected by analog detectors and the information encoded in the glyphs is directly output as a binary signal without computer analysis of the image.

Description:
BACKGROUND OF THE INVENTION 
     The present invention relates to the character detection arts. It finds particular application in conjunction with the analog detection of binary glyphs which denote binary 1&#39;s and 0&#39;s and will be described with particular reference thereto. However, it is to be appreciated that the invention is also applicable to the detection of glyphs, marks, and characters of other configurations. 
     Glyphs are visually non-obtrusive encodings of information in the gray scale portions of pictures, drawings, logos, forms, and the like. More specifically, printers typically print black and white images by applying a series of dots of ink or toner to the print medium. A 600 dpi printer, for example, prints up to 600 dots per inch (240 dots per centimeter) in each horizontal line and prints 600 lines (240 lines per centimeter) per inch vertically. That is, each square inch contains a 600×600 grid of pixels. Black can be printed by placing a black dot in every available pixel and white by leaving the print medium white. Gray scales are depicted by adjusting the optical density of the applied ink or toner. For example, a small fraction of the pixels contain dots to depict pale gray, a large percentage for medium gray, etc. 
     Glyphs rearrange the dot patterns for a given gray shade in order to encode information. Rather than applying the dots for a given gray scale randomly, the dots are placed in preselected groupings of the same optical density to encode information. In one common glyph pattern, a 5×5 array of pixels are dedicated to each glyph. Three dots on a diagonal going down from left to right through the center of the pixel array define a glyph of one polarity and three dots going down from right to left through the center of the array define a glyph of the opposite polarity. These two polarity glyphs are typically used to encode binary information. Binary information can be encoded onto the print medium by printing lines of these 5×5 arrays. Such lines of glyphs have a uniform gray scale density and appear as gray bands which may be incorporated into logos, letterhead, borders, and the like. Such glyphs can also be encoded more subtly into portions of the image which already have this same gray scale level. 
     The glyphs may be utilized to encode an identification of the document, its date of printing, an identification of the printer on which it was printed, and the like. Glyphs may also be used in security applications to encode digital information into background or foreground gray scale regions of an image. For example, a passport image can be glyph encoded to carry a binary identification of the passport number, the name of the passport owner, a description of the person, or the like. 
     One of the drawbacks with glyph encoding techniques has been that reading and decoding the glyphs has been memory and computationally intensive. Typically, the image was scanned to generate an electronic bit-map of the entire page. Storing a bit-map for a page of a 600 dpi printer required a substantial memory commitment. This bit-map was then mathematically analyzed to identify the glyphs. One mathematical analysis technique included the use of a convolution filter in which a template of the glyph design was convolved with pixel regions of the image to identify the glyphs. Such page analysis techniques were so slow that it was difficult to use the glyph information in real time. 
     The present invention provides a new and improved glyph detection system and technique which overcomes the above-referenced problems and others. 
     SUMMARY OF THE INVENTION 
     In accordance with one aspect of the present invention, a sensing device is provided for sensing an image, the sensing device includes a plurality of sensor elements, each of which senses its own intra-sensor spatial variation of intensity. The sensor elements are organized into an array which produces signal outputs which approximate at least a portion of the image with subsensor accuracy. 
     In accordance with another aspect of the present invention, a glyph detection system is provided in which a print medium containing an image is passed below an optical reader. The optical reader includes an array of analog pattern sensitive detectors which detect glyphs and output analog signals indicative thereof. 
     In accordance with another aspect of the present invention, a method of approximating an image projected onto an array of sensor elements is provided. A parametric model is formed for the spatial intensity distribution within a sensor element, which sensor element is responsive to its own internal spatial variation of intensity. Signals from the sensor element are sensed. The parameters of the model are determined from the sensor signals. The parameters obtained from an array of the sensor elements are used to approximate the intensity distribution of the light radiated onto the array. 
     In accordance with another aspect of the present invention, a method of detecting glyphs is provided. A print medium on which a glyph containing image is printed is fed past an analog photosensitive detector array. The image is illuminated such that light is reflected from the image to the analog photosensitive detector array. With the analog photosensitive detector array, the glyphs are discriminated from a remainder of the image and analog signals indicative of the glyphs are generated. In this manner, the glyphs are read out directly at the detector array without computer analysis of the image. 
     One advantage of the present invention is that it identifies and reads glyphs in real time. 
     Another advantage of the present invention is that it accurately distinguishes glyphs from random dots and other dot patterns. 
     Another advantage of the present invention resides in its ability to read out entire lines of glyphs simultaneously and to predict and identify the location of lines of glyphs. 
     Still further advantages of the present invention will become apparent to those of ordinary skill in the art upon reading and understanding the following detailed description of the preferred embodiments. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The invention may take form in various components and arrangements of components, and in various steps and arrangements of steps. The drawings are only for purposes of illustrating a preferred embodiment and are not to be construed as limiting the invention. 
     FIG. 1 is a diagrammatic illustration of a line of 5×5 pixel glyphs; 
     FIG. 2 is a perspective illustration in partial section of a lobed, solid-state diode detector for detecting glyphs in accordance with the present invention; 
     FIG. 3 is a top view of the lobed, solid-state detector of FIG. 2; 
     FIG. 4 is an equivalent circuit for the detector of FIG. 2; 
     FIG. 5 illustrates an alternate embodiment of the detector of FIG. 2; 
     FIG. 6 is a top view of another detector embodiment which detects glyphs by detecting first and second moments; 
     FIG. 7 is an exploded view illustrating the top and bottom contacts of the detector of FIG. 6; 
     FIG. 8 is a side sectional view of the detector of FIG. 6; 
     FIG. 9 is a side sectional view of yet another alternate detector embodiment incorporating a lateral photodiode; 
     FIG. 10 is a perspective view illustrating the electrodes of the detector of FIG. 9; 
     FIG. 11 illustrates an array of detectors in accordance with any of the preceding embodiments for detecting the approach of glyphs and reading the glyphs; 
     FIG. 12 is a perspective view illustrating a shaped position sensor glyph detector in accordance with the present invention; 
     FIG. 13 illustrates the reading of glyphs with the detector of FIG. 12; 
     FIG. 14 illustrates an array of predetectors for detecting the approach of lines of glyphs in combination with an array of interleaved glyph detectors; 
     FIG. 15 illustrates a processing circuit for detecting the approach of lines of glyphs; 
     FIG. 16 illustrates a processing circuit for determining which of the interleaved glyph detection arrays is most closely aligned in a vertical direction with the lines of glyphs and a read-out circuit which is clocked in accordance with the circuit of FIG. 15 to read-out the selected array of glyph detectors. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     With reference to FIG. 1, an image is divisible into a multiplicity of pixel arrays, such as the illustrated 5×5 pixel array 10. In a 5×5 array, any of the 25 pixels can contain a black dot and any of the 25 pixels can be left white. In the illustrated embodiment, a glyph 12 is made up of three dots disposed on a diagonal through the center pixel. Alternately, the glyph can pass through the center pixel of the array with the opposite slope to make an opposite polarity glyph 14. In the illustrated embodiment, glyphs 12 and 14 are used to represent binary 1&#39;s and 0&#39;s. Preferably, lines of glyphs are printed in lines across portions of an image. 
     A sheet of print paper or other print medium containing such lines of glyphs is moved at a controlled speed past a light source and one or more arrays of light sensitive glyph detectors. The glyph detector arrays output analog signals from the read glyphs which, preferably, are converted immediately to binary digital signals. When the lines of glyphs are at known intervals, the detector array is clocked for read out in accordance with the feed rate of the paper and the interglyph line intervals. 
     With reference to FIGS. 2, 3, and 4, a glyph detector 20 of the illustrated embodiment has two pairs of optically sensitive elements, particularly photodiodes, including a pair 22a, 22b which are sized to fit over the end two dots of the glyph 12 and a pair 24a, 24b sized and dimensioned to overlay the end two dots of glyph 14. It is to be appreciated that the exact spacing, size, and placement of the photosensitive elements conform to the dimensions and configuration of the selected glyphs. 
     The photodiodes 22a, 22b each include a PN junction or PIN 26 disposed between interconnected upper electrodes 28 and lower electrodes 30. The second pair of photodiodes 24a, 24b also include junction 32 sandwiched between upper electrodes 34 and interconnected lower electrodes 36. In the illustrated embodiment, the upper electrodes 28 of photodiodes 22a, 22b are connected by way of a via 38 to the lower electrodes 36 of photodiodes 24a, 24b. These interconnected electrodes are further connected to an output transistor 40. The lower electrodes 30 of diodes 22a, 22b are connected with a positive voltage source 42. Upper electrodes 34 of diodes 24a, 24b, are connected with a negative voltage source 44. More generally, source 44 is at least several volts less than source 42. Thus, the supplies could be monopolar, e.g., +5V and 0V, or 0V and -5V. 
     With this configuration, if the area under one pair of electrodes is white and the area under the other pair of electrodes is dark, the output voltage is at a maximum. The maximum output voltage is positive when glyph 12 is sensed and the maximum voltage is negative in response to glyph 14. In this manner, a maximum positive or negative voltage is indicative of a binary 1 or 0. It will further be appreciated that when there is a dot under only one of the electrodes in either pair, the output signal will be significantly lower. Similarly, if all electrodes see the same thing, e.g., all white or all black dots, the output approaches 0. In this manner, the differentially arranged pair of photodiodes discriminates glyphs from random gray scale shading and differentiates glyphs of two types from each other. 
     With reference to FIG. 5, a single pixel wide diagonal edge or line cutting through a field of white could be misread as a glyph. To discriminate against lines that are more than three dots long, the embodiment of FIG. 5 adds a pair of photodiodes 46a, 46b in line with photodiodes 22a, 22b. Diodes 46a, 46b detect whether a line of dots detected by 22a, 22b is more than three dots long. By making diodes 46a, 46b of opposite polarity from diodes 22a, 22b and adding their outputs, the maximum signal is produced by three dots. Analogously, a pair of photodiodes 48a, 48b are disposed in line with photodiodes 24a, 24b to determine whether any line of dots passing below photodiodes 24a, 24b is more than three dots long. In this manner, glyphs are differentiated from diagonal lines. 
     With reference to FIGS. 6, 7, and 8, in a first alternate embodiment of the present invention, glyphs are detected using a moment-sensitive photosensor 50. The moment sensitive photodetector includes a vertical PIN diode 52 with resistance layers 54, 56 on opposite surfaces. Four straight resistive contact strips 58a, 58b, 58c, 58d with constant conductivity along their length frame the lower resistance layer. Analogously, four tapered resistive strips 60a, 60b, 60c, 60d frame the top resistive surface. A position sensitive detector of this nature produces output currents that vary in accordance with the portions of the resistive layer 54 which are illuminated and not illuminated. The tapered electrodes effectively sum the photo generated currents with weighting factors proportional to the square of the distance of each current source from a particular edge while the straight electrodes weight the current linearly with the distance of the source from a particular edge. 
     From the currents flowing in the device, the position and orientation of the light can be determined. The zero-th moment M o  is determined from the sum of the currents from the straight or tapered electrodes, i.e.: ##EQU1## 
     The first moment of the illumination is determined from the outputs of the straight electrodes normalized by the sum of currents from all straight electrodes, i.e.: ##EQU2## The angle of the axis of least inertia θ is determined from the currents flowing through the tapered electrodes by first computing the quantities: ##EQU3## 
     The first moment is effectively a balance point or center of mass of the light spot(s). The second moment weights the off center light more heavily than the on center. The size of the photosensitive area is sized to match the size of a glyph 12. When the glyph oriented parallel to the electrodes is centered in the photosensitive area, the light is balanced in the x-direction and the light is balanced in the y-direction (although the light is not balanced between the x and y-directions). This effective balance is sensed by the first moment. The second moment weights the effect of the off center dots more heavily, providing an indication of the orientation. 
     With reference to FIGS. 9 and 10, in another alternate embodiment, lateral photodiodes are utilized similar to a pattern sensitive detector. A vertical PIN diode 70 has an insulating layer 72 on one face and a resistive layer 74 on the opposite face. Conductive leads 76a, 76b, 76c, and 76d are mounted on insulating layer 72. Matching resistive electrodes 78a, 78b, 78c, and 78d are mounted on the resistive layer. The conductive leads and resistive electrodes are connected by vias 80a, 80b at one corner. At the opposite corner, the conductive leads are connected to a pair of differential amplifiers 82a, 82b. This detector uses the resistive electrodes as a current divider with the two sides of the square sensor monitored in tandem. The light induced photo charge flows in the resistive layer 74 to the edges which are held close to ground. The edge current then divides in the resistance electrodes and flows to the differential amplifiers 82a, 82b or to storage capacitors. A glyph breaks the symmetry of the cell. When a glyph is centered with a vertical orientation, the output is a maximum voltage of a first polarity and when the glyph is located horizontally, the output is an opposite polarity maximum. 
     With reference to FIG. 11, the pattern sensitive detectors of the embodiment of FIGS. 6, 7, or 8 and the embodiment of FIGS. 9 and 10 are both sensitive to glyphs which are disposed parallel to the rectangular side walls. For glyphs as discussed above which are canted at 45° to horizontal, the detectors are rotated 45° as illustrated in FIG. 11. Moreover, because the glyphs are preferably printed in lines, the detectors are arranged in rectangular arrays of appropriate packing and spacing to match the size and spacing of the glyphs or image of glyphs projected onto detectors. The rows of detectors are spaced with the same periodicity as the glyphs. In this manner, each row of glyphs centers simultaneously on one of the rows of detectors and intermediate rows of detectors detect pure white. The sensing of pure white by alternate rows of detectors provides a double-check that glyphs are, in fact, being detected. If the glyphs are offset by half a period in the row direction, then the glyphs will align with the alternate rows of detectors. Optionally, the outputs of the alternate detector rows can be weighted to optimally identify the glyphs. Preferably, the interpreted outputs are asynchronously loaded into a binary buffer to scan out a row of glyph data. 
     With reference to FIGS. 12 and 13, the glyphs are sensed with a shaped position sensor 90. The shaped position sensor glyph detector 90 is fabricated by applying a metal layer 92, such as chromium, on a low cost substrate such as glass. The metal layer is patterned to form the bottom collection electrode. A thin, typically 30 nanometer layer 94 of heavily doped amorphous silicon (p-type in the preferred embodiment) is deposited followed by a thicker intrinsic layer 96, typically about 500 nanometers, and finally a thin, typically 30 nanometer layer 98 of heavily n-type doped amorphous silicon. A semitransparent contact resistive layer 100 is deposited. The layers of amorphous silicon and the semitransparent contact are pattern using photolithography. A passivation layer (not shown) is deposited and holes are cut in this layer to expose the top semitransparent contact. Two contacting electrodes 102, typically aluminum, are photo lithographically fabricated to be in electrical contact with the semitransparent resistive layer 100. 
     With particular reference to FIG. 13, in operation, a row of the two electrode glyph detectors are mounted at a common angle with a line 104 of glyphs of a first polarity. Currents I 1 , and I 2  in the electrodes 102 are measured as the glyph pattern crosses the detector. The sum of the two currents I 1  +I 2  is proportional to the total light falling on the detector. Thus, as a correctly aligned glyph from the row 104 moves across the detector, the sum current passes through a deep minimum. If a glyph 106 of the opposite polarity passes over the detector, the minimum is much smaller. In this manner, glyph orientation is determined from the sum of the currents. The centroid or center of mass I is given by: ##EQU4## As a glyph A passes directly over the detector, its centroid crosses point I A . When a glyph B passes over the detector, the centroid of light moves to position I B . Thus, one shaped position sensor glyph detector measures glyphs located a more than one location through the examination of the quantity I. One can also determine whether a part of the glyph lies within the detector by the position of the centroid. The shaped position sensor in this manner detects glyphs which are offcenter from the detector, allowing a less dense array of detectors to be utilized. 
     This arrangement is advantageous in that it does not require lateral registration of the sensor with the glyph. This avoids complex switching circuits or a dense array of sensors. One detector can detect more than one glyph, lowering the detector density requirements. 
     With reference to FIG. 14, detectors of the first embodiment of FIGS. 1-4 are also amenable to fabrication into an array 110. The opposing pairs of lobes are interlaced to create a row of interlaced or overlapping detectors. The rows of detectors are preceded in the feed direction by a predetector array 112 which determines the centers of rows of approaching glyphs. 
     The predetector array 112 includes three sets of electrodes. In each set, a central light sensitive sensor 116a, 116b, and 116c extends the length of a line. A pair of light sensitive side detectors 118a, 118b, and 118c, and 120a, 120b, or 120c extend parallel to the first predetector electrode, but offset by two and 3/8 pixels on each side (in the preferred embodiment). The side electrodes 118, 120 are also half of the width of the central electrode 116 so that the sum of their area equals that of the central electrode. The output of the corresponding side sensors 118, 120 are connected together and summed with the corresponding central sensors 116 in a manner similar to that illustrated in FIGS. 2 and 3. The outputs of 116a, 118a, 120a are generated by the summed current at the common nodes and represents the difference between the light falling on the central sensor and the sum of the corresponding side sensors. In this manner, when examining glyphs which have three dots on the diagonal and when the center dot of the glyph is centered under the central electrode 116, side electrodes 118, 120 view the white pixels on either edge of the 5×5 pixel glyph. That is, the black dots under electrode 116 produce a minimal illumination and the absence of dots below electrodes 118, 120 produce a maximum illumination output. The difference exceeds a predetermined threshold as the center of the glyph passes directly under electrode 114. The three sets of detectors are offset by one pixel. 
     With reference to FIG. 15, the summed output 122a is compared 124 with the outputs 122b and 122c and with a threshold 126. The three comparisons are ANDed 128 to produce a signal indicating a row of glyphs centered under electrode 116a. 
     With reference again to FIG. 14, the center electrode 116a is centered 5 pixels, the dimension of a glyph or another known distance, from the center of the electrode array 110. In this manner, the validity signal indicates when one can expect to find a line of glyphs centered on the central row of the electrode array 110. 
     The detector array 110 includes five sets of interleaved detectors with positive polarity cells +a, +b, +c, +d, and +e on one diagonal and opposite polarity cells -a, -b, -c, -d and -e on the other diagonal. Each detector with crossed positive and negative polarity electrodes is spaced by the dimension of one glyph, 5 pixels in the preferred embodiment, from the next like detector of the same set. The sets are staggered, by 1 pixel in the illustrated embodiment, to detect whether the glyphs are aligned most closely to any one of five lateral positions. That is, if the glyphs are centered on the illustrated 5 pixel span, then the center pixel of the glyph will fall under detectors 130a; if the glyphs are offset by half a pixel to the right, then the center will fall under detectors 130b; if the glyphs are offset by a full pixel, the centers will fall under detectors 130c. 
     With reference to FIG. 16, the outputs of the sets a, b, c, d, e of the detector array 130 are analyzed to determine the horizontal center of the glyphs, hence which of the detector a, b, c, d, e should be activated to read the glyphs. More specifically, the output of sets a and b are compared 140 and the output of sets c and d are compared 142. The comparison controls switches 144, 146 which switch the larger of a and b and the larger c and d to a comparitor 148. The comparitor 148 controls a switch 150 which channels the largest output to a comparitor 152 that compares the largest of a, b, c, and d with input e. The output of comparator 152 controls a switch 154 that connects the largest of a, b, c, d, and e with a comparator 156 for comparison with a threshold which shows that a row of glyphs is under the array. Further, the output for the four comparators create a four-bit binary number indicating which of sets a, b, c, d, or e is to be read. Once it is determined that a line of glyphs is centered on one of detector arrays a, b, c, d, and e, the four bit binary indication of the centered detector array controls a switch 158 which switches the signals from the selected array to parallel output lines. 
     It is to be appreciated that the present invention is useful with a vast array of glyph styles and shapes. Further, glyphs may be encoded in other than a binary manner, for example, line glyphs of the type described above may be disposed at 45° intervals to produce an output which can take on any one of four states to carry two bits worth of information. 
     The invention has been described with reference to the preferred embodiment. Obviously, modifications and alterations will occur to others upon reading and understanding the preceding detailed description. It is intended that the invention be construed as including all such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.