Академический Документы
Профессиональный Документы
Культура Документы
BACKGROUND
Colour is an important property of many mass produced
items, since it attracts the eye and conveys information
quickly. Some packaging colours are so closely
identified with particular brands as to be trade marks,
for example Coca-Cola red and Cadbury purple.
The colour of retail products and their packaging must
be consistent over long production runs, and from one
run to another. When colour consistency is poor, an
impression of low quality is formed in the mind of the
customer.
This is especially damaging in food
packaging, where poor appearance gives the impression
of stale products. In many industries, colour assessment
is carried out off-line by production staff who make a
visual comparison between the current production and a
standard.
Sometimes spectrophotometers or
colorimeters are used to give precise colour
measurements; these instruments, generally, are also
used off-line.
Recent advances in video camera technology, coupled
with techniques developed at the University of
Huddersfield, allow video cameras to be used as colour
measuring instruments.
Cameras are non-contact
sensors, and can therefore be used on-line without
disrupting production. On-line inspection enables a
faster response to faults, saving waste and improving
quality.
This paper describes the research done at the University
of Huddersfield, presents the results of laboratory tests
and addresses two particular industrial applications.
673
Monochrome Camera
Preliminary work with the monochrome camera made it
clear that the auto gain control circuit creates problems
in the accurate sensing of colour. If the gain is allowed
to adjust itself independently through the three colour
separation filters, this tends to desaturate the colours in
the scene, and also leads to a variation of colour balance
according to the dominant colour of the scene. This
means that objects produce different signals if presented
on different coloured backgrounds.
There was a tendency for small areas of bright colour to
become saturated through one or more of the filters,
because the auto gain control responds to the average
signal, not to its peak. This effect has been noted by
Klinker (6), who refers to it as "colour clipping". The
camera signals were found to vary markedly with
camera temperature.
To improve the repeatability of measurement with the
monochrome camera, the auto gain circuitry was
disabled, and the camera set by hand. To avoid colour
clipping, the settings were adjusted so that a white
object in the scene gave signals some way below the
maximum detectable signal.
The camera was
repositioned well away from the lights, to avoid
overheating.
Three-Tube Camera
Experiments were then carried out with the 3-tube
colour camera. The red, green and blue channel
analogue outputs were each digitised by 8-bit analogue
to digital converters in a Matrox MVP-NP framestore
card fitted into a personal computer. To test the
precision and repeatability of the camera, test objects, in
the form of flat mondrians, were viewed repeatedly over
a period of time, and the data was analysed statistically.
The 3-tube camera was tested for repeatability over 5hour and 1 I-day periods. The camera was preheated,
then switched on and calibrated according to the
standard user instructions.
Then repeated
measurements were made of the test object, without
further calibration. The camera was adjusted manually
to suitable settings, which then remained constant
throughout the test period.
It was shown by these experiments that the RGB values
varied with time, changing rapidly in the first half hour,
and more slowly From then on, but never settling down
completely. Tests again revealed that when the colour
patches were displayed on a different background, the
3-tube camera gave different measurements. The RGB
values of any colour patch were biased towards the
colour of the background.
COLOUR
674
aims to transform instrumental measurements into
metrics proportional to perceptual colour differences.
Nine different colour spaces were studied to find which
was the most suitable for use with images of industrial
scenes. Full details are published in (3) and in Connolly
(9), but a summary of the findings is given here.
Textile Yarns
One particular application in the textile industry
involves the inspection of yarns. The standard yam, a
sample which was slightly off shade but acceptable,
plus a sample which was unacceptable in shade, were
studied. The three yams were attached to a sheet of
white cardboard which was propped up in the back of
675
the lighting cabinet with five fluorescent tubes lit. The
standard colour was trained, and the other two samples
were used to set acceptability limits. Then the three
yams were repeatedly measured over a period of 9 days,
without retraining the system. The samples were kept
in an envelope between inspections to avoid fading.
The average colour difference between the original
measurement of the standard yam and subsequent
measurements was 0.96 CIELAB units. This is higher
than the 0.33 CIELAB units observed for flat objects,
because of the disturbance caused when the yam is
taken out of the envelope, and the fact that its shape
incorporates some shadows. However, the repeatability
was sufficiently good for the colour inspection system
to correctly label the acceptable and unacceptable
samples in all 26 sets of measurements over a 9-day
period.
Beverage Cans
Another application is the inspection of beverage cans.
On some production lines, the cans are filled before
they are printed, so waste due to unacceptable colour is
expensive. Current practice is to remove a can from the
line every 15 minutes, and inspect it either by eye, or
with the help of a hand-held spectrophotometer, using
its smallest aperture so as to minimise the effect of the
can's curvature. Since the cans are produced at the rate
of approximately 1000 per minute, waste rapidly
accumulates once the colour goes off-shade.
Beverage cans are a very challenging application, since
the objects are three-dimensional, highly reflective, and
of high-chroma colours. Our first measurements were
disappointing. Table 1 shows measurements of a pair of
soft drink cans - the standard colour 'std' and an offshade sample 'samp'. The cans were measured by a
spectrophotometer, and by our automatically controlled
3-chip camera, using its normal setting of 0dB gain.
The camera measures a colour difference "Col. Diff."
between the standard and sample cans, but in the
opposite direction from the spectrophotometer as
regards the b* metric. Note that we are not concerned
with the absolute accuracy of measurement, but with the
accuracy of the colour difference between sample and
standard.
The problem is due to the quantisation errors of the 8bit analogue to digital converters. Both the G and B
channel measurements of the standard can are equal to
the black levels for these channels. The sensitivity of
the human eye increases at low signal levels, and
spectrophotometers mimic this behaviour. The camera,
however, uses linear analogue to digital conversion, so
the quantisation errors become very significant at low
signals. lkeda et al (18) showed that the worst colour
difference between the original analogue values and the
7.94
(1)
676
CONCLUSIONS
Cameras have three major advantages over colorimeters
and spectrophotometers, making them much more
practicable for industrial colour inspection:
a) they can be used on-line;
b) three-dimensional objects may be inspected;
c) many colours may be inspected simultaneously.
This paper has described research into the problems
encountered when video cameras are employed for the
inspection of colour in three-dimensional scenes. This
has led to the development of an automatic control
system which significantly improves the repeatability of
the camera.
Trials to date on textile yarns and beverage cans have
proved that this camera-based system is at least as good
as current colour quality control systems. Moreover it
offers advantages of reliability, reduced need for
supervision, and immediate waming of colour drift.
ACKNOWLEDGEMENT
Leung's work was supported by a Bursary from the
University of Huddersfield.
REFERENCES
1. Thomas W V and Connolly C, 1986, "Applications
of Colour Processing in Optical Inspection", Proc. SPIE
116-122
m,
m,