Detection of Defects in Glass Using Edge Detection with Adaptive Histogram Equalization

Similar documents
Performance Evaluation of Edge Detection Techniques for Square Pixel and Hexagon Pixel images

INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION

An Informal Method of Village Mapping Using Edge Detection Technique& ISRO- BHUVAN Software

Segmentation of Microscopic Bone Images

Carmen Alonso Montes 23rd-27th November 2015

Automatic Optical Inspection For Mechanical Defect Identification

Color Image Segmentation Using K-Means Clustering and Otsu s Adaptive Thresholding

AN EXPANDED-HAAR WAVELET TRANSFORM AND MORPHOLOGICAL DEAL BASED APPROACH FOR VEHICLE LICENSE PLATE LOCALIZATION IN INDIAN CONDITIONS

Keywords: Image segmentation, pixels, threshold, histograms, MATLAB

Analysis of Satellite Image Filter for RISAT: A Review

Retinal blood vessel extraction

Quality Control of PCB using Image Processing

Processing and Enhancement of Palm Vein Image in Vein Pattern Recognition System

Image Segmentation of Color Image using Threshold Based Edge Detection Algorithm in MatLab

Image Filtering. Median Filtering

Image Enhancement using Histogram Equalization and Spatial Filtering

Removal of Gaussian noise on the image edges using the Prewitt operator and threshold function technical

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

Implementation of Barcode Localization Technique using Morphological Operations

An Approach for Reconstructed Color Image Segmentation using Edge Detection and Threshold Methods

Computer Vision System for Automatic Quality Inspection of Glass Products Used for Food Packaging

Vehicle License Plate Recognition System Using LoG Operator for Edge Detection and Radon Transform for Slant Correction

An Effective Method for Removing Scratches and Restoring Low -Quality QR Code Images

IMPLEMENTATION OF CANNY EDGE DETECTION ALGORITHM ON REAL TIME PLATFORM

Area Extraction of beads in Membrane filter using Image Segmentation Techniques

Reducing Uncertainty in Wind Turbine Blade Health Inspection with Image Processing Techniques. Huiyi Zhang March 2, 2015

Automatic Licenses Plate Recognition System

Scrabble Board Automatic Detector for Third Party Applications

BASIC OPERATIONS IN IMAGE PROCESSING USING MATLAB

Color Image Segmentation in RGB Color Space Based on Color Saliency

Available online at ScienceDirect. Ehsan Golkar*, Anton Satria Prabuwono

IDENTIFICATION OF FISSION GAS VOIDS. Ryan Collette

Detection of Faults Using Digital Image Processing Technique

Vision Review: Image Processing. Course web page:

Design of an Efficient Edge Enhanced Image Scalar for Image Processing Applications

Detection and Verification of Missing Components in SMD using AOI Techniques

International Journal of Pharma and Bio Sciences PERFORMANCE ANALYSIS OF BONE IMAGES USING VARIOUS EDGE DETECTION ALGORITHMS AND DENOISING FILTERS

Correction of Clipped Pixels in Color Images

AUTOMATIC IRAQI CARS NUMBER PLATES EXTRACTION

Bare PCB Inspection and Sorting System

International Journal of Advance Engineering and Research Development

Keyword: Morphological operation, template matching, license plate localization, character recognition.

International Journal of Advanced Research in Computer Science and Software Engineering

Pixel Classification Algorithms for Noise Removal and Signal Preservation in Low-Pass Filtering for Contrast Enhancement

Libyan Licenses Plate Recognition Using Template Matching Method

NON UNIFORM BACKGROUND REMOVAL FOR PARTICLE ANALYSIS BASED ON MORPHOLOGICAL STRUCTURING ELEMENT:

INTERNATIONAL JOURNAL OF COMPUTER ENGINEERING & TECHNOLOGY (IJCET)

][ R G [ Q] Y =[ a b c. d e f. g h I

International Journal of Advance Research in Computer Science and Management Studies

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

An Algorithm and Implementation for Image Segmentation

IMPROVEMENT USING WEIGHTED METHOD FOR HISTOGRAM EQUALIZATION IN PRESERVING THE COLOR QUALITIES OF RGB IMAGE

Robust Invisible QR Code Image Watermarking Algorithm in SWT Domain

Implementing Sobel & Canny Edge Detection Algorithms

Bi-Level Weighted Histogram Equalization with Adaptive Gamma Correction

CURRENCY DETECTION AND DENOMINATION SYSTEM USING IMAGE PROCESSING Pranjal Ambre 1, Ahamadraja Mansuri 2, Harsh Patel 3, Assistant Prof.

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad

A Study for Applications of Histogram in Image Enhancement

Implementation of License Plate Recognition System in ARM Cortex A8 Board

Implementing Morphological Operators for Edge Detection on 3D Biomedical Images

Contrast Enhancement in Digital Images Using an Adaptive Unsharp Masking Method

CSE 564: Scientific Visualization

AUTOMATED MALARIA PARASITE DETECTION BASED ON IMAGE PROCESSING PROJECT REFERENCE NO.: 38S1511

Image Quality Assessment for Defocused Blur Images

CS/ECE 545 (Digital Image Processing) Midterm Review

Image Processing by Bilateral Filtering Method

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

IMAGE PROCESSING PROJECT REPORT NUCLEUS CLASIFICATION

Performance Evaluation of Segmentation Based on RGB Color Model

Wheeler-Classified Vehicle Detection System using CCTV Cameras

Detection of License Plates of Vehicles

Version 6. User Manual OBJECT

Locating the Query Block in a Source Document Image

RESEARCH PAPER FOR ARBITRARY ORIENTED TEAM TEXT DETECTION IN VIDEO IMAGES USING CONNECTED COMPONENT ANALYSIS

CS 445 HW#2 Solutions

CHAPTER 4 LOCATING THE CENTER OF THE OPTIC DISC AND MACULA

KEYWORDS Cell Segmentation, Image Segmentation, Axons, Image Processing, Adaptive Thresholding, Watershed, Matlab, Morphological

Automatic mura detection based on thresholding the fused normalized first and second derivatives in four directions

Computer Graphics Fundamentals

The Classification of Gun s Type Using Image Recognition Theory

Feature Extraction of Human Lip Prints

Brain Tumor Segmentation of MRI Images Using SVM Classifier Abstract: Keywords: INTRODUCTION RELATED WORK A UGC Recommended Journal

Computing for Engineers in Python

A Spatial Mean and Median Filter For Noise Removal in Digital Images

Block Truncation Coding (BTC) Technique for Regions Image Encryption

A Study on Image Enhancement and Resolution through fused approach of Guided Filter and high-resolution Filter

Iris Recognition using Hamming Distance and Fragile Bit Distance

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

Fusion of MRI and CT Brain Images by Enhancement of Adaptive Histogram Equalization

Automated Number Plate Verification System based on Video Analytics

1. (a) Explain the process of Image acquisition. (b) Discuss different elements used in digital image processing system. [8+8]

A Real Time based Image Segmentation Technique to Identify Rotten Pointed Gourds Pratikshya Mohanty, Avinash Kranti Pradhan, Shreetam Behera

Digital images. Digital Image Processing Fundamentals. Digital images. Varieties of digital images. Dr. Edmund Lam. ELEC4245: Digital Image Processing

Image Extraction using Image Mining Technique

ABSTRACT I. INTRODUCTION

Quantitative Analysis of Local Adaptive Thresholding Techniques

Volume 7, Issue 5, May 2017

Preprocessing on Digital Image using Histogram Equalization: An Experiment Study on MRI Brain Image

Fig 1: Error Diffusion halftoning method

Transcription:

Detection of Defects in Glass Using Edge Detection with Adaptive Histogram Equalization Nitin kumar 1, Ranjit kaur 2 M.Tech (ECE), UCoE, Punjabi University, Patiala, India 1 Associate Professor, UCoE, Punjabi University, Patiala, India 2 Abstract: Defects in glass which show poor quality are the major problem for manufacturer in glass making industry. It is very difficult and prone to error process to manually inspect very large size glass. The manual examination process is slow, time consuming and prone to human error. The glass detection technique using image processing provide much relief from error to manufacturer and also provide strength to hold in market providing best quality and low cost glass to customers. In this paper all types of faults are taken. The previous work has been done for only major faults or defects. Detection of defects is based on segmentation using edge detection using gradient approach based on sobel operator. Gray color space and the adaptive histogram technique are used for better contrast and it helps in detection of defects and compares it with the help of structural similarity index (SSIM) parameter with contour detection technique. Keywords: Structural similarity Index (SSIM), Adaptive histogram equalization, gray color space, glass, image segmentation. I. INTRODUCTION Defect free glass provides strength to the manufacturer of glass making industry. In past manual inspection is prominent and play a vital role in glass inspection. But nowadays the detection take place through automatic detection technique provide better reliability, fast and very less prone to error than traditional one. Nowadays An automated visual inspection system is used for detecting and measuring the defects in satin glass and real time system is used [1]. For quality control the technique is used called Color space which specifies and visualizes color. Different color spaces are better for different applications [2]. Five most commonly used color spaces are tested. Researchers randomly select one of the color spaces for color image processing applications. But there should be a way to select a suitable color space according to the purpose because the choice will directly affect final results of image processing [3]. The conversion of color images between RGB, HSV, YCbCr, NTSC, Gray is done. Their conversion efficiency is computed and their performance in quantifying the defect visibility is compared based on which the best color space can be chosen [4]. The RGB color space is recommended if one needs to view and process various defects like scratches, spots, edge defects etc in images. If any color space conversions are required the best choice is RGB to Gray color space conversion which makes the defect visible to largest extent and segmentation using contour region growing method applied for detection of defective areas in glass sheets[5] Copyright to IJIRCCE www.ijircce.com 1321

The rest of the paper is organized as follows: Section 2 is about problem formulation means what types of problems are in previous work. After that section 3 for design methodology, in which steps regarding algorithm takes place. In section 4 implementation of algorithm carried out for detection of defects and the Section 5 discuss the results and last section 6 concludes the paper. II. PROBLEM FORMULATION From research it is analyzed that various color spaces have been analyzed and compare for their performance in quantifying the visibility of defects in digital images. RGB model gives the best detection of fault like scratches, spots, edge defects etc in images but processing in RGB is very slow & computationally inefficient. Image enhancement has been done by ordinary histogram equalization [5]. It is good for the image having distribution of pixel values similar throughout the image but the image contains regions that have darker and lighter than most of the image, the contrast will not enhanced in those regions. In previous work segmentation is done by contour region growing method but it is not suitable for low contrast images [5]. III. DESIGN METHODOLOGY The various possible defects that can be present in a glass sheet can be identified in few steps which include the following:- First read the image. Select RGB color space. Convert RGB to gray model. Image enhancement using adaptive histogram equalization. Image segmentation using edge detection. Segmented image. Inverted segmented image. Fault outline in original image. Copyright to IJIRCCE www.ijircce.com 1322

Read the image Segmented images Select RGB color space Convert RGB to gray model Image enhancement using adaptive histogram equilization Invert segmented image Image segmentation using edge detection Fault outline in original image Fig. 1: Design methodology IV. IMPLEMENTATION In this paper combine a series of images processing steps to solve our purpose of detection based on well defined operators present nowadays. First read the image then select the RGB color space. After that convert the image into gray scale and then segmentation using edge detection takes place. Segmentation is the basic process of image analyses. The goal of segmentation is to simplify and change the representation of an image into something that is more meaningful and easier to analyze. Image segmentation is typically used to locate objects and boundaries (lines, curves, etc.) in images [6]. Edge detection technique is used for segmenting images based on abrupt change in intensity. Sobel operator is used to detect the edges of fault with gradient based approach[7]. The Sobel operator performs a 2-D spatial gradient measurement on an image. Typically it is used to find the approximate absolute gradient magnitude at each point in an input grayscale image. The Sobel edge detector uses a pair of 3x3 convolution masks, one estimating the gradient in the x-direction (columns) and the other estimating the gradient in the y-direction (rows). Copyright to IJIRCCE www.ijircce.com 1323

Fig. 2: (a) G x (b) G y G Gx 2 Gy 2-1 0 +1-1 0 +1-2 0 +2 (a) +1 +2 +1 0 0 0-1 -2-1 (b) (1) (2) G Gx Gy Where G x is the3x3 convolution mask which estimates the gradient in x-direction and G y is the3x3 convolution mask which estimates the gradient in y-direction. Sobel operator is better than prewitt and Roberts operators because of better noise suppression (smoothing) characteristics makes it preferable. Sobel operator is applied on selected image for detection the edges of fault and then invert the image for better visibility of defects. Now compare this technique with contour detection using structural similarity index (SSIM) parameter [8]. The structural similarity (SSIM) index is a method for measuring the similarity between two images. V. RESULTS AND COMPARISON The intended method has been functional to digital images of the glass sheets taken for detecting various defects like scratches, inclusions, surface defects etc using MATLAB and compare it with contour method of detection of defects in glass with the help of Structural similarity (SSIM) index. SSIM provided the similarity between two images. It is full reference matrix in which one image taken as original image as reference and other image is produced by both contour and edge detection method. The complete results have been shown below:- Detection of faults using contour region technique:- Copyright to IJIRCCE www.ijircce.com 1324

(a) (b) (c) Fig. 3: (a) Original image, (b) Final contour, (c) Final detective region Apply the contour regrow method on image figure 3: (a) which is the original image taken for evaluation and in figure 3: (b) show the final contour image and after that figure 3: (c) show the final detective region.the contour method detects fault using region regrow techniqe which takes many iterations and using simple technque for enhancement. In this paper another technique is used which is based on edge detection for segmentation and for enhancement adaptive histogram equilization is used which provide better detection of faults. The outputs of proposed algorithm is shown below:- (a) (b) (c) Fig. 4: (a) Original image, (b) Original gray scale image, (c) Gray scale enhanced image (d) (e) (f) Fig. 5: (d) Binary gradient mask, (e) Dilated gradient mask, (f) Binary image with filling holes Copyright to IJIRCCE www.ijircce.com 1325

(g) (h) (i) Fig. 6: (g) Segmented image, (h) Inverted segmented image, (i) Fault outlined in original image. Figure 4: (a) is original image which is used for analyzed the faults. RGB to gray scale model conversion is applied to figure 4: (a) and show the result of original gray scaled image in figure 4: (b). Enhancement is done by adaptive histogram equalization and enhanced image is shown in figure 4: (c). Edge and the Sobel operator is used to calculate the threshold value, then tune the threshold value and use edge again to obtain a binary mask that contains the fault. Figure 5: (d) shows binary gradient mask. The binary mask that contains the fault is compared to the original image. There are gaps in the lines surrounding the object in the gradient mask. These linear gaps are disappeared by dilate the sobel image using the vertical & horizontal value in strel function shown in figure 5: (e). Binary image is obtained by filling holes in binary mask that contains the fault is shown in figure 5: (f). After this segmented image is obtained by smoothing the binary image with filling holes shown in figure 6: (g). Invert the segmented image for better detection of fault shown in figure 6: (h). The final output of edge detection technique is figure 6: (i) which provide better detection of fault with the subjective point of view because in segmentation most of the comparisons are subjective but in this paper both the detection methods are compare objectively with structural similarity index (SSIM) parameter. Contour detection and edge detection technique applied on many images and compare with SSIM index, some of these images are shown below: (a) (b) (c) (d) Fig. 7: (a), (b), (c), (d) original images Copyright to IJIRCCE www.ijircce.com 1326

Table 1 Structural similarity (SSIM) index values:- Images Contour detection method Edge detection method Fig. 3: (a) 0.913 0.936 Fig. 7: (a) 0.872 0.991 Fig. 7: (b) 0.835 0.887 Fig. 7: (c) 0.854 0.887 Fig. 7: (d) 0.774 0.829 This measure shows that the detected defect shape is more close to original defect in the image by edge detection approach as compared to contour detection method. VI. CONCLUSION In this paper various types of defects are detected using edge detection method present in glass sheets. First a best suited color space is selected for processing based on conversion time and maximum visibility of faults and then gray color space and adaptive histogram equalization for image enhancement for better detection are used. Now final image generated by contour detection method and edge detection method are compared with the help of structural similarity index. SSIM index provide information about defect detected shape is more close to original image or not. The segmentation algorithm using the edge detection method show better results than contour method to detect the various defects. REFERENCES [1] M.A.Coulthard, Image Processing for Automatic Surface Defect Detection, Surface Inspection Ltd, UK, pp.192-196. [2] F. Adamo, F. Attivissimo, A. Di Nisio, M. Savino, An Automated visual inspection system for the glass industry, Proc. of 16th IMEKO TC4 Symposium, Florence, Italy, 2008, [3] Yuanyuan Pu, Xiaomin Wei, Yi Su, Zhengpeng Zhao, Wenhua Qian, Dan Xu, Implementation and Research of Multi-Method Color Transfer Algorithms in Different Color Spaces, International Conference on Machine Vision and Human-machine Interface, IEEE Computer Society, pp.713-717, 2010. [4] Nishu Gupta, Sunil Agrawal, Glass Defect Detection Techniques using Digital Image Processing A Review, IJCA Special Issue on IP Multimedia Communications, pp. 65-67, 2011. [5] Nishu Gupta, Sunil Agrawal, Automated Inspection of Defects in Glass by proper Color space selection and Segmentation Technique of Digital Image processing, Int.J.Computer Technology & Applications,vol 3 (3), 1058-1063,2012 [6] Rafael C. Gonzalez, Richard E. Woods, digital image processing Third Edition,PHI publications. [7] Mr. Manoj K.Vairalkar, Prof. S.U.Nimbhorkar, Edge Detection of Images Using Sobel Operator International Journal of Emerging Technology and Advanced Engineering, vol 2, Issue 1, 2012. [8] Z.Wang, A. C. Bovik, H. R. Sheikh and E. P. Simoncelli, Image quality assessment: From error visibility to structural similarity, IEEE Trans. On Image Processing, Vol. 13, no. 4, pp. 600-612, 2004. Copyright to IJIRCCE www.ijircce.com 1327