Académique Documents
Professionnel Documents
Culture Documents
η1 (t ) = η 2 (t ) = f ≥t
i
> σ X2
N1 , N2 Y
where fi is the histogram value for the i level in the
original image. The cross entropy between both images e d g e p o in ts
can be computed as: Y
f f
η (t ) = ∑ f i log i + ∑ f i log i
f i <t η1 (t ) fi ≥t η 2 (t )
[y ]
computed and a difference map is constructed when this
− S (b ⋅ xi + a ⋅ yi ) − dy
r 2
i distance is greater or equal than one given threshold. This
method does not consider the introduced ‘false
Deriving E with respect to a, b, dx, and dy and equaling differences’, due to several circumstances, like size
to zero, the following linear system of equations appears: differences, induced by tolerances during the
manufacturing or changing ambient conditions during the
∑ (xi 2 + yi 2 ) 0 ∑ x ∑ y
i i ∑(xi r xi + yi r yi ) acquisition process. The interpolation techniques used for
i a i registering can also introduce pixel and/or sub pixel
∑(x + y ) − ∑y ∑x b ∑( yi xi − xi yi )
i i
0 i
2
i
2
i i
r r
differences. In order to overcome this problem, one pixel
i i i = i
∑ xi −∑y i n 0 dx ∑ xi r to area technique has been used. This consist of compare
i i i de test pixel with its corresponding area at the reference
∑ yi ∑x i 0 n
d y
∑ yi r
i i i
image. This area is a 3x3 window established around the
reference pixel. If the minimum distance, computed with
from which the optimal parameters of the geometrical all pixels belonging to the reference window, is greater or
transformation can be obtained. This approach saves a equal than a threshold ∆ELab, the test pixel is considered a
‘real difference’.
{ }
great deal of computing time as it directly calculates the
exact inverse transformation. 1 ∆E (i, j ) = min ∆E i j ≥ ∆E Lab
t= j∈ W
0 other case
3. DIFFERENCE MAP COMPUTATION where t(x,y) is the difference image, i(x,y) the test image,
j(x,y) is the reference image and W is a 3x3 window.
Once the images have been registered, a difference map
has to be extracted comparing both images. Two Figure 4 shows the differences map obtained in both
questions arise: grey level vs. colour based comparison, cases.
and pixel to pixel vs. pixel to area comparison.
eliminates those objects accomplishing the following
conditions:
• Size filter: Area < 10 pixels (about 0.5 mm2).
• Elongation filter: PerimeterVSArea >= 0.65 and
elongation < 0.2 and no pixels touching the piece
boundary.
• Lateral effect filter: PerimeterVSArea > 0.98 and
pixels touching the piece boundary.
The size filter is needed to remove small objects due to
the noise introduced in the acquisition and registration
stages and also small defects that humans can not clearly
distinguish. Tiny displacements of the silk-screening
masks produces very thin and elongated lines in the
difference map which are not considered as defect by the
factory experts. These objects are eliminated by the
elongation filter. Finally the lateral effect filter permits to
eliminate very elongated lines located at the piece sides,
therefore these objects are produced in the registration
stage due to the tiny size variations between different
pieces. Figure 5 shows the result of applying these filters.
This simple and effective rule-based classifier is enough Figure 6. Mean noticeable colour differences obtained in eight
regions of CIELab and CIELuv colour spaces.
to categorizing the defects. A subsequent counting
process can be employed to detect defect series.
It is remarkable the better human sensitivity to green
colours but, in general, there were not colours gamut
6. EXPERIMENTS AND RESULTS where minimum noticeable colour differences higher than
2 appears. These result confirm us the initial guest value
Several experiments were carried out to tune the of 2,3 for the generation of colour difference maps.
parameters involved in the algorithms and to obtain the
global performance in laboratory conditions. The next experiments try to obtain the goodness of the
proposed methodology under real conditions. For this
The first experiment tried to obtain the minimum purpose, a laboratory prototype was developed. The
perceptive difference between two colours in CIELab and prototype is composed by two main parts: the acquisition
CIELuv spaces, needed to compute the difference map module and the processing module (see figure 7). The
between reference and test tile images. It is known that acquisition module contains a colour line scan camera
CIE spaces are isotropic, even though from the point of (Dalsa Trillium), two presence photocells and a high
view of colour differences they are not completely frequency advanced fluorescent illumination system
uniform. It has been reported [5] that noticeable which assures an uniform lighting of the pieces. All these
differences between similar colours lightly change in elements are included in a dark cabin that isolates the
different regions of the colour space. However, as a piece that is been imaged from the external ambient
general rule for the CIELab space, ∆ELab differences of conditions. The processing module is composed by a
about 2,3 or greater are noticeable and those over 10 are cluster of four industrial processor boards connected
so different that comparison is not worthwhile. Then, an using a Fast Ethernet network. This module is intended to
initial value of 2,3 should be a good selection in our case. analyse all the pieces in the production line in real-time.
CABIN 7. CONCLUSIONS
An automated tile inspection system has been presented.
The proposed methodology to perform surface defect
COLOR LINE detection on fixed pattern ceramic tiles has been detailed,
LLS SCAN CAMERA including the registration, difference map, feature
CE (Trillium)
TO
P HO extraction and classification stages.
2
1
The global performance of the inspection process is about
100% of defect detection and near 99% of success in
LAMPS defect classification. Some degree of misclassification has
TILE High Frec. been introduced when, for example, spot defects located
CONVEYOR TILE
INPUT Fluorescent at the boundary of the piece were initially labelled as an
BELTS
integrity defect. These misclassifications are not
LIGHTS important from the point of view of the production
ALARM
process, where what is important is defect detection. From
this point of view, all the defects were correctly detected
during the difference map computation and most of false
POSITIONING defects were properly eliminated. These preliminary
DEVICE
ENCODER results can’t be extrapolated due the reduced number of
pieces and tile models used in the experiments. However,
the proposed methodology seems to be appropriate for the
problem of tile inspection in intermediate production
stages. Further works can be attained to improve the
system by adding new capacities for defect detection,
including tonality defects in the colours of tile model.
Figure 7. Elements of the Tile Inspection prototype. (Up) Acquisition
module details. (Down) Processing module and auxiliary devices. REFERENCES
Using the prototype an image dataset was constructed, [1] Boukouvalas, C.; Kittler, J.; Marik, R. and Petrou, M.
composed by nine tile models representative of the ”Color grading of randomly textured ceramic tiles using
factory production. For every tile model, three series of color histograms”. IEEE Trans. On Industrial Electronics.
50 pieces with integrity, silk-screening and spot defects Vol. 46, No. 1, 1999, pp. 219-226.
and a set of 10 fault-free pieces were imaged. These [2] Lumbreras, F.; Baldrich, R. et al. “Multiresolution
pieces were initially labelled by experimented human colour texture representations for tile classification”. Proc.
operators. The dataset was arbitrarily divided into training VII Nat. Symp. on Pattern Recognition and Image
and test sets (30%-70%). Analysis Vol. 1, Spain 1997, pp.145-152.
[3] Baldrich, R.; Vanrell, M. and Villanueva, J.J.
A first experiment was carried out to probe the feasibility “Texture-colour features for tile classification”.
of the registering and error map stages using the dataset. EUROPTO Conf. on Polarization and Colour Techniques
The results showed that 100% of real defects were in Ind. Inspection. SPIE Vol. 3826, 1999, pp. 124-135.
detected, but with some false defects not filtered out. [4] Smith, M.L. and Stamp, R.J. “Automated inspection
These false defects are not repeated in the tiles that of textured ceramic tiles”. Computers in Industry. Ed.
compose the series and can be removed in a post- Elsevier, Vol. 43, 2000, pp. 73-82.
processing stage. [5] Costa, C.E. and Petrou M., Automatic registration of
ceramic tiles for the purpose of fault detection, Machine
A second experiment was made with the goal of defining Vision and Applications, 2000, vol. 11, 225-230.
the thresholds values TI, TS and TM proposed in the [6] Valiente J.M.; López; F.; Acebrón, F. and Pérez E.,
classifier and compute the success rate of this stage. Due An Image Registration Method for Ceramic Tile
the simplicity of the proposed rule-based classification Inspection Purposes. Proc. of the 2001 Int. Conf. Quality
scheme, there was not necessary to make complex Control by Artificial Vision, France 2001.Vol. 2,.498-503.
computations. Only a simple selection of the minimum [7] Li,C.H. and Lee, C.K., Minimum cross entropy thres-
value to correctly classify all the training set was holding, Pattern Recognition, 1993, vol. 26(4), 617-625.
computed. Surprisingly, the value of TI, TS and TM = 0,4 [8] Stephen J. & Robin E.N., colour image processing
was appropriate for all thresholds. Afterwards, the handbook, Ed. Chapman & Hall, 1998
classification of the test set was accomplished, yielding a [9] Mahy M.L., Van Eyckdenm A., Oosterlinck,
result near to 99% of success (1% of false detection and Evaluation of Uniform Color Spaces developed after the
misclassification). Adoption of CIELAB and CIELUV, Color Research and
Appl., vol 19(2), 1994, 105-121.