Sunteți pe pagina 1din 6

SICE Annual Conference 2011

September 13-18, 2011, Waseda University, Tokyo, Japan

An Image Inspection Method for Car Brake Parts


Yutaro KOYA, Yue BAO
Faculty of Knowledge Engineering, Tokyo City University, Setagaya-ku, Tokyo
(E-mail: yk85_tsubata@yahoo.co.jp)

Abstract: In order to increase productivity and efficiency, the components factory for car manufacture needs an automatic flaw detecting system by
using image processing. The conventional method could inspect flaw of a metal surface with the tiny ruggedness and the dirt which remained in the
washing process. The result of a long-term test proved parts with which the inside of a flaw is dark because of decline in the reflectivity of the surface
where time has passed or accumulation of dirt existed, and the conventional method was difficult to detect the flaw of such parts. This study proposes
the automatic flaw detecting method which can detect those flaws by adding a new procedure to the process which used the rate of the luminance of
the conventional method. By the experimental results, it was confirmed that the flaws of defective parts used as the inspecting standard can be
extracted certainly.

Key Words: metal parts, flaw detection, image processing, divided region, difference of luminance, ratio of luminance

1. INTRODUCTION polishing. Moreover, the proposal method can respond


also to a complicated flaw configuration flexibly by
When producing a product at a factory, some of made judging after connecting a flaw block. However, as a
products are defectives. Therefore, it is necessary to result of carrying out a long-term test, it turned out that
distinguish an excellent article and a defective at the dirt is accumulated in the base of a flaw by the time
process of inspection. If the metallic joint parts of the parts move to an inspection location from input port.
brake hose of the car [1] which is the target of this study However, the result of a long-term test proved that the
have a flaw in the surface, they are made into the parts with which the reflectivity of the surface where
defective. This inspection was carried out by the visual time passed fell, and the parts which dirt accumulated in
inspection by man so far. However, the inspection by the base of a flaw when parts moved to the location
man produces individual difference in a criterion of which conducts inspection from input port existed. If
judgement. As a result, since the number to be examined flaw detection was performed to the flaw with a flat
is huge, if human being inspects, an inspector's fatigue base in this condition, the flaw will have been
will collect by a long activity. Therefore, the incorrect recognized as dirt. Therefore, this approach might be
judging by careless mistake occurs because of the unable to detect a flaw.
fatigue. Therefore, automation of inspection by an Then, this paper proposes the method which
image processing is advanced. improved the conventional method which uses a flaw
As an inspection method of the metal parts by an block. This method distinguishes a flaw and dirt more
image processing, various methods are proposed in the clearly and extracts the flaw of parts certainly. By the
past. For example, the method of performing edge experiment which uses a prototype system, we
extraction to a depth map[2], the magnetic powder confirmed that the proposal approach was able to extract
method[3], the method of carrying out binarization of certainly the flaw of parts, without being influenced by
the photographed image[4], the method using change of the reflective degree of the dirt adhering to
Model-based Matching by a field-band model[5][6], the parts, or the light under the effect of polishing.
method which used the density difference between the
areas which divided the inspection surface at equal 2. EXAMINATION TARGET AND
intervals[7]. However, brake hose joint metal parts have PHOTOGRAPHY METHOD
two or more flaws and shallow flaws of a type which
were called indentation, dent, and abrasion, and there The appearance of the parts used as a subject of
are the feature of having tiny irregularity and dirt on the inspection is shown in Fig.1(a). These parts are called
surface. Therefore, any approach was difficult to detect "MEDAMA" in the production site. Metallic joint parts
the flaw of brake hose joint metal parts. of the brake hose consist of MEDAMA,sockets, and
In order to solve these problems, we have proposed nipples. If this part is assembled, it will become like
the flaw detecting method on the surface of metal parts
which uses a gray scale image[8]. First, this method
divides the surface of parts into a block at equal
intervals, then extracts a flaw block, connects a flaw
block, and judges a flaw. This method examines the
luminance difference and distribution of the pixel value
in a flaw block. So, the proposal method can extract a
flaw block, without being influenced by the dirt which (a) Appearance (b) The finished product
adhered on the surface of parts, and the part from which Fig. 1 The parts to be inspected
surface reflectivity is changing with the conditions of

- 37 - PR0001/11/0000-0037 ¥400 © 2011 SICE


Input image from the camera The data of the pixel
acquisition range
Gray-scaling

Noise-smoothing

(a) Flaw piercing through (b) Large flaw


metal parts Division of block

Fig. 2 The flaw handled as defectives


Extraction of the flaw block candidates by the difference in
the luminance value in the divided blocks. (Process 1)

Decision of the flaw block by the distribution of the pixels in


the flaw block candidates. (Process 2)

Extraction of the flaw region candidate by the connection of


Fig. 3 The flaw handled as quality goods
the flaw blocks. (Process 3)

Fig.1(b). Both sides of a circular field of the MEDAMA


Decision of the flaw by area of black pixels in the flaw region
parts shown by Fig1 (a) are the objects of flaw detection.
candidate (Process 4)
In case parts are actually used, oil passes along the hole
of the center of MEDAMA parts. Therefore, if parts are
used in the condition that a flaw exists in this surface Decision of the flaw by concentration of black pixel in the
section, it will become the cause by which oil leakage flaw region candidate (Process 5)
occurs. As a result, since a poor brake is caused, you
have to avoid mixing of defective. No
Fig.2 is a part of defective sample used as the Is there the flaw?
inspection standard which the factory offered. These
defective samples are defined as the standard of a flaw Yes
by visual inspection. The type of flaw of defective has
two types like Fig.2. One is parts (a) with the flaw Sending the part to side Sending the part to
which has pierced the outside from the inner side, and of defective parts side of good parts
another is parts (b) with the flaw in which an area is Fig. 4 The flow chart of the flaw detection
large. On the other hand, you have to distinguish a small
flaw like Fig.3 which do not correspond to defective
samples as an excellent article.

3. PROPOSAL METHOD

The flow of the whole image processing of the flaw


detection by the proposal method is shown in Fig.4. The One divided block
image photographed with the camera is changed into
Fig. 5 The method of dividing area for detecting
gray scale as preconditioning. And the noise of an image
is removed using smoothing. In case an image
processing is performed, pixel information is got only method. The judgment of a flaw including this process
from the circular portion of the surface of parts, and the consists of the following five processes.
surface is divided into a block. The configuration of a
block is divided into the radiation direction and 3.1 Extraction of the flaw block by the difference of a
circumference direction of a circle from a center like luminance value
Fig.5. Inspection is carried out after fixing the The difference of the luminance value in the
inspection range in the range decided beforehand. Parts boundary of a part where a flaw exists is calculated, and
to be examined have the parts with which time has a flaw block is detected by using a dynamic threshold
passed, and the parts which dirt accumulated in the flaw. value. This avoids the effect of change of the reflective
If the conventional method is applied to those parts, a degree for every parts.
flaw will be recognized as a part with bad reflectivity First, the difference between maximum and the
under the effect of dirt etc. Therefore, the conventional minimum of the luminance value in a block is
method was not able to detect the flaw of those calculated for every block, and if the value is over the
conditions. Then, when inspecting the concentration of threshold, it will be judged that it is a flaw block. When
the black pixel in flaw block combination, the process the average of the luminance value in a block is defined
of adding adjustment was added to the conventional as μ , standard deviation is defined as σ and the

- 38 -
The block judged as a flaw

The condition of the Blocks are considered as a


blocks in the image binary image which composes
of flaw block and block
Fig. 6 The parts with short flaws without a flaw

threshold for performing a flaw judging is defined as 1


1 1 1 2
t d , t d is calculated from a equation (1). 1
1
1

td = μ + σ (1) The labeling processing is carried out in the block, and the
decision using the connectivity number is carried out
3.2 The judgment of the flaw block by the black pixel Fig. 7 The procedure of the decision using the region area
in a flaw block
In the surface of parts, irregularity and a noise (fine
dirt and luminance change) may exist.
Or the short shallow flaw which has not pierced parts
like Fig.6 may exist. If flaw detection using the
difference of a luminance value is performed to the
image of the parts with which these exist, the flaw block (a) The case of large flaw (b) The case of the gathering
of those other than the flaw which should be detected of the small flaws
will also be extracted. The flaw of these types is Fig.8 The example of the large flaw and the aggregate of
excepted from the judgment of a flaw using the small flaws
following methods.
First, the minimum of the luminance value in a block
is calculated about all flaw block candidates. The combination is judged to be a flaw. The 1st condition is
maximum value of those values is set as the threshold that the block count more than fixed numbers (threshold
t p of a black pixel. The pixel with the luminance value value t 2 ) has connected. The 2nd condition is that the
below a threshold is treated as a black pixel which exists block more than fixed numbers (threshold value t3 ) has
in a flaw part. And the rate of the pixel of the luminance connected in the radiation direction from the parts
value below the threshold t p in each block is center.
calculated about all blocks. If the rate of the pixel in a
3.4 The flaw judging by the black pixel area in flaw
block is larger than a definite value (threshold value t1 ), block combination
the block will be judged to be a flaw block. Otherwise, If the black pixel in flaw block combination is inspected,
the block is judged to be the block without a flaw. two kinds of flaws exist. One is an original flaw and its
lump area is large like Fig.8(a). Another is the flaw in
3.3 Extraction of the flaw block connection by the which an excellent article judging is possible, and its
number of connection lump area is small like Fig.8(b). Then, in order to
In order to judge the area, the direction, and length of distinguish the aggregation of a fine flaw, and an
a flaw, combination of a flaw block is used for a original flaw, a flaw judging is performed by inspecting
judgment. Procedure is shown in Fig.7. about the size of the black pixel lump in the extracted
First, each block is treated as a binary format image flaw block combination. A labeling process is performed
which consists of a block with a flaw and a block about the black pixel in each flaw block combination.
without a flaw. Labeling processing of eight directions And if the maximum connectivity number is below
about a block is performed to the block with a flaw, and threshold value t 4 decided on beforehand, it will
the number of connection of each label is counted. If
judge that the inside of flaw block combination is the
there is a group of the block with the large number of
aggregate of a fine flaw, and the flaw block combination
connection, the group will be judged to be flaw block
will be excepted from the judgment of a flaw.
connection. In this case, the standard judged to be a flaw
is an area. However, in the case of these parts, even if
3.5 The flaw judging by the black pixel
the flaw which has pierced parts is small, there is a
concentration in flaw block combination
possibility of influencing the performance of a brake.
Even if the lump of the black pixel in flaw block
Therefore, the criterion of two flaws is set to a condition,
combination is large, the reason for occurrence may be
and when both of conditions are fulfilled, the block
change of the reflective rate of light by the effect of dirt

- 39 -
(a) The flaw (b) The bad reflectivity
The flaw The flaw in which dirt
accumulated
Fig. 10 The inside of the equipment

There are most


gray pixels
(c) The flaw in which dirt accumulated
Fig.9 The part with flaws and the part with bad reflectivity
Remove from
calculation
or polishing. Then, in order to distinguish these and an
original flaw, the concentration value of the black pixel Fig.11 The method of the adjustment in concentration
in flaw block combination is inspected. value calculation
In the case of the original flaw, many dark black
pixels exist in flaw block combination like Fig.9(a). On of light black is partly extracted from a top like Fig.11.
the other hand, when it is the effect of dirt or polishing, And the pixel information of those blocks is excepted
many light black pixels exist in flaw block combination from calculation of a rate. The number of the blocks to
except defines any value.
like Fig.9(b). Here, threshold value tb of dark black is If the judgment which included this adjustment in
calculated by a equation (2) using the black pixel each parts shown in Fig.9 is applied, a judgment will
threshold value calculated by the equation (1). bring a result shown below. When parts other than a
tb = t d × α (2) flaw are bright like Fig.9(a), the pixel distribution in the
corresponding block has the high ratio of a dark pixel in
α in a equation is a weight coefficient.
all blocks. Therefore, since the ratio of the dark pixel in
About each flaw block combination, the total of a block combination maintains a high value even if
black pixel darker than t d of a equation (1) and the adjustment excepts a block, block combination is
number of pixels darker than tb of a equation (2) are recognized as a flaw. When dirt has adhered like
Fig.9(b), the pixel distribution in the corresponding
inspected. If the ratio of a pixel darker than tb is lower block has the low ratio of a dark pixel in all blocks.
Therefore, the ratio of the dark pixel in block
than a definite value (threshold value t5 ), the flaw
combination maintains a low value even if adjustment
block combination will judge that it was detected under excepts a block. As a result, block combination is
the effect of dirt or polishing, and the flaw block recognized as dirt and excepted from a flaw judging.
combination will be excepted from the judgment of a When dirt was being accumulated in the flaw like
flaw. Fig.9(c) and not having been corrected, the pixel
However, as for the flaw of a configuration with a flat distribution in the corresponding block had the low ratio
base like Fig.9(a), a bottom may be covered with dirt of a dark pixel. Therefore, block combination may have
like Fig.9(c). If a judgment is applied to a flaw after dirt been recognized as dirt. Then, if some blocks are
has collected like Fig.9(c), the flaw will be recognized excepted from block combination, the ratio of the dark
as a bad reflectivity like Fig.9(b). As a result, an pixel as the whole will become high. Therefore, the flaw
incorrect judging is performed like Fig.10. Here, we shown in Fig.9(c) can be recognized correctly. So,
considered pixel distribution of these parts. When the proposal method can tell clearly a part with bad surface
bottom of a flaw is covered with dirt, the pixel of the reflectivity from a flaw.
edge part of a flaw consists of dark black pixels, and the
pixel of the other part consists of light black pixels. In 4. EXPERIMENT
the case of the dirt which has adhered to the location
which is not a flaw on the other hand, the pixel of all 4.1 Prototype system
parts consists of pixels of light black. Then, using this The appearance of the device inside a prototype system
feature, in case the rate of the pixel near black is is shown in Fig.12, and architecture is shown in Fig.13.
calculated, the adjustment for clarifying those The flow of an action of a system is as follows. Parts
differences is performed. And after correcting, flaw enter from the upper part of an inspection system and
block combination is judged. the stopper of an upper case stops parts. After inspection
First of all, before calculating the rate of the pixel of and movement of front parts finish, the stopper of an
dark black, the number of the pixels of the light black in upper case opens and parts move to the location which
each block is counted. Then, the block with many pixels takes a photograph. The image of parts is photographed

- 40 -
Table 1 The specification of the experimental system
Windows XP
OS
Professional
Intel Core2 Duo E6850
CPU
3.00GHz
Memory 2GB
The resolution of the
800×600pixel
camera
Diaphragm F=2.5
The intensity of an
electric current run in the 190mA
light source of LED
Fig. 12 The inside of the equipment

attached in the interior of the apparatus of a shaded state


in order to prevent the effect of outside lightness.
The inspection range inputs a value beforehand
Photographic
PC
system
before inspection using sample parts. And, the
inspection range is set as the always same range during
Stopper inspection.

4.2 Decision of a division parameter and a threshold


Sequencer Conforming
value
article We calculated the threshold value of flaw detection in
Defective the experiment using 50 defective samples and 50
Fig. 13 System constitution excellent article samples used as the inspection standard
which the factory offered. A threshold value needs to be
Metal parts
set up so that the proposal method can judge an
excellent article sample and a defective sample
Light source Half mirror altogether correctly. Moreover, when two or more flaws
(LED) exist in a defective sample, a threshold value needs to
Convex be set up so that the proposal method can recognize
lens each flaw altogether correctly. For those reasons, the
experiment was conducted repeatedly, adjusting the
number of partitions and a threshold value. From the
result of an experiment, the division interval of the
Camera radiation direction was every 2 times, division of a
Fig. 14 The placement of the photography system circumference direction was six division, α was 0.3,
the number of exceptions of a block was 1, and the
with a photography system and the data is sent to PC. values from t1 to t 5 were 0.035, 7, 5, 250, and 0.55,
Then, the existence of a flaw is judged by the method of
3. The stopper of the lower stage is moved in the respectively.
suitable direction by a sequencer based on a judged However, since there is individual specificity in the
result. Then, the stopper of the middle is opened and reflective rate of the light in the surface of parts, the
parts are sent to the following process in consideration value of t b may become large too much. At this time,
of the existence of a flaw. the experiment showed that the luminance value of the
Arrangement of each device of a photography system black pixel of a flaw part was 35 or less. Then, when
is shown in Fig.14, and a specification is shown in t b became larger than 35, t b was set to 35.
Table1. Fig. 14 expresses the field of one side and the
same device is arranged also in the field of the opposite The image of the result of having applied the
side. Since tiny irregularity exists in the surface, proposal method to the parts of the image of Fig.9 is
MEDAMA parts need to illuminate the surface shown in Fig.15. When bright in the base of a flaw, or
uniformly. Therefore, the light irradiated to parts uses a when the reflectivity of the base of a flaw is bad, the
parallel light. In order to obtain a parallel beam, a light proposal method has recognized the flaw. Moreover, the
source uses LED and a convex lens is arranged in front proposal method has been correctly recognized about
of a light source. Moreover, in order to take a the part with bad reflectivity with dirt etc.
photograph from the front of metal parts, applying light
uniformly to the front of metal parts, the half mirror was 4.3 The experiment in a site
installed between a camera and parts, and since light In order to confirm the flaw detection precision of the
source light was reflected by the half mirror, light was proposal method, we actually detected the flaw of parts
irradiated to parts. Moreover, the photography system is using the prototype system. We conducted the

- 41 -
brake hose, this paper built the amelioration system.
The proposal method corrects by concentration value
calculation in the flaw decision processing by the
concentration of the black pixel in flaw block
combination. So, the proposal method can extract a flaw,
without receiving the effect by decline in the reflectivity
of the surface where time passed and the effect by
accumulation of dirt. As a result, the precision of flaw
inspection of the metallic joint parts of the brake hose
by an image processing was able to be raised more.
Moreover, the parameter and threshold value of the
proposal method were experimentally calculated in the
production site using the defective sample and excellent
(a) The flaw article sample used as a standard. By this method, the
value with suitable parameter and threshold value were
able to be calculated, and the practical system suitable
for the actual condition of a production site has been
built. A future subject is verification of whether the
inspection system has a practical precision by
performing a long-term test.

REFERENCES

[1] Japanese Standard Association, "JIS Handbook


18-2", pp.1810-1811, Japanese Standard Association,
2008
(b) The bad reflectivity [2] Y. Suga, "Appearance Inspection System of a Weld
Zone by Binoculus Stereoscopic Vision", Image
laboratory, vol.10, No.10, pp.1-4, 1999
[3] T. Someji, "Automatic inspection of casting injury
defects using image processing", Image laboratory,
vol.10, No.7, pp.10-14, 1999
[4] N. Katafuchi, M. Sano, S. Ohara, M. Okudaira, "A
Threshold Selection Method Based on the Variance of
the Largest Connected Region in Difference Image",
PROCEEDING OF THE 1997 IEICE GENERAL
CONFERENCE, pp.320, 1997
[5] M. Miura, M. Minami, M.Sakaguchi, "Image
Recognition of the Minute Damage on Metal Surface",
(c) The flaw in which dirt accumulated
JSME annual meeting IV(01-1), pp.219-220, 2001
[6] M. Minami, J. Zhu, M. Miura, Y. Mae, "Finding and
Fig. 15 The result of a detection experiment
Quantitative Evaluation of Minute Bruise on Metal
Surface Using Hairline", Transactions of the Japan
inspection experiment using the defective sample Society of Mechanical Engineers. C, vol. 72, No. 719,
submitted from the factory. Various parameters and a pp.2240-2247, 2006.
threshold value used the value calculated by 4.2. As a [7] K. Terada, "Display Method for Defect Inspection
result of the experiment, the trial production system was Using Image Processor", Published patent application,
able to judge all the samples correctly. And the trial 2006-078380.
production system was able to judge correctly the [8] Y. Bao, Y. Koya, "Metal Parts Surface Inspection
sample which has a flaw with the flat bottom. In order Using Luminance Information of Division Blocks",
to check the practicality of the proposal method now, we SICE Trans. on Industrial Application, vol.9, No.15,
arrange an inspection system on a product line, and are pp.108-114, 2010
going to perform the long-term test which inspects
indiscriminately parts.

5. CONCLUSION

Based on the result of the long-term test of the flaw


inspecting method of the metallic joint parts of the

- 42 -

S-ar putea să vă placă și