05.06.2013 Views

Automated Inspection of Defects in Glass by proper Color space ...

Automated Inspection of Defects in Glass by proper Color space ...

Automated Inspection of Defects in Glass by proper Color space ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Automated</strong> <strong>Inspection</strong> <strong>of</strong> <strong>Defects</strong> <strong>in</strong> <strong>Glass</strong> <strong>by</strong> <strong>proper</strong> <strong>Color</strong> <strong>space</strong> selection and<br />

Segmentation Technique <strong>of</strong> Digital Image process<strong>in</strong>g<br />

Nishu #1<br />

#1 ME ECE Student, UIET<br />

Panjab University, Chandigarh, India<br />

nishu.31187@gmail.com<br />

Abstract<br />

<strong>Glass</strong> defects which result <strong>in</strong>to poor quality are a major<br />

reason <strong>of</strong> embarrassment for manufacturers. It is an<br />

extremely tedious process to manually <strong>in</strong>spect very large<br />

size glasses. The manual <strong>in</strong>spection process is slow, timeconsum<strong>in</strong>g<br />

and prone to human error. Automatic <strong>in</strong>spection<br />

systems us<strong>in</strong>g image process<strong>in</strong>g can overcome many <strong>of</strong><br />

these disadvantages and <strong>of</strong>fer manufacturers an<br />

opportunity to significantly improve quality and reduce<br />

costs.<br />

In this paper we propose an evaluation system for detection<br />

<strong>of</strong> various glass defects like scratches, <strong>in</strong>clusions, surface<br />

defects etc. The process <strong>in</strong>volves the color <strong>space</strong> selection<br />

and a segmentation technique <strong>of</strong>ten used <strong>in</strong> medical<br />

imag<strong>in</strong>g has been tested for detection <strong>of</strong> various defects <strong>in</strong><br />

glass. The color <strong>space</strong> conversion helps <strong>in</strong> the selection <strong>of</strong><br />

best color <strong>space</strong> for quantify<strong>in</strong>g the visibility <strong>of</strong> the defects<br />

while the segmentation algorithm <strong>in</strong>volves the use <strong>of</strong><br />

contour method based on <strong>in</strong>tensity <strong>in</strong>homogeneities.<br />

Keywords: <strong>Color</strong> <strong>space</strong>s, defect detection, glass, image<br />

segmentation.<br />

1. Introduction<br />

The quality control concept is the most vital aspect <strong>of</strong><br />

the glass manufactur<strong>in</strong>g <strong>in</strong>dustry. In the past human vision<br />

has played a primary role <strong>in</strong> quality <strong>in</strong>spection and<br />

verification processes. It is, however, now considered a<br />

limit<strong>in</strong>g factor <strong>in</strong> the <strong>in</strong>spection <strong>of</strong> products com<strong>in</strong>g out<br />

from modern <strong>in</strong>dustrial production l<strong>in</strong>es, where high<br />

work<strong>in</strong>g speeds and very limited tolerances are required,<br />

unlike traditional defect detection mode which is slow and<br />

prone to errors. The solution to these problems has been the<br />

<strong>in</strong>troduction <strong>of</strong> artificial vision-based <strong>in</strong>spection system. As<br />

a matter <strong>of</strong> fact, applications <strong>of</strong> these systems are nowadays<br />

widespread <strong>in</strong> many <strong>in</strong>dustrial sectors [1], particularly the<br />

glass <strong>in</strong>dustry. For this <strong>in</strong>dustrial sector, an <strong>in</strong>-l<strong>in</strong>e<br />

automated <strong>in</strong>spection system that is able to discover, and<br />

IJCTA | MAY-JUNE 2012<br />

Available onl<strong>in</strong>e@www.ijcta.com<br />

Nishu et al ,Int.J.Computer Technology & Applications,Vol 3 (3), 1058-1063<br />

Sunil Agrawal #2<br />

#2 Assistant Pr<strong>of</strong>essor, UIET<br />

Panjab University, Chandigarh, India<br />

ISSN:2229-6093<br />

classify the defects present <strong>in</strong> glass sheets has been<br />

developed and analyzed [2].<br />

The quality control <strong>of</strong> the f<strong>in</strong>al product is a<br />

fundamental part <strong>of</strong> the glass production process, and this is<br />

demonstrated <strong>by</strong> the considerable scientific research that<br />

has been devoted to automatic <strong>in</strong>spection techniques [3].<br />

These studies focus on us<strong>in</strong>g different approaches for<br />

defect detection depend<strong>in</strong>g on their specific application<br />

because no s<strong>in</strong>gle technique can be considered optimal. As<br />

a result, many <strong>in</strong>spection techniques have been proposed<br />

with the aim <strong>of</strong> <strong>in</strong>creas<strong>in</strong>g the productivity and improv<strong>in</strong>g<br />

the f<strong>in</strong>al product quality [4].<br />

With regard to the glass <strong>in</strong>dustry, analyses and<br />

methodologies employed to detect the defects <strong>in</strong> the glass<br />

sheets ma<strong>in</strong>ly use image process<strong>in</strong>g techniques because <strong>of</strong><br />

their higher precision and speed [5]. A number <strong>of</strong><br />

techniques that use mach<strong>in</strong>e vision defect detection system<br />

have been presented <strong>in</strong> the past, <strong>by</strong> various authors <strong>in</strong> their<br />

research on this topic.<br />

The rest <strong>of</strong> the paper is organized as follows: Section<br />

two discusses about the various types <strong>of</strong> glass defects.<br />

Section three briefly reviews the work related to detection<br />

<strong>of</strong> defects. Section four <strong>in</strong>troduces color <strong>space</strong> conversion<br />

test used for quantify<strong>in</strong>g the visibility <strong>of</strong> various defects <strong>in</strong><br />

different color <strong>space</strong>s and the segmentation method us<strong>in</strong>g<br />

contours applied for detection <strong>of</strong> defective areas <strong>in</strong> glass<br />

sheets. Section five discusses the results and concludes the<br />

paper.<br />

2. Types <strong>of</strong> <strong>Defects</strong><br />

Once the glass sheet is manufactured, it is sent to the<br />

defect detection division <strong>of</strong> the glass production unit for<br />

test<strong>in</strong>g and validation <strong>of</strong> defects. The various types <strong>of</strong><br />

defects that can be present <strong>in</strong> the glass are:<br />

a) Foreign material: This defect has the appearance <strong>of</strong> a<br />

lump. It is an unmelted, opaque material embedded <strong>in</strong><br />

the glass. For example: Dust, sand particles, chemical<br />

residues.<br />

1058


) Discoloration <strong>Defects</strong>: These defect areas are roughly<br />

def<strong>in</strong>ed as fairly large, several millimeters <strong>in</strong> diameter,<br />

and relatively dark and/or bright regions that stand out<br />

aga<strong>in</strong>st the background [6]. Example: Water marks,<br />

which occur dur<strong>in</strong>g heat<strong>in</strong>g and anneal<strong>in</strong>g, blacken<strong>in</strong>g<br />

or red color <strong>of</strong> glass which is caused due to heat<strong>in</strong>g.<br />

c) L<strong>in</strong>e <strong>Defects</strong>: These are the marks or irregular patches<br />

on the surface [7]. These occur ma<strong>in</strong>ly dur<strong>in</strong>g<br />

transportation with<strong>in</strong> the factory. These can be light<br />

(like the marks made <strong>by</strong> us<strong>in</strong>g some tools) or deep<br />

(penetrat<strong>in</strong>g <strong>in</strong>to the surface <strong>of</strong> an item and can be felt<br />

on touch<strong>in</strong>g the surface). These can occur dur<strong>in</strong>g the<br />

process <strong>of</strong> edge gr<strong>in</strong>d<strong>in</strong>g and corner cutt<strong>in</strong>g. Example:<br />

Scratches and spots, knot l<strong>in</strong>e.<br />

d) Edge defects: Edge defects are the ma<strong>in</strong> cause <strong>of</strong> glass<br />

breakage dur<strong>in</strong>g its production. They can be prevented<br />

<strong>by</strong> detect<strong>in</strong>g them at an early stage and reject<strong>in</strong>g<br />

suspicious sheets. Production l<strong>in</strong>e uptime will <strong>in</strong>crease;<br />

production costs will be reduced accord<strong>in</strong>gly.<br />

Example: jagged edges.<br />

e) Po<strong>in</strong>t <strong>Defects</strong>: These are the <strong>in</strong>clusions trapped <strong>in</strong>side<br />

glass as a defect dur<strong>in</strong>g its production. Example:<br />

Bubbles, stone, melt <strong>in</strong>clusions.<br />

f) Surface defects: These are the surface defects which<br />

cause major problems for manufacturers, particularly<br />

when the production process <strong>in</strong>cludes a surface<br />

treatment stage. Example: Holes and dirt.<br />

Different image process<strong>in</strong>g algorithms are required for<br />

the detection <strong>of</strong> different types <strong>of</strong> defects which have been<br />

reviewed <strong>in</strong> the next section.<br />

3. Related Work<br />

There has been considerable research <strong>in</strong> the field <strong>of</strong><br />

defect detection <strong>in</strong> glass utiliz<strong>in</strong>g <strong>in</strong>-l<strong>in</strong>e automated<br />

<strong>in</strong>spection system. Makoto, Akira and Toshio [8], <strong>in</strong> their<br />

paper, proposed a method for detect<strong>in</strong>g foreign materials <strong>in</strong><br />

the <strong>in</strong>spection <strong>of</strong> an LCD with its protective film <strong>in</strong> place.<br />

The surface <strong>of</strong> the LCD is scanned under a fan-beam laser<br />

light to obta<strong>in</strong> a set <strong>of</strong> light-section time-series images.<br />

These images are composed <strong>in</strong>to a horizontal cross-section<br />

image <strong>of</strong> the specified depth and <strong>in</strong>ternal foreign materials<br />

are detected from it. To detect the low-contrast regions on<br />

glass, a highly robust estimator, known as the Model-<br />

Fitt<strong>in</strong>g (MF) estimator [9] was developed <strong>by</strong> X. Zhuang et<br />

al. which used a modified MF estimator to robustly<br />

estimate the background model and as a <strong>by</strong>-product to<br />

segment the blemish defects, the outliers. The illum<strong>in</strong>ation<br />

irregularity was made as a parabolic function; the center<br />

area was made brighter than the perimeter <strong>of</strong> the image. A<br />

zero mean Gaussian noise was added to the ground truth<br />

and the amount <strong>of</strong> noise, the standard deviation <strong>of</strong> the<br />

Gaussian noise, and the depth <strong>of</strong> circle <strong>of</strong> the ground truth<br />

are controlled for each simulation. A system [10] was<br />

designed to reproduce the real issues <strong>of</strong> an <strong>in</strong>-l<strong>in</strong>e quality<br />

IJCTA | MAY-JUNE 2012<br />

Available onl<strong>in</strong>e@www.ijcta.com<br />

Nishu et al ,Int.J.Computer Technology & Applications,Vol 3 (3), 1058-1063<br />

ISSN:2229-6093<br />

control system which <strong>in</strong>cluded three subsystems: an array<br />

<strong>of</strong> several CMOS cameras, a controllable roller conveyor,<br />

and a PC-based image process<strong>in</strong>g system that is also<br />

responsible for the control <strong>of</strong> the other subsystems. The<br />

detection <strong>of</strong> the defects was performed <strong>by</strong> means <strong>of</strong> canny<br />

edge detection, with thresholds chosen accord<strong>in</strong>g to some<br />

statistics <strong>of</strong> the images be<strong>in</strong>g processed. Jie Zhao, Xu Zhao<br />

and Yuncai Liu [11] proposed a method for detection <strong>of</strong><br />

bubbles and <strong>in</strong>clusions. First, the defect region was located<br />

<strong>by</strong> the method <strong>of</strong> canny edge detection, and thus the<br />

smallest connected region (rectangle) was found. Then, the<br />

b<strong>in</strong>ary <strong>in</strong>formation <strong>of</strong> the core region was obta<strong>in</strong>ed based<br />

on an OSTU [12] and an adaptive algorithm. After noises<br />

were removed, a B<strong>in</strong>ary Feature Histogram (BFH) was<br />

used to describe the characteristic <strong>of</strong> the glass defect.<br />

F<strong>in</strong>ally, the AdaBoost method was adopted for<br />

classification.<br />

The quality requirements for glass have cont<strong>in</strong>uously<br />

<strong>in</strong>creased over the past years. We propose an algorithm<br />

which would be able to detect a defective area <strong>in</strong> glass with<br />

reasonable accuracy. The design and implementation <strong>of</strong> the<br />

algorithm is carried out us<strong>in</strong>g MATLAB. This would <strong>of</strong>fer<br />

manufacturers with an opportunity to significantly improve<br />

quality and reduce costs. Significant and clear images <strong>of</strong><br />

the different glass defects would enable production staff to<br />

trace back to the cause <strong>of</strong> the defect without delay ensur<strong>in</strong>g<br />

high product quality.<br />

4. Defect Detection Process<br />

<strong>Defects</strong> are complicated and uncerta<strong>in</strong>. Accord<strong>in</strong>g to<br />

appear<strong>in</strong>g areas, defects can be separated <strong>in</strong>to various<br />

categories. There are three ma<strong>in</strong> modules <strong>of</strong> this process.<br />

Those are image preprocess<strong>in</strong>g module, color <strong>space</strong><br />

selection module and image segmentation module. The<br />

image preprocess<strong>in</strong>g module basically <strong>in</strong>volves formatt<strong>in</strong>g<br />

<strong>of</strong> the images <strong>in</strong> the database as per the requirement to<br />

achieve the best results at later stages <strong>of</strong> research. Next step<br />

is to select a color <strong>space</strong> which best shows the defect <strong>in</strong> an<br />

image there<strong>by</strong> reduc<strong>in</strong>g the further complexities dur<strong>in</strong>g its<br />

detection dur<strong>in</strong>g segmentation stage.<br />

4.1. <strong>Color</strong> <strong>space</strong> conversion<br />

The selection <strong>of</strong> color <strong>space</strong> is one <strong>of</strong> the determ<strong>in</strong>ants<br />

<strong>of</strong> the image segmentation quality; the segmentation results<br />

would be more accurate if an appropriate color <strong>space</strong> is<br />

adopted. Dur<strong>in</strong>g this process each <strong>in</strong>put image conta<strong>in</strong><strong>in</strong>g a<br />

defect is converted from RGB to four other color <strong>space</strong>s<br />

given below:<br />

4.1.1 RGB<br />

In RGB color <strong>space</strong>, the colors red, green, and blue are<br />

mapped onto a 3-D Cartesian coord<strong>in</strong>ate system which<br />

results is a 3-D cube. The vertices <strong>of</strong> cube are the primary<br />

colors (red, green, and blue) and the secondary colors<br />

(cyan, yellow, and magenta) <strong>of</strong> light.<br />

1059


4.1.2 HSV<br />

The HSV color model is a k<strong>in</strong>d <strong>of</strong> method to def<strong>in</strong>e<br />

colors accord<strong>in</strong>g to the three basic features <strong>of</strong> the color:<br />

Hue, Saturation and lum<strong>in</strong>ance [13].Hue is the color type<br />

which ranges from 0 to 360.It is expressed as an around a<br />

color hexagon, us<strong>in</strong>g the red axis as the reference (0˚) axis.<br />

Saturation, the vibrancy <strong>of</strong> color ranges from 0 to 100%<br />

and is also called as the „purity‟. It is measured as the<br />

distance from the V axis. Value is basically the brightness<br />

<strong>of</strong> the color that ranges from 0 to 100%. It is measured<br />

along the axis <strong>of</strong> the cone.<br />

4.1.3 YCbCr<br />

It is a model <strong>in</strong> which Y is the <strong>in</strong>tensity component. Cb<br />

refers to blue color component and Cr refers to the red<br />

color component [14]. This color model is basically used <strong>in</strong><br />

digital videos.<br />

4.1.4 NTSC<br />

In this type <strong>of</strong> color format, image data consist <strong>of</strong> three<br />

components: lum<strong>in</strong>ance (Y), hue (I) and saturation (Q),<br />

where the choice <strong>of</strong> letters YIQ is conventional [15]. The<br />

lum<strong>in</strong>ance component carries the g ray-scale <strong>in</strong>formation<br />

and the other two components carry the color <strong>in</strong>formation.<br />

4.1.5 Gray Scale<br />

In photography and comput<strong>in</strong>g, a grayscale digital<br />

image is an image <strong>in</strong> which the value <strong>of</strong> each pixel is a<br />

s<strong>in</strong>gle sample, that is, it carries only <strong>in</strong>tensity <strong>in</strong>formation.<br />

Images <strong>of</strong> this sort, also known as black-and-white, are<br />

composed exclusively <strong>of</strong> shades <strong>of</strong> gray, vary<strong>in</strong>g from<br />

black at the weakest <strong>in</strong>tensity to white at the strongest.<br />

Once the conversion is done, each color <strong>space</strong> is<br />

assigned a level from 1 to 5, known as Five po<strong>in</strong>t Likert<br />

scale, accord<strong>in</strong>g to the degree <strong>of</strong> visibility <strong>of</strong> defects <strong>in</strong> the<br />

<strong>in</strong>put image <strong>in</strong> each color <strong>space</strong> that objectively agrees with<br />

human visual perception. The color <strong>space</strong> with highest<br />

degree <strong>of</strong> visibility <strong>of</strong> the defect is marked 5, with a lower<br />

degree as 4 as so on and the one with least degree <strong>of</strong><br />

visibility is assigned as 1. Thus, evaluation corresponds, on<br />

average, with the assessment <strong>of</strong> a group <strong>of</strong> <strong>in</strong>spectors. The<br />

conversion time <strong>of</strong> each image from RGB color <strong>space</strong> to<br />

other color <strong>space</strong>s is also calculated.<br />

Figure 1 <strong>Color</strong> Space Conversion Analyses<br />

IJCTA | MAY-JUNE 2012<br />

Available onl<strong>in</strong>e@www.ijcta.com<br />

Nishu et al ,Int.J.Computer Technology & Applications,Vol 3 (3), 1058-1063<br />

4.2. Image Segmentation<br />

Image segmentation is the key step <strong>of</strong> the process from<br />

image process<strong>in</strong>g to image analysis. The quality <strong>of</strong><br />

segmentation effect <strong>in</strong>fluences the follow-up analysis <strong>of</strong> the<br />

images directly [14]. Therefore accurate segmentation <strong>of</strong><br />

image is very essential. The purpose <strong>of</strong> image segmentation<br />

is to divide the image <strong>in</strong>to a number <strong>of</strong> significant regions<br />

based on some characteristics (<strong>in</strong>tensity <strong>in</strong>homogeneities<br />

here [16]), mak<strong>in</strong>g these characteristics to display similarity<br />

<strong>in</strong> s<strong>in</strong>gle region and display difference between different<br />

regions.<br />

In the process <strong>of</strong> detect<strong>in</strong>g defects <strong>in</strong> glass, region based<br />

active contour model <strong>in</strong> a variational level set formulation<br />

has been implemented for segmentation (proposed <strong>by</strong><br />

Chunm<strong>in</strong>g Li, Chiu-Yen Kao, John C. Gore, and Zhaohua<br />

D<strong>in</strong>g [16] ) which uses <strong>in</strong>tensity <strong>in</strong>homogeneity as a region<br />

descriptor to identify the region <strong>of</strong> <strong>in</strong>terest that is to be<br />

segmented. First <strong>of</strong> all a non-negative kernel function K is<br />

def<strong>in</strong>ed which is chosen to be a gaussian kernel given as:<br />

with a scale parameter σ > 0.<br />

If C be a closed contour <strong>of</strong> the image Ω, Ω1 is the region<br />

outside(C) and Ω2 be the region <strong>in</strong>side (C) then for po<strong>in</strong>t<br />

x ε Ω local <strong>in</strong>tensity fitt<strong>in</strong>g energy is given as:<br />

where are positive constants<br />

ISSN:2229-6093<br />

are the values that approximate<br />

<strong>in</strong>tensities <strong>in</strong> Ω2 and Ω1 regions <strong>of</strong> image<br />

I(y) are the <strong>in</strong>tensities <strong>in</strong> the local region centered around<br />

po<strong>in</strong>t x<br />

K(x-y) is the weight assigned to the each <strong>in</strong>tensity at y<br />

(1)<br />

(2)<br />

is the weighted mean square error <strong>of</strong> the image<br />

<strong>in</strong>tensities I(y) <strong>by</strong> fitt<strong>in</strong>g values .<br />

This region scalable fitt<strong>in</strong>g energy function whose size is<br />

controlled <strong>by</strong> the Gaussian kernel is def<strong>in</strong>ed <strong>in</strong> terms <strong>of</strong><br />

contour and approximates the <strong>in</strong>tensities <strong>of</strong> the image on<br />

either side <strong>of</strong> the contour. Now to obta<strong>in</strong> the complete<br />

defect boundary a contour C is found that m<strong>in</strong>imizes the<br />

above found energy for all x <strong>in</strong> image Ω which is done as<br />

below:<br />

(3)<br />

Where│C│is length <strong>of</strong> the contour penalized to smoothen<br />

the contour.<br />

1060


As def<strong>in</strong>ed <strong>in</strong> [16], to m<strong>in</strong>imize the energy functional given<br />

<strong>by</strong> eq. 4, its gradient flow is used as level set evolution<br />

equation<br />

(4)<br />

where φ is the level set function and takes positive and<br />

negative values outside and <strong>in</strong>side the contour C<br />

respectively<br />

H is the Heaviside function<br />

The gradient flow equation is given as:<br />

(10)<br />

Equation 11 m<strong>in</strong>imizes the energy functional for a fixed<br />

value <strong>of</strong> φ.<br />

(5)<br />

(6)<br />

(7)<br />

(8)<br />

(9)<br />

(11)<br />

5. Results<br />

The proposed method has been applied to digital<br />

images <strong>of</strong> the glass sheets taken for detect<strong>in</strong>g various<br />

defects like scratches, <strong>in</strong>clusions, surface defects etc us<strong>in</strong>g<br />

MATLAB. The test has been conducted on 83 images<br />

conta<strong>in</strong><strong>in</strong>g various k<strong>in</strong>ds <strong>of</strong> defects that can be present <strong>in</strong><br />

the glass sheets. Some typical results and discussion are<br />

given below. The <strong>in</strong>put image is converted to four color<br />

<strong>space</strong>s specified above. Two factors taken <strong>in</strong>to account for<br />

analysis are:<br />

Five-Po<strong>in</strong>t Likert scal<strong>in</strong>g<br />

Conversion Time<br />

Accord<strong>in</strong>g to the Likert scale, level from 1 to 5 is<br />

assigned to each color <strong>space</strong> and the analysis below shows<br />

that RGB color <strong>space</strong> gives the best results with level 5<br />

be<strong>in</strong>g assigned for all the images <strong>of</strong> the database. The<br />

second best color <strong>space</strong> accord<strong>in</strong>g to human perception <strong>of</strong><br />

IJCTA | MAY-JUNE 2012<br />

Available onl<strong>in</strong>e@www.ijcta.com<br />

Nishu et al ,Int.J.Computer Technology & Applications,Vol 3 (3), 1058-1063<br />

degree <strong>of</strong> defect visibility is Gray color <strong>space</strong> and then<br />

Ntsc, HSV and last comes the YCbCr color <strong>space</strong>.<br />

From time analysis graph shown below m<strong>in</strong>imum time<br />

for conversion is taken <strong>by</strong> RGB-HSV color <strong>space</strong> while the<br />

order <strong>of</strong> time taken for conversion from m<strong>in</strong>imum to<br />

maximum is Gray, Ntsc and YCbCr color <strong>space</strong>.<br />

So comb<strong>in</strong><strong>in</strong>g both the results, it can be concluded that<br />

the defects are best visible <strong>in</strong> RGB color <strong>space</strong> and RGB –<br />

Gray color <strong>space</strong> conversion would give the best results<br />

when these defects are detected <strong>in</strong> glass <strong>in</strong>dustries.<br />

Figure 2 Five Po<strong>in</strong>t Likert Scale Analyses<br />

Figure 3 Conversion Time Analyses<br />

ISSN:2229-6093<br />

This RGB image obta<strong>in</strong>ed is then given as <strong>in</strong>put image to<br />

the segmentation algorithm implemented. The <strong>in</strong>put image<br />

is read and converted to double for better precision. The<br />

various parameters taken <strong>in</strong>to account for use <strong>in</strong> different<br />

equations were <strong>in</strong>itialized. The orig<strong>in</strong>al image was scaled<br />

and converted to gray color map. The convolution <strong>of</strong> the<br />

image with the Gaussian kernel and the convolution <strong>of</strong> the<br />

Gaussian kernel with constant 1 were computed. The above<br />

mentioned calculations were then done step <strong>by</strong> step for the<br />

level set evolution. The defect boundary was determ<strong>in</strong>ed<br />

collectively for every 20 iterations. The f<strong>in</strong>al contour is<br />

marked at the end <strong>of</strong> the 100 iterations. The image is<br />

f<strong>in</strong>ally <strong>in</strong>verted and gives the clear defect boundary on the<br />

basis <strong>of</strong> the <strong>in</strong>tensity <strong>in</strong>homogeneity on both sides <strong>of</strong> the<br />

contour. The complete results have been show <strong>in</strong> figure 4.<br />

1061


Figure 4Surface Defect Detection<br />

Figure 5Scratch Detection<br />

Figure 6Inclusion Defect Detection<br />

IJCTA | MAY-JUNE 2012<br />

Available onl<strong>in</strong>e@www.ijcta.com<br />

Nishu et al ,Int.J.Computer Technology & Applications,Vol 3 (3), 1058-1063<br />

ISSN:2229-6093<br />

6. Conclusion<br />

In this paper various defects present <strong>in</strong> glass sheets have<br />

been briefly discussed. Various color <strong>space</strong>s have been<br />

analyzed and compared for their performance <strong>in</strong><br />

quantify<strong>in</strong>g the visibility <strong>of</strong> defects <strong>in</strong> digital images. On<br />

the above reported theory and results the RGB color <strong>space</strong><br />

is recommended if one needs to view and process various<br />

defects like scratches, spots, edge defects etc <strong>in</strong> images. If<br />

any color <strong>space</strong> conversions are required the best choice is<br />

RGB to Gray color <strong>space</strong> conversion which makes the<br />

defect visible to largest extent. The segmentation algorithm<br />

us<strong>in</strong>g the contour method which has been <strong>of</strong>ten used <strong>in</strong><br />

medical imag<strong>in</strong>g has been test <strong>in</strong> the glass <strong>in</strong>dustry to detect<br />

the various defects.<br />

Our future work will focus on: 1) Test<strong>in</strong>g the technique on<br />

bulk <strong>of</strong> defective images as this test was done on a limited<br />

database. 2) Classification <strong>of</strong> defects accord<strong>in</strong>g to their<br />

characteristic features. 3) Us<strong>in</strong>g more computational<br />

resources to improve the efficiency <strong>of</strong> defect detection<br />

techniques.<br />

References<br />

[1] E.N. Malamas, E.G.M. Petrakis, M. Zervakis, L. Petit,<br />

J.D. Legat, “A survey on <strong>in</strong>dustrial vision systems,<br />

applications and tools, Image and Vision Comput<strong>in</strong>g”,<br />

2003, pp. 171–188.<br />

[2] F. Adamo, F. Attivissimo, A. Di Nisio, M. Sav<strong>in</strong>o, “An<br />

<strong>Automated</strong> visual <strong>in</strong>spection system for the glass <strong>in</strong>dustry”,<br />

In: Proc. Of 16th IMEKO TC4 Symposium, Florence, Italy,<br />

Sept 2008, pp. 22–24.<br />

[3] M.A.Coulthard, “Image Process<strong>in</strong>g for Automatic Surface<br />

Defect Detection,” Surface <strong>Inspection</strong> Ltd, UK, pp.192-196.<br />

[4] M. Leconte, “Laser glass <strong>in</strong>spection system”, International<br />

Society for Optical Eng<strong>in</strong>eer<strong>in</strong>g, 1997, pp.878–882.<br />

[5] Zhang Yepeng, Tao Yuezhen, Fan Zhiyong, “Application <strong>of</strong><br />

Digital Image Process Technology to the Mouth <strong>of</strong> Beer<br />

Bottle Defect <strong>Inspection</strong>,” 2007, pp. 2-905- 2-908.<br />

[6] Nishu Gupta, Sunil Agrawal, “<strong>Glass</strong> Defect Detection<br />

Techniques us<strong>in</strong>g Digital Image Process<strong>in</strong>g –A Review”,<br />

IJCA Special Issue on IP Multimedia Communications,<br />

October 2011, pp. 65-67.<br />

[7] www.wikipedia.org<br />

[8] Makoto Shimizu, Akira Ishii and Toshio Nishimura,<br />

“Detection <strong>of</strong> Foreign Material Included <strong>in</strong> LCD Panels,”<br />

IEEE conf 2000, pp.836-841.<br />

[9] Chang-Hwan Oh, Hyonam Joo and Keun-Ho Rew,<br />

“Detect<strong>in</strong>g Low-Contrast Defect Regions on <strong>Glass</strong>es Us<strong>in</strong>g<br />

Highly Robust Model-Fitt<strong>in</strong>g Estimator,” International<br />

Conference on Control, Automation and Systems, 2007, pp.<br />

2138-2141.<br />

[10] Francesco Adamo and Mario Sav<strong>in</strong>o, “A low-cost <strong>Inspection</strong><br />

system for onl<strong>in</strong>e defects assessment <strong>in</strong> sat<strong>in</strong> glass,” 2009,<br />

pp. 1304-1311.<br />

[11] Jie Zhao, Xu Zhao and Yuncai Liu, “A Method for Detection<br />

and Classification <strong>of</strong> <strong>Glass</strong> <strong>Defects</strong> <strong>in</strong> Low Resolution<br />

Images,” Sixth International Conference on Image and<br />

Graphics, 2011, pp.642-647.<br />

1062


[12] Peng X, Chen Y and Yu W, “An onl<strong>in</strong>e defects <strong>in</strong>spection<br />

method for float glass fabrication based on mach<strong>in</strong>e vision,”<br />

International Journal <strong>of</strong> Advanced Manufactur<strong>in</strong>g<br />

Technology, vol.39, 2008, pp.1180-1189.<br />

[13] Li Shuhua, Guo Gaizhi, “The application <strong>of</strong> improved HSV<br />

color <strong>space</strong> model <strong>in</strong> image process<strong>in</strong>g”, 2nd International<br />

Conference on Future Computer and Communication, 2010.<br />

[14] Wang Yuedong, Xue Heru, “Studies on <strong>Color</strong> Space<br />

Selection and Methods <strong>of</strong> Segmentation Quality Evaluation”,<br />

IJCTA | MAY-JUNE 2012<br />

Available onl<strong>in</strong>e@www.ijcta.com<br />

Nishu et al ,Int.J.Computer Technology & Applications,Vol 3 (3), 1058-1063<br />

ISSN:2229-6093<br />

1st International Conference on Information Science and<br />

Eng<strong>in</strong>eer<strong>in</strong>g, 2009.<br />

[15] Digital Image Process<strong>in</strong>g Us<strong>in</strong>g MATLAB <strong>by</strong> Rafael C.<br />

Gonzalez and Richard Woods, second edition.<br />

[16] Chunm<strong>in</strong>g Li, Chiu-Yen Kao, John C. Gore, and Zhaohua<br />

D<strong>in</strong>g, “M<strong>in</strong>imization <strong>of</strong> Region-Scalable Fitt<strong>in</strong>g Energy for<br />

Image Segmentation”, IEEE Transaction on Image<br />

Process<strong>in</strong>g, Vol. 17, No. 10, October 2008, pp. 1940-1949.<br />

1063

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!