• Tidak ada hasil yang ditemukan

Directory UMM :Data Elmu:jurnal:S:Sensor Review:Vol20.Issue1.2000:

N/A
N/A
Protected

Academic year: 2017

Membagikan "Directory UMM :Data Elmu:jurnal:S:Sensor Review:Vol20.Issue1.2000:"

Copied!
7
0
0

Teks penuh

(1)

A statistical approach

to economical

camera-based

colorimetric

comparison

K.J. Brazier

P.C. Russell

G.R. Jones and

I. Shankland

The problem of discriminating colour (mis)matches as potentially observed by a human subject arises in a diverse variety of applications. One particular example is that of manufacturing quality assurance, in which it is necessary to ensure that product

components only differ in colour within limits set by the discriminating ability of the product end-user. Two approaches have been

available to deal with the problem: (1) A human expert evaluates the

acceptability of a product sample, normally by comparison with some reference sample since human colour perception is well known to be more reliable for discrimination tasks

(Houstoun, 1932) than for assessment of absolute colour. This approach is attractive in representing the true process cost function (i.e. the perception of the customer), but has the disadvantages of subjectivity, limited availability of expertise (i.e. people with ``a good eye'') and a lack of quantification.

(2) Some form of colorimetric measurement may be used, which provides objective and quantitative results, but which may be expensive and is often difficult to interface to a production process.

The real need is for a flexible, cost effective, colour difference quantification system. This contribution describes the realisation of such a system and its application to a real industrial application at the premises of a domestic cooker manufacturer (Stoves Ltd). The approach relies upon the development of a processing methodology that compensates for reduced data quality by the acquisition of sufficient data to produce higher quality information using statistical methods. Of course, the colour discrimination required by such applications is fine and the issue is addressed in this contribution.

System description

Hardware

The initial development has been concerned with manufactured items that are sufficiently small for manual manipulation. Consequently it has been possible to assemble the optical components of the monitoring system within an enclosed volume (12008001500mm), The authors

K.J. Brazier, P.C. RussellandG.R. Jonesare all based at the Centre for Intelligent Monitoring Systems, Department of Electrical Engineering and Electronics, University of Liverpool, Brownlow Hill, Liverpool L69 3GJ, UK. E-mail: kbrazier@liv.ac.uk; p.c.russell@

liverpool.ac.uk; g.r.jones@liv.ac.uk

I. Shanklandis based at Stoves Ltd, Stoney Lane, Prescot, Merseyside L35 2XW, UK.

Keywords

Machine vision, Colour, Inspection

Abstract

A system is described that uses a low-cost off the shelf camera and computing components, along with software developed at the Centre for Intelligent Monitoring Systems (CIMS), to provide an economical solution to colour matching problems. It is aimed primarily at applications in which small differences between the colours of objects need to be identified. In a prototype system, tests have so far yielded favourable results in comparison with existing quality assurance, which relies on the judgement of a human expert. Colour differences between samples at the limit of human perception are repeatably detected.

Electronic access

The research register for this journal is available at

http://www.mcbup.com/research_registers/aa.asp

The current issue and full text archive of this journal is available at

http://www.emerald-library.com

Sensor Review

Volume 20 . Number 1 . 2000 . pp. 43±49

(2)

which provided sufficient isolation from variable environmental illumination while giving physical access for the tested components from one side. The enclosure interior was painted matt black to minimise stray reflections. The optical elements of the system were a CCTV camera and a lamp mounted on adjustable supports, along with the two objects to be compared. The latter were placed on a shelf inside the closed end of the enclosure through an access hatch (Figure 1).

The illumination was provided by a 20W 3200K dichroic lamp, chosen as an example of broad spectrum lighting likely to be encountered by Stoves' deployed end products. The camera was a Korea Communications Co. CA-HO38C.

The composite video output from the camera was interfaced to a PC by means of a low-cost video capture card. The increase in domestic applications requiring a video signal to be interfaced to a PC has led to the availability of numerous cards suitable for this purpose at substantially reduced costs, but with only limited signal quality.

Data capture

In addition to cost, domestic market video capture cards have the advantage that most support software control through a simple and generic interface to the MS Windows 9x operating system. Hence, reliance on

particular suppliers is avoided. Software written at CIMS implements data capture through the medium of this interface by capturing each frame as a 24-bit colour image and averaging the red, green and blue pixel values over rectangular regions set by the user.

Values were recorded for two regions of the image, one on each of two objects being compared. To allow for the erosion of data

quality by random noise, a series of values were collected for later statistical processing, the number of values collected being set by the user. As knowledge of the size of the random noise contribution across the range of colour values improves it should be possible to establish a recommendation for the user of the number of samples required to achieve a satisfactory result under particular conditions. However, for development purposes some 200 samples have proved to be satisfactory. The frame rate at which the data can be acquired was dependent on the processing rate of the PC and the image size used, but 15 frames per second was found to be

supportable on a 200MHz Pentium without difficulty.

Once a series of values had been collected, the positions of the objects were exchanged and a further series of values of similar length collected. This allows systematic errors produced by small differences in the lighting of the objects to be eliminated during the data processing stage.

Data processing

The colour parameter values stored for each frame processed were the differences between the objects (DP, whereP stands for the particular parameter) rather than their absolute values. This eliminated any spatially uniform, but time varying offset errors.

To eliminate the systematic error produced by small spatial variations in the illumination, the same differences between the objects were determined with the positions of the samples exchanged. The value measured to indicate the size of the deviation between the two samples was then the amount by which the measured difference changed on the exchange of positions. Such a change is ascribed to a difference between the chromatic reflectances of the pigments of the objects, modified errors from random noise.

To account for random errors, an equal number of values were recorded for each sample position, as described above, and limits on the amount of the change in the differential value were estimated statistically according to a confidence threshold set by the user.

The statistical procedure was based on an analysis of variance to which a double-sided t-test was applied to inform the user that, with requested confidence, the change in the chromatic parameter under consideration on

(3)

exchanging the samples was between the calculated lower limit Lland upper limit Lu. That is, the assertion

Ll 4DP Lu

where4DP is the change in the parameter difference on exchanging the samples, would, given the data values collected, be true on 100(1-) per cent of occasions. Thus, if Ll0Luit cannot be stipulated with confidence 100(1-) per cent that there is any difference in the chosen parameter for the two samples.

The principle is illustrated by Figure 2. The difference between the values of the chosen parameter for the two sample objects is plotted on the x-axis, i.e. the value for the plate in position iminus that for positionj. Because a series of values were collected, subject to noise, a plot of the values against their frequency gives some distribution, idealised as Gaussian in the figure (solid line). The plate positions were then swapped, giving another distribution. If there is no difference in the parameter values for the plates, the values at positions iandjwill be the same again and the distributions will coincide (assuming the illumination has not changed, the effects of any spatial gradients in it will cancel). If the parameter values are different, the value of the parameter at positioniminus the value of the parameter at positionjmust change (A-Bcannot equalB-AunlessA=B).

Therefore the position of the distribution of difference values changes (broken line). Hence, if we measure how far the distribution moves, we have a quantification of the effect of the difference in parameter values for the given lighting conditions. The purpose of adopting this procedure, rather than just measuring differences in parameter values with the plates in one position, is to allow the illumination differences to cancel when the plate parameters are the same. If the distribution moves only a small distance, we cannot be confident that the difference is real and not just a chance phenomenon caused by the noise. Hence we apply the t-test to evaluate the range of values in which the measurement may be said to fall with the required confidence.

Colour parameters have been quantified using the HLS (Hue, Lightness, Saturation) colour system (see e.g. Lekowitz and Herman (1993)). Preliminary tests suggested a tendency for the greatest proportion of the noise in the colour signal (i.e. before input to the system electronics) to arise in the lightness component (i.e. affecting all sensor channels equally). Thus the HLS system enabled some separation to be obtained between high and low quality data. In all calculations involving hue differences, the periodicity of this quantity is taken into account by measuring the size of the smaller angle between the hue values on the hue circle.

(4)

Testing

Test conditions

Tests were conducted using pairs of glass back-painted plates as the sample objects. The paint applied to both plates in each pair was identical, but each of the pair had been baked at different temperatures (2658C and 3108C). This is the standard procedure used to supply sample plates representing the limits of the acceptable colour range for painted glass components. It is envisaged that in regular commercial operation plates such as these would be used to provide fixed references against which the system would compare product samples. Tests were performed using dark blue and dark green plates. These were chosen as having

presented particular difficulties to the quality control operation in the past.

The camera used in the tests was fitted with a 4mm lens. Using the camera's on-board system of adjustment, white balance was set to 3200K, shutter speed to automatic, iris to on-board automatic regulation (CCD setting) and all other features were switched off. The camera and lamp positions were adjusted so that the image of the samples filled the frame and no specular reflections were visible in the image (Figure 3).

A total of 200 data values were collected for 20x20 pixel areas on each plate.

Results

Results of initial trials are shown in Table I. All tests were conducted within a few hours of each other except for a final measurement of the change in differential hue for the blue

sample plates (trial 4), which was taken 2‰ weeks later to explore any longer term drift effects. Each row in the table gives the confidence limit chosen by the user, followed by the lower and upper limits for the change in hue, saturation and lightness differences when the plate positions were exchanged. Each column gives the results for different confidence levels and different samples or repeated tests.

The results show a substantial level of self-consistency with the following general trends:

. There are changes in hue difference of

typically ±1.1 to 11.28for the blue plates and 0.075 to 0.958for the green plates.

. There are changes in saturation

difference of typically 0.071 to 0.088 for the blue plates and ±0.011 to 0.074 for the green plates.

. The changes in lightness difference for

the blue plates are typically 0.016 and 0.007 for the green plates.

Thus, for all parameters, the deviation between the blue plates (H~1.4 percent, S~4 percent of magnitude of fullscale deviation, i.e. 3608and 2, respectively) was greater than for the green (H~0.14 percent, S~1.6

percent).

It should, however, be noted that the tests were undertaken with samples having low absolute values of saturation and lightness. The implication of this is that the signal levels were close to the electronic noise level, so constituting a difficult, but often realistic, measurement situation. However, this is not dissimilar to the colour response situation of the human eye under which the expert operates, so making a comparison with subjective judgement consistent.

Discussion

To date, verification of results given in Table I has relied on comparisons with the discrimination of a professional expert employed by the product manufacturers (Stoves Ltd.) during their inspection procedures. The outcome of such an

assessment was that the expert judged there to be negligible difference between the two green plates, but that there was a significant difference between the two blue plates. Consequently, there was agreement between the expert judgement and the quantitative

(5)

results of Table I, suggesting that the

thresholds for significant differences lie in the approximate ranges 0.14%<H<1.4% and 1.6%<S<4% in the regions of colour space considered.

The only substantial inconsistency in the results was the failure to detect a change in hue difference in trial 3. However, at a lower confidence level, the inconsistency disappears and so, while there was some loss of accuracy, the results of this trial are still in broad agreement with the others. The inconsistency of the saturation results for trial 5 involves such low numbers as to be insignificant in terms of human discrimination.

Conclusions

A level of discrimination was achieved, between the reflective chromaticities of quality control samples, comparable with that of a human expert. Repeated tests on the same samples indicated that a practically useful level of consistency is obtainable. These results show that the combination of difference measurements with a statistical approach in a camera based system is a viable solution to the need for quantitative colour comparison at low cost.

For the particular samples used in the tests, it was shown that there is a substantial difference in hue between the blue sample plates and a smaller difference between the hues of the green plates, when viewed under the illumination

described. Differences in saturation and lightness were of a size that is not believed to be significant for the Stoves application.

Future developments will need to take account of the following:

. A wider range of sample colours and

geometries need to be explored.

. A range of different, but commonly

encountered, light sources will need to be investigated to establish the breadth of applicability of the approach.

. Further tests with human experts need to

be undertaken to define the boundaries of acceptable disparities.

. Verification is needed by comparison with

conventional colorimetric instrumentation.

. Colour constancy algorithms, currently

under development at CIMS, should remove the need to exchange the samples' positions and allow sequential

significance tests to determine the number of data values to be collected for each comparison.

In parallel with the work reported here, other colour camera based monitoring applications are being implemented at the Centre for Intelligent Monitoring Systems (CIMS). These include the monitoring of temperature

distributions (Desai, 1997), neonatal toxin levels (Tomtsis, 1999) and industrial process variables (Russellet al., 1994, 1996). A number of generic colour monitoring developments will also be applicable to these projects.

Table ICalculated limits on change in colour parameter differences

Sample plates

Confidence interval (%)

Caluculated limits on4DH…Li;Lu†,8

Calculated limits on4DS…Li;Lu†

Calculated limits on4DL…Ll;Lu†

Blue Trial 1 75 ±7.7, ±5.3 0.077, 0.082 0.015, 0.016

95 ±8.5, ±4.5 0.075, 0.083 0.015, 0.016

99 ±9.1, ±3.9 0.073, 0.085 0.015, 0.017

99.9 ±9.8, ±3.2 0.072, 0.086 0.015, 0.017

Trial 2 (repeat of 1) 75 ±9.0, ±5.5 0.074, 0.079 0.014, 0.015

99 ±11.2, ±3.3 0.071, 0.082 0.014, 0.015

Trial 3 (plate positions 75 1.4, 5.3 ±0.085, ±0.080 ±0.012, ±0.012

in reverse sequence) 99 ±1.1, 7.8 ±0.088, ±0.077 ±0.013, ±0.011

Trial 4 (repeat of 1 after 2‰ week interval)

99 ±7.4, ±5.1

Green Trial 5 75 ±0.73, ±0.37 ±0.0058, 0.0023 ±0.0070, ±0.0063

99 ±0.95, ±0.15 ±0.011, 0.074 ±0.0075, ±0.0058

Trial 6 (repeat of 5) 75 ±0.69, ±0.36 0.016, 0.024 ±0.0070, ±0.0064

99 ±0.90, ±0.15 0.012, 0.030 ±0.0075, ±0.059

Trial 7 (plate positions 75 0.28, 0.62 ±0.012, ±0.0049 0.0070, 0.0076

(6)

References

Desai, S. (1997), ``Remote chromatic monitoring system'', MSc Thesis, University of Liverpool.

Houstoun, R.A. (1932),Vision and Colour Vision, Longmans, Green and Co. Ltd., London. Levkowitz, H. and Herman, G.T. (1993), ``GLHS: a

generalised lightness, hue and saturation colour model'',Graph. Models Image Proc., Vol. 55 No. 4, pp. 271-85.

Russell, P.C., Spencer, J.W. and Jones, G.R. (1998), ``Optical fibre sensing for intelligent monitoring using chromatic methodologies'',Sensor Review, Vol. 18 No. 1, pp. 44-8.

Russell, P.C., Alston, D., Smith, R.V., Jones, G.R. and Huggett, P. (1996), ``On-line fibre optic based inspection using chromatic modulation for semiconductor materials processing'',Nondestr. Test. Eval., Vol. 12, pp. 379-89.

Russell, P.C., Khandaker, I., Glavas, E., Alston, D., Smith, R.V. and Jones, G.R. (1994), ``Chromatic monitoring for the processing of materials with plasmas'',IEE Proc. ± Sci. Meas. Technol., Vol. 141 No. 2, pp. 99-104.

Tomtsis, D. (1999), ``Intelligent remote monitoring with chromatic modulation'', PhD Thesis, University of Liverpool.

Appendix: System resolution

The differences in colour parameter values that the system was able to resolve are considered. Figure A1 shows hypothetical frequency distributions of results as a function ofPiÿPj (see Figure 2) with confidence

limits on the separation of the distribution means,LlandLu, superimposed. Each figure corresponds to a different degree of similarity between the data set means.

IfLlˆ ÿLu, the means of the distributions are identical (Figure A1a). The condition Llˆ ÿLu is used rather thanLlˆLuˆ0 since the distributions may exhibit different spreads about the mean.

Figures A1b-d show howLl andLuvary as the twoPiÿPjdistributions become

increasingly different. The difference in colour parameter values remains

indistinguishable as long asLl<0 andLu>0 (Figure A1b). The threshold of

discrimination between the parameter values is reached whenLlˆ0 (or, for an opposite sense displacement,Luˆ0) (Figure A1c). OnceLl andLuare both positive (or both negative), the parameter values are

distinguishable with the required confidence (Figure A1d). Clearly, if a lower level of confidence were acceptable (causing the endpoints of the confidence limits to move closer to their respective means) the threshold of discrimination would be reached sooner. This illustrates the trade-off between the required confidence and resolution.

The separation between the means determined in the experiments may be estimated from the values ofLlandLuif equal width distributions are assumed. The

(7)

resolution threshold on4DP is then equal to the width of the confidence interval for one of the distributions

4DPt LuÿLl

2 …1†

Experimental separation of the means is then

4DP LuÿLl

2 ‡Ll

ˆLu‡Ll 2

…2†

If it is further assumed that the parameter valuesPi andPj respond linearly to differences in the illumination, then

DP ˆPiˆ1ÿPjˆ2ˆ ÿ…P1ˆ2ÿPjˆ1†

i.e. the differenceDP in the parameter values before exchanging the plate positions is equal to minus the difference after the exchange of positions. The size of the change in DP, is therefore

4DP ˆDPÿ …ÿDP† ˆ2DP

So

DP ˆ 4DP

2

ˆLu‡Ll 4

Application of the same assumptions to the threshold value of equation (1) gives a

threshold separation of

DPt LuÿLl

4 …3†

The results from the tests in Table I, when inserted in equation (2) give, for the hue parameter, separations and resolvable separation values of the order of 3.38for the blue plates and 0.268for the green plates. Equation (3) gives resolution thresholds of the order of 1.28for the blue plates and 0.148 for the green plates.

Referensi

Dokumen terkait

Penyusunan Rencana Kegiatan Bidang Rehabilitasi Lahan dan Perhutanan Sosial Di Wilayah Kerja BPDAS

Tujuan penelitian ini adalah mendapatkan data dan informasi perubahan curah hujan, suhu dan tipe iklim serta menelusuri dampaknya terhadap ekosistem hutan di Pulau Lombok,

Pekerjaan Pengadaan Kendaraan Mobil Dinas pada Balai Besar Pendidikan dan. Pelatihan Ekspor Indonesia Kementerian Perdagangan

Berdasarkan Surat Penetapan Pemenang No.08/POKJA-ULP II/BRG/PSTW/8/2015 tanggal 05 Agustus 2015 bahwa Pekerjaan Pengadaan Perangkat Pengolah Data dan Komunikasi Panti Sosial Tresna

Pada hari ini Kamis tanggal Dua belas bulan Mei tahun Dua ribu enam belas, kami Pokja Pengadaan Barang BBRVBD Cibinong ULP Kementerian Sosial RI sehubungan

[r]

Formulir RKAP SKPD RINGKASAN RENCANA KERJA ANGGARAN PERUBAHAN.. SATUAN KERJA

 Guru membagi siswa kedalam beberapa kelompok yang terdiri dari siswa yang mampu, menengah dan kurang mampu (berdasarkan pengamatan guru), masing-masing kelompok diminta