SlideShare a Scribd company logo
1 of 8
Download to read offline
Indonesian Journal of Electrical Engineering and Computer Science
Vol. 8, No. 1, October 2017, pp. 107 ~ 114
DOI: 10.11591/ijeecs.v8.i1.pp107-114  107
Received July 9, 2017; Revised September 15, 2017; Accepted September 30, 2017
Shape Defect Detection using Local Standard Deviation
and Rule-Based Classifier for Bottle Quality Inspection
Norhashimah Mohd Saad*
1
, Nor Nabilah Syazana Abdul Rahman
2
,
Abdul Rahim Abdullah
3
, Mohd Juzaila Abd Latif
4
1,3,4
Center for Robotics and Industrial Automation, Universiti Teknikal Malaysia Melaka, Hang Tuah Jaya,
76100 Durian Tunggal, Melaka, Malaysia
1,2
Faculty of Electronic and Computer Engineering, Universiti Teknikal Malaysia Melaka, Hang Tuah Jaya,
76100 Durian Tunggal, Melaka, Malaysia
3
Faculty of Electrical Engineering, Universiti Teknikal Malaysia Melaka, Hang Tuah Jaya, 76100 Durian
Tunggal, Melaka, Malaysia
4
Faculty of Mechanical Engineering, Universiti Teknikal Malaysia Melaka, Hang Tuah Jaya, 76100 Durian
Tunggal, Melaka, Malaysia
*Corresponding author, e-mail: norhashimah@utem.edu.my
Abstract
This paper presents shape analysis using Local Standard Deviation (LSD) technique to detect
shape defect of the bottle for product quality inspection. The proposed analysis framework includes
segmentation, feature extraction, and classification. The shape of the bottle was segmented using LSD
technique in order to obtain higher enhancement at the low contrast area and low enhancement at the high
contrast area. The contrast gain that was applied in Adaptive Contrast Enhancement (ACE) algorithm, was
presented inversely proportional to LSD in order to detect and eliminate background noise at the bottle
edge. After the segmentation process, the parameters of the bottle shape such as height, width, area, and
extent were extracted and applied in classification stage. The rule-based classifier was used to classify the
shape of the bottle either good or defect. The offline experimental results exhibit superior segmentation on
performance with 100% accuracy for 100 sample images. This shows that the LSD could be an effective
technique to monitor the product quality.
Keywords: Shape defect detection; Local Standard Deviation; Adaptive Contrast Enhancement
Copyright © 2017 Institute of Advanced Engineering and Science. All rights reserved.
1. Introduction
In the history of development and growth economics, visual inspection is widely used to
monitor the product quality and reliability in manufacturing industries [1]. The automatic visual
inspection is often being utilize by the industry because it provides high efficiency and accuracy
during production and inspection processes [2]. Many commercial products such as textile,
food, beverage, and medicine employed visual inspection to maintain their product quality.
Product inspection in the industry is important because poor product quality will influence
customer loyalty and it is not good for long-term marketing [3, 4].
The manual inspection in most manufacturing process mainly depends on human
operator to inspect and monitor product quality. However, this traditional method is prone to
human error during the inspection process due to fatigue, illness, dull and careless [5].
Generally, the Small and Medium Enterprise (SME) companies were fully utilized the manual
inspection in the production line to produce products at low cost in short period of manufacturing
process [6]. Therefore, an effective shape detection technique using image processing could
enhance the manufacturing process and product quality because it provides high consistency,
high accuracy and cost-effectiveness [7].
In shape detection technique, it is important to classify the shape of the object. Previous
studies have reported a comparison between shape detection technique to select a proper
technique in order to detect shape defect. Shape detection techniques such as adaptive
thresholding, morphological operation, and edge detection were used to segment the object in
the image [8]. Roy et al., (2014) discovered adaptive thresholding was not capable to segment
in the high illumination area of the image and bright image [9]. Meanwhile, morphological
 ISSN: 2502-4752
IJEECS Vol. 8, No. 1, October 2017 : 107 – 114
108
operation and edge detection techniques were less accurate and high in computational
complexity for high-resolution image [10, 11].
In a study carried out by Cvetkovic et al., (2007), Local Standard Deviation (LSD) is an
effective technique to reduce noise in the image [12]. Thus, the image can be well segmented
although there is an interruption such as illumination level during image acquisition. This paper
presented the analysis of shape defect technique using LSD to obtain the precise shape for
image segmentation. LSD offers contrast enhancement technique to improve the low contrast
image. It is also low in computational complexity for image segmentation compared to the
morphological operation and edge detection [13].
2. Research Method
The image was analysed using the Matlab software in detecting the defects of the bottle
shape. Figure 1 shows the analysis framework using image processing technique. The sample
image of the bottle (n=100) was obtained using digital camera. The image was then converted
from RGB color into grayscale color. The shape of the bottle was segmented using LSD
technique to extract the height, width, area, and extent of the bottle. The rule-based classifier
was finally implemented to classify the shape defect of the bottle.
Figure 1. Analysis framework
2.1. Pre-Processing
Nikon D3100 digital camera with 14.2 Megapixel was used to capture the sample image
in RGB color format. In the pre-processing stage, the RGB color was converted into grayscale
color without changing the pixel value [14]. The brightness of the image pixel was adjusted to be
the same value for all pixel’s due to the uneven object illumination [15]. The smoothing process
was carried out during the pre-processing stage to eliminate noise and enhance the image for
further analysis [16].
2.2. Segmentation using Local Standard Deviation (LSD)
The LSD technique was applied in Adaptive Contrast Enhancement (ACE) algorithm.
ACE algorithm is known as an unsharp masking technique that used for low-frequency
component of the image [17]. ACE general equation is represented by.
[ ]( , ) ( , ) ( , ) ( , ) ( , )x xf i j m i j G i j x i j m i j= + − (1)
where mx(i, j) is the local mean, G(i, j) is the contrast gain and x(i, j) is grayscale value for the
image pixel.
The function of LSD used in ACE algorithm was to correct the low contrast of an image.
Singh et al., (2012) observed image enhancement with high contrast gain may cause ringing
artifacts and noises to the image. Therefore, the contrast gain in ACE was presented inversely
proportional to LSD in order to increase the LSD value and reduce the contrast gain value which
detect and eliminate background noise at the object edge [18]. The used of different gain will
reduce over enhancement in the image [19]. The LSD information can be expressed as.
[ ]( , ) ( , ) ( , ) ( , )
( , )
x x
x
D
f i j m i j x i j m i j
i jσ
= + − (2)
IJEECS ISSN: 2502-4752 
Shape Defect Detection using Local Standard Deviation and… (Norhashimah Mohd Saad)
109
Where x(i, j) is the grayscale value of the image pixel, f(i, j) is enhanced value of x(i, j), mx(i, j) is
the local mean,σx(i, j) is the LSD and D are a constant value. From equation 2, LSD is
automatically controlled to set proper contrast gain value for the image. The function of
grayscale value is shown in Figure 2(a) while the function of LSD is illustrated in Figure 2(b).
(a) (b)
Figure 2. Bottle image (a) Grayscale image, (b) LSD image
2.3. Feature Extraction
The feature of the bottle shape such as height, width, area, and extent were extracted
from the binary image to obtain the details information. In this study, extent parameter was used
to determine the ratio of the bottle because of its capability to obtain a similar ratio value of an
object although the image has different pixel value [20], [21]. The extent formula is presented
by.
𝐸𝐸𝐸𝐸𝐸𝐸 =
𝐴𝐴𝐴𝐴 𝑜𝑜 𝑡ℎ𝑒 𝑜𝑜𝑜𝑜𝑜𝑜
𝐴𝐴𝐴𝐴 𝑜𝑜 𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏 𝑏𝑏𝑏
(3)
The shape of the bottle was represented in the white pixel as 1 while background image
was shown in the black pixel as 0. The area of the object was calculated from the binary image
based on the value of 1 (white pixel). Meanwhile, the area of the bounding box was determined
by.
𝐴𝐴𝐴𝐴 𝑜𝑜 𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏 𝑏𝑏𝑏 = ℎ𝑒𝑒𝑒ℎ𝑡 𝑥 𝑤𝑤𝑤𝑤ℎ (4)
Figure 3 shows bounding box dimension for a rectangle shape. The width and height of the
image were measured within the range of x and y axes.
Figure 3. Bounding box dimension
 ISSN: 2502-4752
IJEECS Vol. 8, No. 1, October 2017 : 107 – 114
110
2.4. Rule-based Classifier
The rule-based classifier was implemented in this study to classify the shape defect of
the bottle. This is because rule-based offers simple algorithm, easy to understand and high
classification performance in detecting the defects based on the given features [22]. In
comparing with K-nearest neighbour (k-NN) classification, rule-based classifier can obtain high
accuracy for the classification stage and low computation complexity [23]. While k-NN classifier
is high computational complexity when increase the number of training data [24]. The shape of
bottle is classified as defect condition when the extent value is less than x value or higher than y
value. If the extent value is in between the range of x and y value, the bottle shape is in pass
condition. The process of classification is illustrated in Figure 4.
Figure 4. Classification process
3. Results and Analysis
The 100 samples of bottle image, consists of 50 good shape images and 50 shape
defect images were analysed using image processing technique. Figure 5 and Figure 6 show
the example of the good and defect shape of the bottle.
Figure 5. Examples of good shape of bottle image
Figure 6. Examples of defect shape of bottle image
IJEECS ISSN: 2502-4752 
Shape Defect Detection using Local Standard Deviation and… (Norhashimah Mohd Saad)
111
Figure 7 shows the shape analysis process for the defect bottle. The process was
started with the conversion of red, green and blue (RGB) color image in Figure 7(a) into a
grayscale image in Figure 7(b). The conversion process was applied to reduce the complexity
during the analysis. RGB color images were unable to provide details information in order to
identify the important edges or features of the object. Besides, the RGB image was easy to be
exposed to the noise variations [25]. Thus, the conversion into the grayscale image was
important in reducing complexity from 3 dimensional (3D) pixel value into 2 dimensional (2D)
pixel value [26].
(a) (b) (c) (d)
Figure 7. Shape segmentation process
The grayscale image was then transformed into standard deviation image as shown in
Figure 7(c). In this process, standard deviation algorithm was applied to segment the shape of
the bottle by separating the bottle and the background image. The background noise at the
edge of the bottle can be removed by increasing the value of LSD resulting the reduction of
contrast gain of the image. Therefore, the shape of the bottle was outlined using the white line
to separate between the shape of the bottle and the background image.
The standard deviation image was converted into a binary image as shown in Figure
7(d). The shape of the bottle was presented in white pixel (1) while the background image was
in the black pixel (0). Finally, the feature extraction parameters were extracted to be used for the
classification process where extent parameter was calculated based on the ratio of the bottle
area and the bounding box area.
Four bottle parameters of height, width, area, and extent extracted from the good and
defect shape images were tabulated in Table 1. As expected, both sample images have similar
area of bounding box but different value of the bottle area. The area value for good bottle was
higher compared to defect bottle which then influenced to the extent value.
Table 1. Parameters of bottle shape
Sample image Area bounding box
(pixel)
Area bottle
(pixel)
Extent
Good1 1.29792e+07 3.52914e+06 0.2719
Good2 1.29792e+07 3.50918e+06 0.2704
Defect1 1.29792e+07 3.00041e+06 0.2312
Defect 2 1.29792e+07 3.24855e+06 0.2503
Figure 8 shows the rule-based classifier process to identify the defect shape of the
bottle. The maximum and minimum of extent values were selected and used in the rule-based
classifier algorithm. The range of the extent value was found to be between 0.2612 and 0.2761.
From the rule-based classifier, if the extent value was greater than 0.2761 or lower than 0.2612,
the shape of the bottle was classified as a defect condition. While if the extent value was in
between 0.2612 and 0.2761, the shape of the bottle was classified as good condition.
 ISSN: 2502-4752
IJEECS Vol. 8, No. 1, October 2017 : 107 – 114
112
Figure 8. Rule-based classifier
The offline accuracy of good and defect bottle is illustrated in Figure 9. The
experimental results show 100% accuracy for good and defect bottles based on 100 samples
image. The performance of the analysis to classify the bottle shape defect is depends on the
sample number of bottle image. Based on the percentage of the accuracy, it shows the
proposed technique capable of detecting the shape defect effectively.
Figure 9. Accuracy graph
4. Conclusion
This paper presents the analysis of shape defect detection using LSD techniques. The
first process is started with a pre-processing stage where the image is corrected and improved
to eliminate the noise in the image. Then, LSD technique is used to segment the shape of the
bottle. LSD technique shows the ability to segment the shape of the bottle very well by reducing
contrast gain in the image. Next, parameters which are height, width, area, and extent
parameters are extracted from the image. Extent parameter is used to calculate the ratio of the
bottle area. Lastly, the rule-based classifier is applied to classify the defect of the shape bottle
either good or defect. The performance of the technique was verified in terms of accuracy. From
the experimental result, 100% accuracy was achieved to detect the shape defect of the bottle
for 100 samples image. This indicates that the LSD technique could be an effective method to
detect shape defect in manufacturing process.
IJEECS ISSN: 2502-4752 
Shape Defect Detection using Local Standard Deviation and… (Norhashimah Mohd Saad)
113
Acknowledgement
The authors would like to thank the Universiti Teknikal Malaysia Melaka (UTeM), UTeM
Zamalah Scheme, Rehabilitation Engineering & Assistive Technology (REAT) research group
under Center of Robotics & Industrial Automation (CeRIA), Advanced Digital Signal Processing
(ADSP) Research Laboratory and Ministry of Higher Education (MOHE), Malaysia for
sponsoring this work under project GLuar/STEVIA/2016/FKE-CeRIA/l00009 and the use of the
existing facilities to complete this project.
References
[1] Sarkar B, Saren S. Product inspection policy for an imperfect production system with inspection
errors and warranty cost. European Journal of Operational Research. 2016; 248(1): 263-71.
[2] Gimenez T, Piovesan C, Braga MM, Raggio DP, Deery C, Ricketts DN, Ekstrand KR, Mendes FM.
Visual inspection for caries detection: a systematic review and meta-analysis. Journal of dental
research. 2015; 94(7): 895-904.
[3] Huang SH, Pan YC. Automated visual inspection in the semiconductor industry: A survey.
Computers in industry. 2015; 66: 1-0.
[4] Jahanshani AA, Hajizadeh GM, Mirdhamadi SA, Nawaser K, Khaksar SM. Study the effects of
customer service and product quality on customer satisfaction and loyalty.
[5] Moradi G, Shamsi M, Sedaaghi MH, Moradi S. Apple defect detection using statistical histogram
based fuzzy c-means algorithm. InMachine Vision and Image Processing (MVIP). IEEE. 2011 7th
Iranian 2011; 16; 1-5.
[6] Keskin H, Şentürk C, Sungur O, Kiriş Hm. The Importance of SMEs In Developing Economies.
[7] Brosnan T, Sun DW. Improving quality inspection of food products by computer vision–a review.
Journal of food engineering. 2004; 61(1): 3-16.
[8] Pai YT, Chang YF, Ruan SJ. Adaptive thresholding algorithm: Efficient computation technique based
on intelligent block detection for degraded document images. Pattern Recognition. 2010; 43(9):
3177-87.
[9] Roy P, Dutta S, Dey N, Dey G, Chakraborty S, Ray R. Adaptive thresholding: a comparative study. In
Control, Instrumentation, Communication and Computational Technologies (ICCICCT). IEEE. 2014
International Conference on. 2014; 1182-1186.
[10] Maini R, Aggarwal H. Study and comparison of various image edge detection techniques.
International journal of image processing (IJIP). 2009; 3(1): 1-1.
[11] Pesaresi M, Benediktsson JA. A new approach for the morphological segmentation of high-resolution
satellite imagery. IEEE Transactions on Geoscience and Remote Sensing. 2001; 39(2): 309-20.
[12] Cvetkovic SD, Schirris J, de With PH. Locally-adaptive image contrast enhancement without noise
and ringing artifacts. InImage Processing. ICIP 2007. IEEE International Conference. 2007; 3: III-557.
[13] Yuguang Yang and Zheng Zhou. Research and implementation of image enhancement algorithm
based on local mean and standard deviation. IEEE Symposium on Electrical & Electronics
Engineering (EEESYM), Kuala Lumpur. 2012; 375-378.
[14] Atmaja RD, Murti MA, Halomoan J, Suratman FY. An image processing method to convert RGB
image into binary. Indonesian Journal of Electrical Engineering and Computer Science. 2016; 3(2):
377-382.
[15] Jiang G, Wong CY, Lin SC, Rahman MA, Ren TR, Kwok N, Shi H, Yu YH, Wu T. Image contrast
enhancement with brightness preservation using an optimal gamma correction and weighted sum
approach. Journal of Modern Optics. 2015; 62(7): 536-47.
[16] Rehman A, Saba T. Neural networks for document image preprocessing: state of the art. Artificial
Intelligence Review. 2014; 42(2): 253-73.
[17] Prakoso BS, Timotius IK, Setyawan I. Palmprint identification for user verification based on line
detection and local standard deviation. Information Technology, Computer and Electrical Engineering
(ICITACEE), IEEE. 2014 1st International Conference. 2014; 155-159.
[18] Singh SS, Singh TT, Devi HM, Sinam T. Local contrast enhancement using local standard deviation.
International Journal of Computer Applications. 2012; 47(15).
[19] Omer Osama A, Toshihisa Tanaka. Robust image registration based on local standard deviation and
image intensity. Information, Communications & Signal Processing, 2007 6th International
Conference on. IEEE, 2007.
[20] Rege S, Memane R, Phatak M, Agarwal P. 2D geometric shape and color recognition using digital
image processing. International journal of advanced research in electrical, electronics and
instrumentation engineering. 2013; 2(6): 2479-87.
[21] Patel S, Trivedi P, Gandhi V, Prajapati GI. 2D basic shape detection using region properties.
International Journal of Engineering Research & Technology. 2013; 2(5): 1147-53.
 ISSN: 2502-4752
IJEECS Vol. 8, No. 1, October 2017 : 107 – 114
114
[22] Polychronopoulos D, Weitschek E, Dimitrieva S, Bucher P, Felici G, Almirantis Y. Classification of
selectively constrained DNA elements using feature vectors and rule-based classifiers. Genomics.
2014; 104(2): 79-86.
[23] Thangaraj M, Vijayalakshmi CR. Performance Study on Rule-based Classification Techniques across
Multiple Database Relations. International Journal of Applied Information Systems (IJAIS)–ISSN.
2013: 2249-0868.
[24] Khan A, Baharudin B, Lee LH, Khan K. A review of machine learning algorithms for text-documents
classification. Journal of advances in information technology. 2010; 1(1): 4-20.
[25] Feng X, Li G, Lina G. A New Sub-pixel Edge Detection Method of Color Images. Indonesian Journal
of Electrical Engineering and Computer Science. 2014. 12(5): 3609-3615.
[26] Dhawan S. A review of image compression and comparison of its algorithms. International Journal of
Electronics & Communication Technology, IJECT. 2011; 2(1): 22-6.

More Related Content

What's hot

Extraction of texture features by using gabor filter in wheat crop disease de...
Extraction of texture features by using gabor filter in wheat crop disease de...Extraction of texture features by using gabor filter in wheat crop disease de...
Extraction of texture features by using gabor filter in wheat crop disease de...
eSAT Journals
 
A survey on human face recognition invariant to illumination
A survey on human face recognition invariant to illuminationA survey on human face recognition invariant to illumination
A survey on human face recognition invariant to illumination
IAEME Publication
 

What's hot (20)

Multi modal face recognition using block based curvelet features
Multi modal face recognition using block based curvelet featuresMulti modal face recognition using block based curvelet features
Multi modal face recognition using block based curvelet features
 
366 369
366 369366 369
366 369
 
IRJET - Computer-Assisted ALL, AML, CLL, CML Detection and Counting for D...
IRJET -  	  Computer-Assisted ALL, AML, CLL, CML Detection and Counting for D...IRJET -  	  Computer-Assisted ALL, AML, CLL, CML Detection and Counting for D...
IRJET - Computer-Assisted ALL, AML, CLL, CML Detection and Counting for D...
 
Automatic analysis of smoothing techniques by simulation model based real tim...
Automatic analysis of smoothing techniques by simulation model based real tim...Automatic analysis of smoothing techniques by simulation model based real tim...
Automatic analysis of smoothing techniques by simulation model based real tim...
 
Automatic image slice marking propagation on segmentation of dental CBCT
Automatic image slice marking propagation on segmentation of dental CBCTAutomatic image slice marking propagation on segmentation of dental CBCT
Automatic image slice marking propagation on segmentation of dental CBCT
 
A novel approach for efficient skull stripping using morphological reconstruc...
A novel approach for efficient skull stripping using morphological reconstruc...A novel approach for efficient skull stripping using morphological reconstruc...
A novel approach for efficient skull stripping using morphological reconstruc...
 
A novel approach for efficient skull stripping using
A novel approach for efficient skull stripping usingA novel approach for efficient skull stripping using
A novel approach for efficient skull stripping using
 
Wound epithelization model by 3 d imaging
Wound epithelization model by 3 d imagingWound epithelization model by 3 d imaging
Wound epithelization model by 3 d imaging
 
Extraction of texture features by using gabor filter in wheat crop disease de...
Extraction of texture features by using gabor filter in wheat crop disease de...Extraction of texture features by using gabor filter in wheat crop disease de...
Extraction of texture features by using gabor filter in wheat crop disease de...
 
MULTIPLE SCLEROSIS DIAGNOSIS WITH FUZZY C-MEANS
MULTIPLE SCLEROSIS DIAGNOSIS WITH FUZZY C-MEANSMULTIPLE SCLEROSIS DIAGNOSIS WITH FUZZY C-MEANS
MULTIPLE SCLEROSIS DIAGNOSIS WITH FUZZY C-MEANS
 
Pupil Detection Based on Color Difference and Circular Hough Transform
Pupil Detection Based on Color Difference and Circular Hough Transform Pupil Detection Based on Color Difference and Circular Hough Transform
Pupil Detection Based on Color Difference and Circular Hough Transform
 
A survey on human face recognition invariant to illumination
A survey on human face recognition invariant to illuminationA survey on human face recognition invariant to illumination
A survey on human face recognition invariant to illumination
 
Learning a multi-center convolutional network for unconstrained face alignment
Learning a multi-center convolutional network for unconstrained face alignmentLearning a multi-center convolutional network for unconstrained face alignment
Learning a multi-center convolutional network for unconstrained face alignment
 
ISEF based Identification of Dental Caries in Decayed Tooth
ISEF based Identification of Dental Caries in Decayed ToothISEF based Identification of Dental Caries in Decayed Tooth
ISEF based Identification of Dental Caries in Decayed Tooth
 
An artificial neural network approach for detecting skin cancer
An artificial neural network approach for detecting skin cancerAn artificial neural network approach for detecting skin cancer
An artificial neural network approach for detecting skin cancer
 
FPGA ARCHITECTURE FOR FACIAL-FEATURES AND COMPONENTS EXTRACTION
FPGA ARCHITECTURE FOR FACIAL-FEATURES AND COMPONENTS EXTRACTIONFPGA ARCHITECTURE FOR FACIAL-FEATURES AND COMPONENTS EXTRACTION
FPGA ARCHITECTURE FOR FACIAL-FEATURES AND COMPONENTS EXTRACTION
 
Image Processing of Panoramic Dental X-Ray for Identifying Proximal Caries
Image Processing of Panoramic Dental X-Ray for Identifying Proximal CariesImage Processing of Panoramic Dental X-Ray for Identifying Proximal Caries
Image Processing of Panoramic Dental X-Ray for Identifying Proximal Caries
 
Gr3112821287
Gr3112821287Gr3112821287
Gr3112821287
 
Jc jmpt00
Jc jmpt00Jc jmpt00
Jc jmpt00
 
Camera calibration can be conducted through bundle adjustment with additional...
Camera calibration can be conducted through bundle adjustment with additional...Camera calibration can be conducted through bundle adjustment with additional...
Camera calibration can be conducted through bundle adjustment with additional...
 

Similar to 13 9736 shape paper id 0003 (ed l)

Similar to 13 9736 shape paper id 0003 (ed l) (20)

Shape and Level Bottles Detection Using Local Standard Deviation and Hough Tr...
Shape and Level Bottles Detection Using Local Standard Deviation and Hough Tr...Shape and Level Bottles Detection Using Local Standard Deviation and Hough Tr...
Shape and Level Bottles Detection Using Local Standard Deviation and Hough Tr...
 
FACE RECOGNITION USING DIFFERENT LOCAL FEATURES WITH DIFFERENT DISTANCE TECHN...
FACE RECOGNITION USING DIFFERENT LOCAL FEATURES WITH DIFFERENT DISTANCE TECHN...FACE RECOGNITION USING DIFFERENT LOCAL FEATURES WITH DIFFERENT DISTANCE TECHN...
FACE RECOGNITION USING DIFFERENT LOCAL FEATURES WITH DIFFERENT DISTANCE TECHN...
 
Object Shape Representation by Kernel Density Feature Points Estimator
Object Shape Representation by Kernel Density Feature Points Estimator Object Shape Representation by Kernel Density Feature Points Estimator
Object Shape Representation by Kernel Density Feature Points Estimator
 
Improved nonlocal means based on pre classification and invariant block matching
Improved nonlocal means based on pre classification and invariant block matchingImproved nonlocal means based on pre classification and invariant block matching
Improved nonlocal means based on pre classification and invariant block matching
 
Improved nonlocal means based on pre classification and invariant block matching
Improved nonlocal means based on pre classification and invariant block matchingImproved nonlocal means based on pre classification and invariant block matching
Improved nonlocal means based on pre classification and invariant block matching
 
Quality assessment for online iris
Quality assessment for online irisQuality assessment for online iris
Quality assessment for online iris
 
IRJET- Contrast Enhancement of Grey Level and Color Image using DWT and SVD
IRJET- Contrast Enhancement of Grey Level and Color Image using DWT and SVDIRJET- Contrast Enhancement of Grey Level and Color Image using DWT and SVD
IRJET- Contrast Enhancement of Grey Level and Color Image using DWT and SVD
 
IRJET- Contrast Enhancement of Grey Level and Color Image using DWT and SVD
IRJET-  	  Contrast Enhancement of Grey Level and Color Image using DWT and SVDIRJET-  	  Contrast Enhancement of Grey Level and Color Image using DWT and SVD
IRJET- Contrast Enhancement of Grey Level and Color Image using DWT and SVD
 
A New Approach of Iris Detection and Recognition
A New Approach of Iris Detection and RecognitionA New Approach of Iris Detection and Recognition
A New Approach of Iris Detection and Recognition
 
IRJET - Symmetric Image Registration based on Intensity and Spatial Informati...
IRJET - Symmetric Image Registration based on Intensity and Spatial Informati...IRJET - Symmetric Image Registration based on Intensity and Spatial Informati...
IRJET - Symmetric Image Registration based on Intensity and Spatial Informati...
 
Improved Weighted Least Square Filter Based Pan Sharpening using Fuzzy Logic
Improved Weighted Least Square Filter Based Pan Sharpening using Fuzzy LogicImproved Weighted Least Square Filter Based Pan Sharpening using Fuzzy Logic
Improved Weighted Least Square Filter Based Pan Sharpening using Fuzzy Logic
 
IRJET - Underwater Image Enhancement using PCNN and NSCT Fusion
IRJET -  	  Underwater Image Enhancement using PCNN and NSCT FusionIRJET -  	  Underwater Image Enhancement using PCNN and NSCT Fusion
IRJET - Underwater Image Enhancement using PCNN and NSCT Fusion
 
Document Recovery From Degraded Images
Document Recovery From Degraded ImagesDocument Recovery From Degraded Images
Document Recovery From Degraded Images
 
Feature extraction to predict quality of segregating sweet tamarind using ima...
Feature extraction to predict quality of segregating sweet tamarind using ima...Feature extraction to predict quality of segregating sweet tamarind using ima...
Feature extraction to predict quality of segregating sweet tamarind using ima...
 
41 9147 quantization encoding algorithm based edit tyas
41 9147 quantization encoding algorithm based edit tyas41 9147 quantization encoding algorithm based edit tyas
41 9147 quantization encoding algorithm based edit tyas
 
Retinal blood vessel extraction and optical disc removal
Retinal blood vessel extraction and optical disc removalRetinal blood vessel extraction and optical disc removal
Retinal blood vessel extraction and optical disc removal
 
IRJET- Crowd Density Estimation using Image Processing
IRJET- Crowd Density Estimation using Image ProcessingIRJET- Crowd Density Estimation using Image Processing
IRJET- Crowd Density Estimation using Image Processing
 
IMPROVING IMAGE RESOLUTION THROUGH THE CRA ALGORITHM INVOLVED RECYCLING PROCE...
IMPROVING IMAGE RESOLUTION THROUGH THE CRA ALGORITHM INVOLVED RECYCLING PROCE...IMPROVING IMAGE RESOLUTION THROUGH THE CRA ALGORITHM INVOLVED RECYCLING PROCE...
IMPROVING IMAGE RESOLUTION THROUGH THE CRA ALGORITHM INVOLVED RECYCLING PROCE...
 
Improving image resolution through the cra algorithm involved recycling proce...
Improving image resolution through the cra algorithm involved recycling proce...Improving image resolution through the cra algorithm involved recycling proce...
Improving image resolution through the cra algorithm involved recycling proce...
 
Unsupervised Classification of Images: A Review
Unsupervised Classification of Images: A ReviewUnsupervised Classification of Images: A Review
Unsupervised Classification of Images: A Review
 

More from IAESIJEECS

08 20314 electronic doorbell...
08 20314 electronic doorbell...08 20314 electronic doorbell...
08 20314 electronic doorbell...
IAESIJEECS
 
06 17443 an neuro fuzzy...
06 17443 an neuro fuzzy...06 17443 an neuro fuzzy...
06 17443 an neuro fuzzy...
IAESIJEECS
 
06 20273 37746-1-ed
06 20273 37746-1-ed06 20273 37746-1-ed
06 20273 37746-1-ed
IAESIJEECS
 
03 20270 true power loss reduction
03 20270 true power loss reduction03 20270 true power loss reduction
03 20270 true power loss reduction
IAESIJEECS
 

More from IAESIJEECS (20)

08 20314 electronic doorbell...
08 20314 electronic doorbell...08 20314 electronic doorbell...
08 20314 electronic doorbell...
 
07 20278 augmented reality...
07 20278 augmented reality...07 20278 augmented reality...
07 20278 augmented reality...
 
06 17443 an neuro fuzzy...
06 17443 an neuro fuzzy...06 17443 an neuro fuzzy...
06 17443 an neuro fuzzy...
 
05 20275 computational solution...
05 20275 computational solution...05 20275 computational solution...
05 20275 computational solution...
 
04 20268 power loss reduction ...
04 20268 power loss reduction ...04 20268 power loss reduction ...
04 20268 power loss reduction ...
 
03 20237 arduino based gas-
03 20237 arduino based gas-03 20237 arduino based gas-
03 20237 arduino based gas-
 
02 20274 improved ichi square...
02 20274 improved ichi square...02 20274 improved ichi square...
02 20274 improved ichi square...
 
01 20264 diminution of real power...
01 20264 diminution of real power...01 20264 diminution of real power...
01 20264 diminution of real power...
 
08 20272 academic insight on application
08 20272 academic insight on application08 20272 academic insight on application
08 20272 academic insight on application
 
07 20252 cloud computing survey
07 20252 cloud computing survey07 20252 cloud computing survey
07 20252 cloud computing survey
 
06 20273 37746-1-ed
06 20273 37746-1-ed06 20273 37746-1-ed
06 20273 37746-1-ed
 
05 20261 real power loss reduction
05 20261 real power loss reduction05 20261 real power loss reduction
05 20261 real power loss reduction
 
04 20259 real power loss
04 20259 real power loss04 20259 real power loss
04 20259 real power loss
 
03 20270 true power loss reduction
03 20270 true power loss reduction03 20270 true power loss reduction
03 20270 true power loss reduction
 
02 15034 neural network
02 15034 neural network02 15034 neural network
02 15034 neural network
 
01 8445 speech enhancement
01 8445 speech enhancement01 8445 speech enhancement
01 8445 speech enhancement
 
08 17079 ijict
08 17079 ijict08 17079 ijict
08 17079 ijict
 
07 20269 ijict
07 20269 ijict07 20269 ijict
07 20269 ijict
 
06 10154 ijict
06 10154 ijict06 10154 ijict
06 10154 ijict
 
05 20255 ijict
05 20255 ijict05 20255 ijict
05 20255 ijict
 

Recently uploaded

Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Recently uploaded (20)

Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 

13 9736 shape paper id 0003 (ed l)

  • 1. Indonesian Journal of Electrical Engineering and Computer Science Vol. 8, No. 1, October 2017, pp. 107 ~ 114 DOI: 10.11591/ijeecs.v8.i1.pp107-114  107 Received July 9, 2017; Revised September 15, 2017; Accepted September 30, 2017 Shape Defect Detection using Local Standard Deviation and Rule-Based Classifier for Bottle Quality Inspection Norhashimah Mohd Saad* 1 , Nor Nabilah Syazana Abdul Rahman 2 , Abdul Rahim Abdullah 3 , Mohd Juzaila Abd Latif 4 1,3,4 Center for Robotics and Industrial Automation, Universiti Teknikal Malaysia Melaka, Hang Tuah Jaya, 76100 Durian Tunggal, Melaka, Malaysia 1,2 Faculty of Electronic and Computer Engineering, Universiti Teknikal Malaysia Melaka, Hang Tuah Jaya, 76100 Durian Tunggal, Melaka, Malaysia 3 Faculty of Electrical Engineering, Universiti Teknikal Malaysia Melaka, Hang Tuah Jaya, 76100 Durian Tunggal, Melaka, Malaysia 4 Faculty of Mechanical Engineering, Universiti Teknikal Malaysia Melaka, Hang Tuah Jaya, 76100 Durian Tunggal, Melaka, Malaysia *Corresponding author, e-mail: norhashimah@utem.edu.my Abstract This paper presents shape analysis using Local Standard Deviation (LSD) technique to detect shape defect of the bottle for product quality inspection. The proposed analysis framework includes segmentation, feature extraction, and classification. The shape of the bottle was segmented using LSD technique in order to obtain higher enhancement at the low contrast area and low enhancement at the high contrast area. The contrast gain that was applied in Adaptive Contrast Enhancement (ACE) algorithm, was presented inversely proportional to LSD in order to detect and eliminate background noise at the bottle edge. After the segmentation process, the parameters of the bottle shape such as height, width, area, and extent were extracted and applied in classification stage. The rule-based classifier was used to classify the shape of the bottle either good or defect. The offline experimental results exhibit superior segmentation on performance with 100% accuracy for 100 sample images. This shows that the LSD could be an effective technique to monitor the product quality. Keywords: Shape defect detection; Local Standard Deviation; Adaptive Contrast Enhancement Copyright © 2017 Institute of Advanced Engineering and Science. All rights reserved. 1. Introduction In the history of development and growth economics, visual inspection is widely used to monitor the product quality and reliability in manufacturing industries [1]. The automatic visual inspection is often being utilize by the industry because it provides high efficiency and accuracy during production and inspection processes [2]. Many commercial products such as textile, food, beverage, and medicine employed visual inspection to maintain their product quality. Product inspection in the industry is important because poor product quality will influence customer loyalty and it is not good for long-term marketing [3, 4]. The manual inspection in most manufacturing process mainly depends on human operator to inspect and monitor product quality. However, this traditional method is prone to human error during the inspection process due to fatigue, illness, dull and careless [5]. Generally, the Small and Medium Enterprise (SME) companies were fully utilized the manual inspection in the production line to produce products at low cost in short period of manufacturing process [6]. Therefore, an effective shape detection technique using image processing could enhance the manufacturing process and product quality because it provides high consistency, high accuracy and cost-effectiveness [7]. In shape detection technique, it is important to classify the shape of the object. Previous studies have reported a comparison between shape detection technique to select a proper technique in order to detect shape defect. Shape detection techniques such as adaptive thresholding, morphological operation, and edge detection were used to segment the object in the image [8]. Roy et al., (2014) discovered adaptive thresholding was not capable to segment in the high illumination area of the image and bright image [9]. Meanwhile, morphological
  • 2.  ISSN: 2502-4752 IJEECS Vol. 8, No. 1, October 2017 : 107 – 114 108 operation and edge detection techniques were less accurate and high in computational complexity for high-resolution image [10, 11]. In a study carried out by Cvetkovic et al., (2007), Local Standard Deviation (LSD) is an effective technique to reduce noise in the image [12]. Thus, the image can be well segmented although there is an interruption such as illumination level during image acquisition. This paper presented the analysis of shape defect technique using LSD to obtain the precise shape for image segmentation. LSD offers contrast enhancement technique to improve the low contrast image. It is also low in computational complexity for image segmentation compared to the morphological operation and edge detection [13]. 2. Research Method The image was analysed using the Matlab software in detecting the defects of the bottle shape. Figure 1 shows the analysis framework using image processing technique. The sample image of the bottle (n=100) was obtained using digital camera. The image was then converted from RGB color into grayscale color. The shape of the bottle was segmented using LSD technique to extract the height, width, area, and extent of the bottle. The rule-based classifier was finally implemented to classify the shape defect of the bottle. Figure 1. Analysis framework 2.1. Pre-Processing Nikon D3100 digital camera with 14.2 Megapixel was used to capture the sample image in RGB color format. In the pre-processing stage, the RGB color was converted into grayscale color without changing the pixel value [14]. The brightness of the image pixel was adjusted to be the same value for all pixel’s due to the uneven object illumination [15]. The smoothing process was carried out during the pre-processing stage to eliminate noise and enhance the image for further analysis [16]. 2.2. Segmentation using Local Standard Deviation (LSD) The LSD technique was applied in Adaptive Contrast Enhancement (ACE) algorithm. ACE algorithm is known as an unsharp masking technique that used for low-frequency component of the image [17]. ACE general equation is represented by. [ ]( , ) ( , ) ( , ) ( , ) ( , )x xf i j m i j G i j x i j m i j= + − (1) where mx(i, j) is the local mean, G(i, j) is the contrast gain and x(i, j) is grayscale value for the image pixel. The function of LSD used in ACE algorithm was to correct the low contrast of an image. Singh et al., (2012) observed image enhancement with high contrast gain may cause ringing artifacts and noises to the image. Therefore, the contrast gain in ACE was presented inversely proportional to LSD in order to increase the LSD value and reduce the contrast gain value which detect and eliminate background noise at the object edge [18]. The used of different gain will reduce over enhancement in the image [19]. The LSD information can be expressed as. [ ]( , ) ( , ) ( , ) ( , ) ( , ) x x x D f i j m i j x i j m i j i jσ = + − (2)
  • 3. IJEECS ISSN: 2502-4752  Shape Defect Detection using Local Standard Deviation and… (Norhashimah Mohd Saad) 109 Where x(i, j) is the grayscale value of the image pixel, f(i, j) is enhanced value of x(i, j), mx(i, j) is the local mean,σx(i, j) is the LSD and D are a constant value. From equation 2, LSD is automatically controlled to set proper contrast gain value for the image. The function of grayscale value is shown in Figure 2(a) while the function of LSD is illustrated in Figure 2(b). (a) (b) Figure 2. Bottle image (a) Grayscale image, (b) LSD image 2.3. Feature Extraction The feature of the bottle shape such as height, width, area, and extent were extracted from the binary image to obtain the details information. In this study, extent parameter was used to determine the ratio of the bottle because of its capability to obtain a similar ratio value of an object although the image has different pixel value [20], [21]. The extent formula is presented by. 𝐸𝐸𝐸𝐸𝐸𝐸 = 𝐴𝐴𝐴𝐴 𝑜𝑜 𝑡ℎ𝑒 𝑜𝑜𝑜𝑜𝑜𝑜 𝐴𝐴𝐴𝐴 𝑜𝑜 𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏 𝑏𝑏𝑏 (3) The shape of the bottle was represented in the white pixel as 1 while background image was shown in the black pixel as 0. The area of the object was calculated from the binary image based on the value of 1 (white pixel). Meanwhile, the area of the bounding box was determined by. 𝐴𝐴𝐴𝐴 𝑜𝑜 𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏 𝑏𝑏𝑏 = ℎ𝑒𝑒𝑒ℎ𝑡 𝑥 𝑤𝑤𝑤𝑤ℎ (4) Figure 3 shows bounding box dimension for a rectangle shape. The width and height of the image were measured within the range of x and y axes. Figure 3. Bounding box dimension
  • 4.  ISSN: 2502-4752 IJEECS Vol. 8, No. 1, October 2017 : 107 – 114 110 2.4. Rule-based Classifier The rule-based classifier was implemented in this study to classify the shape defect of the bottle. This is because rule-based offers simple algorithm, easy to understand and high classification performance in detecting the defects based on the given features [22]. In comparing with K-nearest neighbour (k-NN) classification, rule-based classifier can obtain high accuracy for the classification stage and low computation complexity [23]. While k-NN classifier is high computational complexity when increase the number of training data [24]. The shape of bottle is classified as defect condition when the extent value is less than x value or higher than y value. If the extent value is in between the range of x and y value, the bottle shape is in pass condition. The process of classification is illustrated in Figure 4. Figure 4. Classification process 3. Results and Analysis The 100 samples of bottle image, consists of 50 good shape images and 50 shape defect images were analysed using image processing technique. Figure 5 and Figure 6 show the example of the good and defect shape of the bottle. Figure 5. Examples of good shape of bottle image Figure 6. Examples of defect shape of bottle image
  • 5. IJEECS ISSN: 2502-4752  Shape Defect Detection using Local Standard Deviation and… (Norhashimah Mohd Saad) 111 Figure 7 shows the shape analysis process for the defect bottle. The process was started with the conversion of red, green and blue (RGB) color image in Figure 7(a) into a grayscale image in Figure 7(b). The conversion process was applied to reduce the complexity during the analysis. RGB color images were unable to provide details information in order to identify the important edges or features of the object. Besides, the RGB image was easy to be exposed to the noise variations [25]. Thus, the conversion into the grayscale image was important in reducing complexity from 3 dimensional (3D) pixel value into 2 dimensional (2D) pixel value [26]. (a) (b) (c) (d) Figure 7. Shape segmentation process The grayscale image was then transformed into standard deviation image as shown in Figure 7(c). In this process, standard deviation algorithm was applied to segment the shape of the bottle by separating the bottle and the background image. The background noise at the edge of the bottle can be removed by increasing the value of LSD resulting the reduction of contrast gain of the image. Therefore, the shape of the bottle was outlined using the white line to separate between the shape of the bottle and the background image. The standard deviation image was converted into a binary image as shown in Figure 7(d). The shape of the bottle was presented in white pixel (1) while the background image was in the black pixel (0). Finally, the feature extraction parameters were extracted to be used for the classification process where extent parameter was calculated based on the ratio of the bottle area and the bounding box area. Four bottle parameters of height, width, area, and extent extracted from the good and defect shape images were tabulated in Table 1. As expected, both sample images have similar area of bounding box but different value of the bottle area. The area value for good bottle was higher compared to defect bottle which then influenced to the extent value. Table 1. Parameters of bottle shape Sample image Area bounding box (pixel) Area bottle (pixel) Extent Good1 1.29792e+07 3.52914e+06 0.2719 Good2 1.29792e+07 3.50918e+06 0.2704 Defect1 1.29792e+07 3.00041e+06 0.2312 Defect 2 1.29792e+07 3.24855e+06 0.2503 Figure 8 shows the rule-based classifier process to identify the defect shape of the bottle. The maximum and minimum of extent values were selected and used in the rule-based classifier algorithm. The range of the extent value was found to be between 0.2612 and 0.2761. From the rule-based classifier, if the extent value was greater than 0.2761 or lower than 0.2612, the shape of the bottle was classified as a defect condition. While if the extent value was in between 0.2612 and 0.2761, the shape of the bottle was classified as good condition.
  • 6.  ISSN: 2502-4752 IJEECS Vol. 8, No. 1, October 2017 : 107 – 114 112 Figure 8. Rule-based classifier The offline accuracy of good and defect bottle is illustrated in Figure 9. The experimental results show 100% accuracy for good and defect bottles based on 100 samples image. The performance of the analysis to classify the bottle shape defect is depends on the sample number of bottle image. Based on the percentage of the accuracy, it shows the proposed technique capable of detecting the shape defect effectively. Figure 9. Accuracy graph 4. Conclusion This paper presents the analysis of shape defect detection using LSD techniques. The first process is started with a pre-processing stage where the image is corrected and improved to eliminate the noise in the image. Then, LSD technique is used to segment the shape of the bottle. LSD technique shows the ability to segment the shape of the bottle very well by reducing contrast gain in the image. Next, parameters which are height, width, area, and extent parameters are extracted from the image. Extent parameter is used to calculate the ratio of the bottle area. Lastly, the rule-based classifier is applied to classify the defect of the shape bottle either good or defect. The performance of the technique was verified in terms of accuracy. From the experimental result, 100% accuracy was achieved to detect the shape defect of the bottle for 100 samples image. This indicates that the LSD technique could be an effective method to detect shape defect in manufacturing process.
  • 7. IJEECS ISSN: 2502-4752  Shape Defect Detection using Local Standard Deviation and… (Norhashimah Mohd Saad) 113 Acknowledgement The authors would like to thank the Universiti Teknikal Malaysia Melaka (UTeM), UTeM Zamalah Scheme, Rehabilitation Engineering & Assistive Technology (REAT) research group under Center of Robotics & Industrial Automation (CeRIA), Advanced Digital Signal Processing (ADSP) Research Laboratory and Ministry of Higher Education (MOHE), Malaysia for sponsoring this work under project GLuar/STEVIA/2016/FKE-CeRIA/l00009 and the use of the existing facilities to complete this project. References [1] Sarkar B, Saren S. Product inspection policy for an imperfect production system with inspection errors and warranty cost. European Journal of Operational Research. 2016; 248(1): 263-71. [2] Gimenez T, Piovesan C, Braga MM, Raggio DP, Deery C, Ricketts DN, Ekstrand KR, Mendes FM. Visual inspection for caries detection: a systematic review and meta-analysis. Journal of dental research. 2015; 94(7): 895-904. [3] Huang SH, Pan YC. Automated visual inspection in the semiconductor industry: A survey. Computers in industry. 2015; 66: 1-0. [4] Jahanshani AA, Hajizadeh GM, Mirdhamadi SA, Nawaser K, Khaksar SM. Study the effects of customer service and product quality on customer satisfaction and loyalty. [5] Moradi G, Shamsi M, Sedaaghi MH, Moradi S. Apple defect detection using statistical histogram based fuzzy c-means algorithm. InMachine Vision and Image Processing (MVIP). IEEE. 2011 7th Iranian 2011; 16; 1-5. [6] Keskin H, Şentürk C, Sungur O, Kiriş Hm. The Importance of SMEs In Developing Economies. [7] Brosnan T, Sun DW. Improving quality inspection of food products by computer vision–a review. Journal of food engineering. 2004; 61(1): 3-16. [8] Pai YT, Chang YF, Ruan SJ. Adaptive thresholding algorithm: Efficient computation technique based on intelligent block detection for degraded document images. Pattern Recognition. 2010; 43(9): 3177-87. [9] Roy P, Dutta S, Dey N, Dey G, Chakraborty S, Ray R. Adaptive thresholding: a comparative study. In Control, Instrumentation, Communication and Computational Technologies (ICCICCT). IEEE. 2014 International Conference on. 2014; 1182-1186. [10] Maini R, Aggarwal H. Study and comparison of various image edge detection techniques. International journal of image processing (IJIP). 2009; 3(1): 1-1. [11] Pesaresi M, Benediktsson JA. A new approach for the morphological segmentation of high-resolution satellite imagery. IEEE Transactions on Geoscience and Remote Sensing. 2001; 39(2): 309-20. [12] Cvetkovic SD, Schirris J, de With PH. Locally-adaptive image contrast enhancement without noise and ringing artifacts. InImage Processing. ICIP 2007. IEEE International Conference. 2007; 3: III-557. [13] Yuguang Yang and Zheng Zhou. Research and implementation of image enhancement algorithm based on local mean and standard deviation. IEEE Symposium on Electrical & Electronics Engineering (EEESYM), Kuala Lumpur. 2012; 375-378. [14] Atmaja RD, Murti MA, Halomoan J, Suratman FY. An image processing method to convert RGB image into binary. Indonesian Journal of Electrical Engineering and Computer Science. 2016; 3(2): 377-382. [15] Jiang G, Wong CY, Lin SC, Rahman MA, Ren TR, Kwok N, Shi H, Yu YH, Wu T. Image contrast enhancement with brightness preservation using an optimal gamma correction and weighted sum approach. Journal of Modern Optics. 2015; 62(7): 536-47. [16] Rehman A, Saba T. Neural networks for document image preprocessing: state of the art. Artificial Intelligence Review. 2014; 42(2): 253-73. [17] Prakoso BS, Timotius IK, Setyawan I. Palmprint identification for user verification based on line detection and local standard deviation. Information Technology, Computer and Electrical Engineering (ICITACEE), IEEE. 2014 1st International Conference. 2014; 155-159. [18] Singh SS, Singh TT, Devi HM, Sinam T. Local contrast enhancement using local standard deviation. International Journal of Computer Applications. 2012; 47(15). [19] Omer Osama A, Toshihisa Tanaka. Robust image registration based on local standard deviation and image intensity. Information, Communications & Signal Processing, 2007 6th International Conference on. IEEE, 2007. [20] Rege S, Memane R, Phatak M, Agarwal P. 2D geometric shape and color recognition using digital image processing. International journal of advanced research in electrical, electronics and instrumentation engineering. 2013; 2(6): 2479-87. [21] Patel S, Trivedi P, Gandhi V, Prajapati GI. 2D basic shape detection using region properties. International Journal of Engineering Research & Technology. 2013; 2(5): 1147-53.
  • 8.  ISSN: 2502-4752 IJEECS Vol. 8, No. 1, October 2017 : 107 – 114 114 [22] Polychronopoulos D, Weitschek E, Dimitrieva S, Bucher P, Felici G, Almirantis Y. Classification of selectively constrained DNA elements using feature vectors and rule-based classifiers. Genomics. 2014; 104(2): 79-86. [23] Thangaraj M, Vijayalakshmi CR. Performance Study on Rule-based Classification Techniques across Multiple Database Relations. International Journal of Applied Information Systems (IJAIS)–ISSN. 2013: 2249-0868. [24] Khan A, Baharudin B, Lee LH, Khan K. A review of machine learning algorithms for text-documents classification. Journal of advances in information technology. 2010; 1(1): 4-20. [25] Feng X, Li G, Lina G. A New Sub-pixel Edge Detection Method of Color Images. Indonesian Journal of Electrical Engineering and Computer Science. 2014. 12(5): 3609-3615. [26] Dhawan S. A review of image compression and comparison of its algorithms. International Journal of Electronics & Communication Technology, IJECT. 2011; 2(1): 22-6.