FIELD OF THE INVENTION
[0001] The present invention relates generally to the field of document scanning and more
particularly to a method and apparatus that detects and compensates for color balance
variation during the scanning process.
BACKGROUND OF THE INVENTION
[0002] A document scanner is a device which converts a visible image such as a photograph,
transparency or printed paper into an electronic form suitable for copying, storing
or processing by a computer. Document scanners typically have a controlled source
of light which is reflected off the surface of a document or is transmitted through
a transparent document onto an array of photosensitive devices. The photosensitive
devices convert received light intensity into an electronic signal. In some configurations,
the light source is a long tube providing a narrow band of light which extends to
each edge of one dimension of the document or beyond the edges.
[0003] For electric discharge lamps such as florescent bulbs, the color balance of the light
varies depending on the temperature of the bulb. When such a light source is first
powered on, color balance of the light varies dynamically along the length of the
bulb until the overall temperature of the light source stabilizes. Moreover, during
long scans, the temperature of the bulb can change enough to cause an unsatisfactory
shift in the bulb color balance causing a color shift in the image scanned.
[0004] One solution to this problem is to leave the bulb on continuously, which allows the
bulb temperature to reach a steady state. This solution is a costly solution due to
frequent changing of the light source and continual power usage.
[0005] Thus, the need exists for a scanner method and apparatus that will compensate for
color variances of the light source as a function of temperature in a dynamic manner,
for example during each and every document scan, to thereby allow document scanning
to begin within a second or two after the light source has been initially energized.
SUMMARY OF THE INVENTION
[0006] In the document scanner incorporating the present invention, the color shift of the
light source is dynamically compensated for by monitoring a strip of known reflectance
along the side of the scanned area and adjusting the gains of independently controlled
red, green and blue channels of a CCD array. This method permits dynamic compensation
as each scan line is processed or at each stop/start location just before the next
scan line begins. Such a solution maintains the correct color of the image being scanned
at the beginning of the scanning process and over long scan times.
BRIEF DESCRIPTION OF THE DRAWINGS
[0007] The above and other objects, features and advantages of the present invention will
be better understood by reading the following more particular description of the invention,
presented in conjunction with the following drawings, wherein:
Figure 1 shows a side view block diagram of a document scanner;
Figure 2 shows a front view block diagram of a document scanner;
Figure 3 shows a block diagram schematic of gain control circuitry of the present
invention;
Figure 4 shows a flow chart illustrating the method of the present invention;
Figure 5 shows a block diagram schematic of gain control circuitry of a preferred
embodiment of the present invention; and
Figure 6 shows a flow chart illustrating the method of the preferred embodiment of
the present invention as shown in Figure 5.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
[0008] Figure 1 is a block diagram illustration of a side view of a document scanner. Document
scanner 100 has an opaque document 102 lying face down on a transparent platen 104.
A lamp 106 projects a narrow line of light onto the face of document 102 which reflects
onto mirrors 108, 110 and 112, through a focusing lens 114 onto photodetector array
116. In the configuration illustrated in Figure 1, the lamp moves to provide a moving
line of light along the stationary document 102 for detection by the photodetector
array 116. In other configurations, the document may move past a stationary light
source. Photodetector array 116 converts light into an electrical signal for a controller
118 which among other things controls the power going to lamp 116 before scanning
the document 102. Controller 118 sends image data to a printer (not illustrated) for
copying or to a computer 122. Controller 118 also receives control commands from computer
122.
[0009] Figure 2 is a block diagram front view of some of the components of the document
scanner 100. As in Figure 1, the document 102 is lying face down on the transparent
platen 104. The face of the document 102 is illuminated by the lamp 106. As illustrated
in Figure 2, the lamp 106 is a long tube extending beyond the edges of the document
102. A lamp calibration target 200 is used to calibrate the color balance of the light
from the lamp 106. The lamp calibration target 200 may be a small reflective area
just at one end of the platen 104 for continuous closed loop control during a scan
or it may extend along the entire length of the platen 104 for initial calibration.
Light from a relatively small calibration area 202 near the end of the lamp 106 is
reflected from the lamp calibration target 200 onto the photosensor array 116 (Figure
1).
[0010] Figure 3 is a block diagram of the closed loop lamp color balance control circuitry.
As illustrated in Figures 1 and 2, light from the lamp 106 is reflected from the calibration
target 200 onto a portion of the sensor array 116. Analog signals from elements of
the sensor array 116 which are illuminated by target 200 are converted to digital
information by an analog to digital converter (A/D) 300. The digital information is
processed by a microprocessor 302 which compares the red, green and blue components
to predetermined values that the red, green and blue components should have for the
calibration target. If any of the red, green or blue components deviate from the predetermined
values by more than a predetermined amount, the respective red, green or blue channels
of the sensor array will be adjusted by controller 306 and the respective red gain
controller 312, green gain controller 310 or blue gain controller 308.
[0011] Figure 4 is a flow chart illustrating the method of the present invention. The microprocessor
302 continually monitors the red, green and blue components of the target white scan
area 202. If the red component sensed by the sensor array 116 is not within a predetermined
range, the controller 306 will adjust the red channel gain of the sensor array 116
by means of the red gain controller 312 so that the red component will be within the
predetermined control range. If the red component is within the control range, nothing
will be done to the red component and the microprocessor 302 will compare the green
component to determine whether it is within a predetermined range. If the green component
is not within the predetermined range, the controller 306 will adjust the green channel
gain of the sensor array 116 by means of the green gain controller 310 so that the
green component will be within the predetermined control range. If the green component
is within the control range, nothing will be done to the green component and the microprocessor
302 will compare the blue component to determine whether it is within a predetermined
range. If the blue component is not within the predetermined range, the controller
306 will adjust the blue channel gain of the sensor array 116 by means of the blue
gain controller 308 so that the blue component will be within the predetermined control
range.
[0012] In this manner, the color balance can be maintained within a predetermined range,
even as the color balance of the light varies as the temperature of the light varies,
by adjusting the various color component outputs of the sensor array 116 as a function
of predetermined values for a white target.
[0013] Figure 5 is a block diagram of the closed loop lamp color balance control circuitry
according to a preferred embodiment of the present invention. In the preferred embodiment
of Figure 5, all of the gains (red, green and blue) and the lamp intensity are adjusted
to a predetermined level initially before the start of the scan. This is accomplished
by the sensor array 116 sensing the target which is a predetermined color, preferably
a color towards the middle of the color spectrum, such as grey. The signal is then
converted to a digital signal by the A/D converter 300. Next the microprocessor 302
compares the color balance of the three color channels with predetermined values and
the light intensity of the lamp with a predetermined value. If the various color are
high or low, the controller adjusts the gains of the respective color channels by
means of gain controllers 308, 310 and 312. And if the light intensity is outside
of a predetermined range, the controller 306 adjusts the power to the lamp 106 by
means of a lamp controller 304, this is preferably accomplished by adjusting the current
to the lamp 106. One method for controlling lamp light intensity is described in U.S.
Patent Number 5,336,976 of Webb et al., entitled Illumination Warm-up Control in a
Document Scanner, which is incorporated herein for all that it teaches.
[0014] Once the scan has actually started, the color balance and the light intensity may
be continually monitored and adjusted during the scan process, monitored and adjusted
at predetermined intervals during the scan process, or monitored and adjusted whenever
the scan stops. Figure 6 is a flow chart illustrating an example of a preferred method
of the present invention. Before the start of the scan, all of the gains and the intensity
of the lamp are adjusted to be within predetermined ranges (not shown). Once the scan
begins, one color channel gain is fixed, in this example, the green channel is held
constant and used to monitor the light intensity of the lamp. If the light intensity
is outside of a predetermined range, then the current to the lamp is adjusted in order
to bring the light intensity within the predetermined range. Then all of the color
channels are compared to determine whether the color balance between the three colors
is within a predetermined range. If it is not, the gains of the two color channels
that are not fixed are adjusted to bring the overall color balance within the predetermined
range. In this example, the two color gains that are adjusted are the red channel
gain and the blue channel gain. However, this is not necessary, any of the color gains
could be held constant while the other two color gains are adjusted to maintain a
relatively stable color balance. The process is then repeated at whatever time interval
is chosen for system design and cost effectiveness.
[0015] The foregoing description of the present invention has been presented for purposes
of illustration and description. It is not intended to be exhaustive or to limit the
invention to the precise form disclosed, and other modifications and variations may
be possible in light of the above teachings. For example, the target does not have
to be a white target, but can be any color target. Shades of grey appear to be a good
choice for the target as the intensities of the colors red, green and blue are closer
together in the color grey, and therefore, the signal to noise ratio and quantization
errors for the worst channel will be better with a grey target than with other colors
that have more of one color than the other two. Also, more than three color channels
may be monitored and adjusted to maintain color balance if more color balance precision
is desired or if the scanner is a color scanner. The embodiment was chosen and described
in order to best explain the principles of the invention and its practical application
to thereby enable others skilled in the art to best utilize the invention in various
embodiments and various modifications as are suited to the particular use contemplated.
It is intended that the appended claims be construed to include other alternative
embodiments of the invention except insofar as limited by the prior art.
1. A method for maintaining a predetermined color balance in a document scanning device
during a scanning process, the method comprising the following steps:
(a) applying electrical power to a light source (106);
(b) directing said light source (106) toward a control target (200) of a predetermined
color;
(c) monitoring a first color channel (308), a second color channel (310) and a third
color channel (312) of a sensor array (116), said first color channel (308), said
second color channel (310) and said third color channel (312) receiving light reflected
by said control target (200);
(d) comparing the color balance of said first color channel (308), said second color
channel (310) and said third color channel (312) with a predetermined color balance;
and
(e) adjusting the gains of one or more of said first color channel (308), said second
color channel (310) and said third color channel (312), if the color balance of said
first color channel (308), said second color channel (310) and said third color channel
(312) is outside of a predetermined range when compared to said predetermined color
balance.
2. The method of claim 1 wherein said light source(106) is an electric-discharge light
source.
3. The method of claim 2 wherein said sensor array (116) is a CCD array.
4. The method of claim 1 wherein said control target (200) is a white target.
5. The method of claim 1 wherein said control target (200) is a grey target.
6. A method for maintaining a predetermined color balance and a predetermined light intensity
in a document scanning device during a scanning process, the method comprising the
following steps:
(a) applying electrical power to a light source (106);
(b) directing said light source (106) toward a control target (200) of a predetermined
color;
(c) monitoring a first color channel (308) of a sensor array (116), said first color
channel (308) of said sensor array (116) receiving light reflected by said control
target (200);
(d) comparing the light intensity of said first color channel (308) with a predetermined
light intensity;
(e) adjusting the electrical power to said light source (116), if the compared light
intensity is outside of a predetermined range with respect to said predetermined light
intensity;
(f) monitoring said first color channel (308), a second color channel (310) and a
third color channel (312) of a sensor array (116), said first color channel (308),
said second color channel (310) and said third color channel (312) receiving light
reflected by said control target (200);
(g) comparing the color balance of said first color channel (308), said second color
channel (310) and said third color channel (312) with a predetermined color balance;
and
(h) adjusting the gains of one or both of said second color channel (310) and said
third color channel (312), if the color balance of said first color channel (308),
said second color channel (310) and said third color channel (312) is outside of a
predetermined range when compared to said predetermined color balance.
7. The method of claim 6 wherein said light source (106) is an electric-discharge light
source.
8. The method of claim 7 wherein step (e) comprises adjusting the current to said electric-discharge
light source (106).
9. The method of claim 6 wherein said control target (200) is a white target.
10. The method of claim 6 wherein said control target (200) is a grey target.