Abstract:
The processing of video signal information derived from scanning the characters or marks on a background sheet includes normalizing the signal levels against changes in operating conditions and dynamically altering the threshold level of the video signal in response to the changes in levels of video signal.

Description:
BACKGROUND OF THE INVENTION 
     Many known optical mark or character-reading devices rely on simple video circuits for sensing contrasting marks or characters appearing on documents for producing electrical signals which are interpreted to yield information about the mark or character sensed. Video circuits of this type commonly require high-contrast marks or characters against clean, white background to assure proper operation and correct sensing of the mark or character. Certain threshold levels are usually selected in such video circuits in order to optimize the accuracy of sensed information for the conditions of darkness or density of the marks or characters to be sensed, the background color of the document, the level of background illumination used, the speed of character scanning, and the like. However, such simple video circuits commonly suffer degradation in sensing accuracy for a given setting of threshold levels as a result of changes in such parameters as the density of marks or characters being sensed, the background color, the level of illumination, the scanning speed, the type or font of characters being sensed, and the like. 
     SUMMARY OF THE INVENTION 
     In accordance with one embodiment of the present invention, a dynamic video system alters operating thresholds as the system operating conditions change from character to character being sensed. In this way, the short-term variations in operating conditions (e.g., the characters being scanned, character darkness) as well as the longer-term changes in operating conditions (e.g., background color, intensity of background illumination) are all compensated for to insure a high degree of sensing accuracy under all operating conditions. 
     DESCRIPTION OF THE DRAWINGS 
     FIGS. 1a and 1b comprise a block schematic diagram of an improved video circuit according to the present invention; 
     FIG. 2 is a partial schematic diagram of the automatic zero circuit and automatic gain control circuit of FIG. 1; 
     FIGS. 3a and 3b are detailed circuit diagrams of the video circuit of FIG. 1; 
     FIGS. 4a, b and c are graphs showing waveforms of signals produced by operation of the circuit of FIG. 1; 
     FIG. 5a is a chart showing a letter &#34;m&#34; to be scanned; 
     FIG. 5b is a graph showing the signals produced by the circuit of FIG. 1 when scanning the character of FIG. 5a; and 
     FIG. 6 is a pictorial illustration of the read-zone guide disposed behind the document in alignment with the video scanner. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     Referring now to FIGS. 1a and 1b, there is shown a schematic diagram of the improved video circuit of the present invention. A conventional solid-state video detector 9 such as a clockable array of, say, 2048 charge-storing diodes (commercially available from Reticon Corporation of Sunnyvale, Calif.) is optically arranged via lens system 11 to scan a limited sector or &#34;slice&#34; 12 of the width of a document 13 as the document is moved relative to the lens system 11. In this way, the video detector 9 sequentially senses portions of each slice 12 from one side to the other of the document 13 and sequentially senses successive slices from top to bottom of the document. The diodes in the array that forms the video detector 9 are sequentially activated or clocked using the circuitry 14, later described, to produce signals on line 15 which are representative of contrasting images sensed at sequential locations along a slice 12. These signals are processed according to the present invention to provide video signals 15 which are normalized or compensated relative to changes in various operating parameters. 
     More specifically, the video detector 9 includes two linear arrays of 2048 photodiodes which are arranged parallel to each other. One array is masked over and is used as a dark reference. Each array is divided into 1024 pairs of adjacent diodes. The odd diodes are selected with &#34;phase A&#34; of clock 16 and the even diodes are selected with &#34;phase B&#34; of clock 16. The phase A, phase B clocks are level shifted from TTL voltage levels (0 to 5 V) to video detector operating levels (-5 V to +5 V) and then balance controlled to avoid inducing offsets in the resulting video output. 
     There are two shift registers of 512 bits each built into the array. A single logic &#34;0&#34; is passed through each register to sequentially enable the diode pairs. Thus, each shift register enables alternate pairs of diodes, for example, as logic &#34;0&#34; is sequentially shifted through the register to effectively couple one diode at a time from each array to the video output bus of the array 9 at a frequency of 625 kHz. 
     The system clock 21 is used to clock the counters 23 which, in turn, address the upper and lower control decoders 25, 27. These decoders generate all of the clock phases necessary to properly sequence the array of diodes in the video detector 9. The sync control circuit 29 receives a signal 31 which recurringly starts 30 the video scan sequence. The start pulse is applied to the shift registers of the video detector and represents the single &#34;0&#34; bit that is shifted through the registers. When this bit exits the other end of the shift register, it is called the end-of-line (EOL*) signal 33 which turns off the video enable signal 35 and the sample-and-hold signal 37. 
     The video enable signal is used to occlude the first three and the last two pixels from the array. These bits are not reliable due to internal start-of-line and end-of-line shift register noise. 
     A Data Request signal 39 may appear asynchronously with respect to a video scan cycle. The request is held until the start of the next scan at which time the GATE signal is activated. The GATE signal is thus synchronous with video enable and preserves a constant video integration period. 
     The output circuitry associated with the video detector 9 measures the video signal on each diode which operates in a charge-storage mode. Initially, all diodes are fully charged with about 2.2 picocoulombs at 5 V. The photodiode capacitance is thus about 0.44 picofarad. During the video integration period, the charge is depleted by photon current and leakage. Dark current leakage changes with operating temperature, so the second array is masked from light and serves as a thermally-referenced array. Both diode arrays thus measure dark current, charge injection noise, video substrate current and substrate imbalance. The dummy array responds to all conditions except photon excitation. 
     A pair of integrator operational amplifiers 41, 43 are used as charge amplifiers to measure the video signals from the arry. When the system is ready the reset switches are enabled and current flows into the minus node of the integrator differential amplifier which is referenced to ground. 
     The outputs of both integrators are applied to a difference amplifier 49 to produce the desired video signal at the output 51 and the resulting dummy video signal 45 is now subtracted from the video signal 47 which is then applied to a high-impedance buffer 53 and a sample-and-hold circuit 55. The video sample is taken when the signal is stable, after any switching transients, and is held as a signal level at output 15 until updated by the next sample. 
     According to one aspect of the present invention the signals on line 15 are video processed to determine the black and the white video information. As illustrated in FIGS. 2 and 3, the white and black peak detectors 61, 63 sense the maximum and minimum video signal voltages 22. These peak values only decay slowly with a time constant of about 500 millisec. Voltage divider 65 establishes a nominal threshold voltage 67 that is about 57% of peak white and about 43% of peak black in one embodiment of the invention. This nominal threshold is applied via the auto-zero circuit 64 to the video amplifier 60 so that this nominal threshold voltage is the ground reference (0 volts). 
     The gain of the video amplifier 60 is adjusted by the automatic gain control circuit 75 to provide a constant video output of about 10 volts. The peak black sample 63 remains about -4.3 V and any variance from this value will cause an adjustment in the gain control 75 to restore -4.3 V. 
     The video signal 22 thus processed passes through a buffer amplifier 80 and is further processed in the final threshold and comparison circuitry. This buffered signal is applied to the minus side of the threshold comparator 82 and is also applied to the dynamic threshold circuits 84, 86, 88 which derive the threshold control signal 87 that is applied to the plus side of the threshold comparator 82. The threshold comparator 82 produces the video serial data (VSD) at the output as digital signal representing &#34;1&#34; and &#34;0&#34; logic levels. The VSD output may then be applied to character-recognition circuitry which forms no part of this invention. The threshold control signal 87 is initially established at the sum node 85 at about half the value between video and ground by a pair of equal-value resistors 90, 92. A capacitor 94 is also connected to node 85 to delay fast-changing video levels with a time constant of about 50 microseconds. Whenever the video signal crosses ground level, the sum node 85 must be charged for the new video level. The zero-crossng detector 84 activates a switch 87 that allows the video amplifier 86 to recharge the sum node 85. This video amplifier 86 is set to establish a new node level at about one-third of the actual video that just changed levels. 
     In addition, the differentiator network 88 functions for very high speed changes in video. This circuit responds to the rate of change of applied signal to reduce the signal on node 85 a proportionate amount, say, by one-fifth. For example, if dI/dT =1, then the value of signal on the sum node 85 is reapportioned in same polarity by one-fifth. These circuits are designed to reduce the time lag between the actual video signal 15 and the signal level that establishes the threshold level. These automatic adjustments provide dramatic improvement in the ability to detect characters or marks on a document 13 over a wide range of conditions. For example, the video detector 9 has a fixed dynamic range of output signals from darkness to saturation. Thus, at the input 15 to the video processing circuitry of the present invention, there are several possible signal waveforms, as shown in FIGS. 4a, b and c. It can be seen from these illustrations that an absolute threshold level halfway between black and saturation would only be usable for a limited range of documents. Note from FIG. 4b, for example, that colored-paper documents exceed the capability of a fixed threshold design to distinguish between black and white. However, the automatic threshold circuitry of the present invention adjusts for varying paper-to-print contrast to accept white or colored documents 13 with light or dark printing. Thus, FIG. 4a shows a video signal before and after processing according to the present invention. It should be noted that a fixed threshold would detect almost no black so a document would appear faded out. The present circuitry selects a level between the peak black and white levels to normalize the signals for such documents. Similarly, FIG. 4b shows a blue-paper document with dark printing which, without the present circuitry, would appear solid black. 
     Thus, it can be seen that an auto-zero threshold which is approximately halfway between the peak black and peak white provides excellent, automatic response to changes in the sensed contrast conditions. 
     In the absence of paper in the machine, the video detector 9 is focused on a background target called the &#34;read-zone guide&#34;, as shown in FIG. 6. The gray zone color is about 67% of absolute carbon black. This is selected as a compromise between the requirements for detecting the presence of document 13 in the machine and an initial black video reference for light print found on a typical population of documents. The presence of a document (page detect) in the machine is detected when the left gray zone becomes partially covered, as shown in FIG. 6. The white color level of the read-zone guide provides an initial white video reference which is about 70% of absolute Magnesium Oxide whtie. This color also improves the light reflectivity of most paper (which is semi-transparent that is placed in front of the read-zone guide. 
     The choice for nominal threshold level relative to peak white is determined as a result of testing a large number of typical documents. Thus, in one embodiment a level is set that is about 57% of peak white and about 43% of peak black as a nominal threshold level. Also, any dirt or smudges near the 50% level will be seen as white instead of black noise. The video amplifier 60 is adjusted so that this point represents ground (0 volts). The modified signal has 57% above ground (+5.7 V) and 43% below ground (-4.3 V). The time constrant for the auto-zero circuit 64 is about 100 millisec/per volt. In another embodiment, the nominal threshold may be set at about 45% of peak white and 55% of peak black, based upon tests of a selected population of documents. 
     Note that the gain of the video amplifier 60 is adjusted to provide a constant 10 volt peak-to-peak video output. The peak black sample should be -4.3 V. Any variance from this value causes an adjustment in the gain control to restore -4.3 V. The gain of the video amplifier 60 can be adjusted within a selected range of, say, 7 to 25, and the time constrant of the automatic gain control 75 is about 500 millisec. 
     Additionally, the present invention eliminates the need for electronic adjustments for variations in lamp intensity, array sensitivity, or component values. FIG. 4c shows a video signal that represents a combination of worst-case conditions. The low signal level may be due to low lamp output, low sensitivity of the video detector, and low output from the charge amplifiers. However, the automatic gain circuit amplifies the illustrated 0.400 volt peak-to-peak signal with a gain of 25 to provide the necessary signal amplitude of 10 volts peak-to-peak. 
     The time constant for automatic gain control is selected at about 500 millisec, which corresponds to about 125 scans of incremental length, or &#34;slices&#34; 12 along the length of the document 13. This time constant allows the circuit to adjust for both slowly varying contrast and two-tone contrast documents. 
     The dynamic threshold circuitry of the present invention is designed to process fast-changing video signals accurately. This allows characters of varying print darkness, as shown in FIG. 5a, and with close physical spacing to be individually resolved, as shown in FIG. 5b. 
     FIG. 5a shows the letter &#34;m&#34; with one or more pixel (i.e., unit picture element) spaces between segments on the bottom. 
     The video signal for the scan through the lowest portion of the &#34;m&#34; appears in FIG. 5b. 
     The video signal associated with an optical scan along the bottom of the &#34;m&#34; includes a resposne to the one-pixel gap which may have a fast rise-time but may not cross the nominal threshold point. The video detector exhibits a change in output response from full white pixel to full black pixel that is sometimes referred to as Modulation Transfer Function (MTF), and is specified at about 60% of full dynamic range. The present invention provides a threshold level about halfway between ground and the video signal. A narrow video pulse that crosses the dynamic threshold level can thus be more readily resolved. The resulting threshold video signal may then be applied to correlation circuits (not shown) which determine what character was sensed from the patterns of the video signals for all scan slices through a character. 
     Therefore, the present invention greatly improves the accuracy of character detection under such diverse conditions as colored background, low sensitivity or low modulation transfer function (MTF) of the imaging optics, partially black characters, low-level illumination, complexity of characters being detected, and the like. In addition, the present invention obviates the need for circuit adjustments to correct for variations in electrical components, operating temperature, or background color of the document being scanned. The resulting video signal is thus normalized against changes in most operating conditions and is more reliably representative of the characters being detected.