A NEW APPROACH FOR INDUSTRIAL PRODUCT INSPECTION BASED ON COMPUTER VISION AND IMAGE PROCESSING TECHNIQUE MOHD KHAIRULDIN BIN HASSAN

Similar documents
NOR NABILAH SYAZANA BINTI ABDUL RAHMAN

PINEAPPLE DISTRIBUTION CLASSIFICATION USING RGB AND FUZZY EZRIN TASNIM BIN ABDUL GANI

BORANG PENGESAHAN STATUS TESIS

A DESIGN METHODOLOGY FOR A SELF-OSCILLATING ELECTRONIC BALLAST AMIRA BINTI MUSTAPA

BORANG PENGESAHAN STATUS TESIS

18V TO 1000V BOOST CONVERTER BENNEDICT BALLY ANAK NAROK UNIVERSITI MALAYSIA PAHANG

DEVELOPMENT OF REMOTELY OPERATED UNDERWATER VEHICLE AFIQ FIKRI BIN HAMID UNIVERSITI MALAYSIA PAHANG

UNIVERSITI MALAYSIA PAHANG BORANG PENGESAHAN STATUS TESIS

BORANG PENGESAHAN STATUS TESIS

LINE TRACKING ROBOT USING VISION SYSTEMS CHE ROHAZLI BIN CHE MAZLAM

FIR FILTER FOR MAKHRAJ RECOGNITION SYSTEM AIMI NADIA AZMI

COMPARISON OF PERFORMANCE OF VARIOUS OP-AMP TOPOLOGIES USING CMOS 0.13µm TECHNOLOGY NURUS SAADAH BT CHE MAT

FABRICATION OF PERPETUAL MOTION WATER DRINKING TOY BIRD CHEE SAI HOW UNIVERSITI MALAYSIA PAHANG

Faculty of Mechanical Engineering UNIVERSITI MALAYSIA PAHANG

STUDY OF DESIGN CONSIDERATION AND PERFORMANCE ANALYSIS OF SUBSTRATE INTEGRATED WAVEGUIDE COMPONENTS ADILAH BINTI ABU SAMAH

DESIGN AND FABRICATE A FLEXIBLE TOILET HOSE WITH SPOOL ABDULLAH MUNZIR BIN ZUL SAFARUDDIN UNIVERSITI MALAYSIA PAHANG

UNIVERSITI MALAYSIA PAHANG BORANG PENGESAHAN STATUS TESIS JUDUL: PREDICTION OF GRINDING MACHANABILITY WHEN GRIND HAYNES 242 USING WATER BASED COOLANT

DEVELOPMENT OF A TOOL TO DESIGN AC HARMONIC FILTER FOR HVDC TRANSMISSION SYSTEM CHA KWAN HUNG. A thesis submitted in fulfillment of the

AN ADAPTIVE ALGORITHM FOR THE TUNING OF TWO INPUT SHAPING METHODS NUR HAFIZAH BINTI HASSAN

MERLIN MIABOT PRO ROBOT SOCCER (2 WHEELS) MUHAMMAD ASYRAF BIN BADARUDDIN

PORTABLE DISTANCE MEASUREMENT MOHD ASHRAF BIN MD SAID

BORANG PENGESAHAN STATUS TESIS

DESIGN AND IMPLEMENTATION OF ORTHOGONAL FREQUENCY DIVISION MULTIPLEXING RECEIVER NORAZNI BINTI YUSOFF

SMART COLOR SORTING ROBOT SITI NADRAH BINTI SELAMAT

IMAGE RESTORATION USING MEAN, MEDIAN AND ADAPTIVE FILTER ADELINE CHUA JIA MIN UNIVERSITI TEKNIKAL MALAYSIA MELAKA

WEARABLE ANTENNA FOR 2.4GHz FREQUENCY FOR WLAN APPLICATION NUR RAFEDAH BINTI SATAR

LOCALIZATION AND POSITIONING via Wi-Fi SIGNALS MOHD IDZWAN BIN OTHMAN

OPTIMUM DESIGN OF RECTIFYING CIRCUIT OF RF ENERGY TRANSFER RAHMIYENI BINTI ASWIR

DESIGN AND ANALYSIS OF A LOW POWER OPERATIONAL AMPLIFIER USING CADENCE NABILAH BINTI SK.ABD.AZIZ

NURHASLINDA BINTI MUSTAFFA KAMAL

PROPAGATION COVERAGE FOR COMMERCIAL BUILDINGS SCENARIOS USING RAY TRACING TECHNIQUES NURUL HASLIN BT NURYA YA

SPEED CONTROL OF PNEUMATIC CYLINDER USING ON/OFF VALVE AND PWM SITI AMIRAH BINTI MOHD PADLI

MICROSTRIP BANDPASS FILTER DESIGN (COMBLINE) MOHAMAD HAMIZAN BIN TUAH

GENERALIZED CHEBYSHEV MICROWAVE FILTER FOR WIDEBAND APPLICATIONS LIM FENG SHENG

DESIGN AND DEVELOPMENT OF SEMG ACQUISITION SYSTEM USING NI MYRIO FOR PROSTHESIS HAND LIAO SHING WEN

DESIGN OF APPLICATION WIRELESS HOME SPEAKER SYAFIQAH BINTI SHAHRUZZAMAN

POWER AMPLIFIER DESIGN FOR ULTRA-WIDEBAND APPLICATIONS MUHAMMAD SYAHIR BIN YOSUF

LINE FOLLOWING ROBOT

PROJECT S TITE EH ZHENG YI

PERFORMANCE EVALUATION OF OPTICAL AMPLIFIER IN WDM SYSTEM PEH PO ING

DESIGN OF THERMOELECTRIC ENERGY HARVESTER USING LTC 3108 BOOST CONVERTER MUHAMMAD ZULHAIZER BIN AB RASHID

WIRELESS WEATHER STATION BY USING ZIGBEE

AN AUTOMATIC POURING MACHINE ADNAN BIN AHMAD

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

THE DESIGN OF ANTIPODAL VIVALDI ANTENNA USING GRAPHENE NURUL SYUHADA BINTI HASIM UNIVERSITI TEKNIKAL MALAYSIA MELAKA

DESIGN AND SIMULATION OF ADAPTIVE CRUISE CONTROL USING MATLAB/SIMULINK MOHD FIRDAUS BIN JAHAR

WIRELESS POWER TRANSFER FOR ELECTRIC VEHICLES AMALUDDIN BIN ZAINUDDIN

UNIVERSITI TEKNIKAL MALAYSIA MELAKA DESIGN ANALYSIS OF A PRESS MACHINE FOR DISPOSABLE PET BOTTLE

FLAME IMAGING USING OPTICAL SENSOR AND LASER NUR FAIQAH BINTI FAUZI

DESIGN OF RECTIFIER WITH IMPEDANCE MATCHING CIRCUIT FOR RF ENERGY HARVESTING ENA BINTI AMILHAJAN

A COMPARATIVE STUDY OF TOPOLOGY CONTROL ALGORITHM IN WIRELESS SENSOR NETWORK MUHAMAD IZZAT AFIFI BIN ROSLAN

MUSIC SYNCHRONIZED LIGHTING SITI HAWA BINTI MAT ISA

DESIGN AND IMPLEMENTATION OF A LOW COST PORTABLE AND COMPACT 2.4 GHZ SPECTRUM ANALYZER

AN ANALYSIS OF SIGLE-LAYER DIFFERENTIAL CPW-FED NOTCHED-BAND TAPERED-SLOT UWB ANTENNA MUHAMMAD FATHI BIN AZHAR

MELISSA SARA ECHA ANAK GABRIEL

VISION SYSTEM BASED HEIGHT MEASURING MACHINE ROZEANA BINTI ABD RAHMAN

WIRELESS ENERGY TRANSFER MOHD NASUHA BIN MOHAMAD ZIN

ENERGY SCAVENGING FOR MOBILE AND WIRELESS DEVICE USING HIGH-EFFICIENCY RECTIFIER CIRCUIT LEE YOUHUI UNIVERSITI TEKNIKAL MALAYSIA MELAKA

SECURITY EQUIPMENT USING BIOMETRICS MUHAMAD FIRDAUS BIN JUSOH

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FINAL YEAR PROJECT 2 BENU 4984 TITLE:

CHILD SAFETY MONITORING SYSTEM

AN ARRAY ANTENNA DESIGN FOR RF ENERGY HARVESTING SYSTEM SHARIF AHMED QASEM AHMED

DESIGN MICROSTRIP PATCH ARRAY ANTENNA WITH GRAPHENE SUBSTANCE BY USING CST SOFTWARE SAIFUL LUQMAN BIN SAIFUDIN UNIVERSITI TEKNIKAL MALAYSIA MELAKA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA DEVELOPMENT OF INTERACTIVE MACHINING PROCESS DESIGN AND MACHINING TIME CALCULATION

Signature : Supervisor : Mr. Loi Wei Sen

THE DESIGN OF OPTIMUM INVERTER JUSTIN ANAK JAMES

Study of Laser Cutting Machine & Its Application in Malaysian Industries

LOG PERIODIC ANTENNA DESIGN SITI NORHIDAYAH BINTI HJ. MOHAMED

CURVE TRACER USING MICROCONTROLLER ASYRAF TAQIUDDIN BIN AHMAT TAHIR

IMPROVED GPS SINGLE POINT POSITIONING USING WEIGHTED LEAST SQUARE METHOD LOH KAH HOW

DUAL THRESHOLD VOLTAGE FOR HIGH PERFORMANCE DOMINO LOGIC

REAL-TIME PHYSICAL HUMAN MACHINE INTERACTION FOR ROBOTIC ARM NURUL ATIQAH BINTI ABD GHANI

ADAPTIVE OFDM WIRELESS COMMUNICATION DEVELOPMENT FOR WIRELESS MEDICAL IMAGE TRANSMISSION IN DIFFERENT RESOLUTION MUHAMMAD WAFI BIN MOHAMAD YUSAK

CENTRALIZED WIRELESS SENSOR NETWORK DEPLOYMENT MAGESWARAN A/L R JAGANATHAN

VOICE ACTIVATED SWITCH NAZARUDDIN BIN MD SHAH

FABRICATION OF UWB BANDPASS FILTER KAMARUL ARIFFIN BIN OMAR. Faculty of Electronic and Computer Engineering Universiti Teknikal Malaysia Melaka

OPTIMIZATION OF POWER AND GAIN IN MOSFET MULTI-STAGE OPERATIONAL AMPLIFIER USING TAGUCHI S APPROACH NURHAZWANI BT HASHIM

DESIGN OF RECTIFYING CIRCUIT WITH IMPROVED RF-DC CONVERSION FOR WIRELESS POWER TRANSFER CHAN CHUN YEW UNIVERSITI TEKNIKAL MALAYSIA MELAKA

COMPACT BUTLER MATRIX DESIGN NORJANNAH BINTI NORDIN

DESIGN OF RF POWER AMPLIFIER WITH DIFFERENT BIASING BASED ON GREEN DESIGN TECHNIQUE MUHAMMAD ASHRAF BIN SABRI

AHMAD RIDZUAN BIN AB. WAHAB

AHMAD HIEDZUANUDDIN BIN AHMAD KHIDIR

MICROSTRIP LEAKY WAVE ANTENNA DESIGN FOR WLAN APPLICATION NURLIYANA BT ABD MALIK

EFFECT OF TERRAIN FEATURES ON WAVE PROPAGATION NURASLINDA BINTI ADNAN

GSM-900 MOBILE JAMMER MOHD ZAIDI BIN HUSIN

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

DESIGN OF DUAL BAND FREQUENCY SELECTIVE SURFACE NORSHAHIDA BINTI MOHD SAIDI B

DESIGN OF REAL-TIME HUMAN MACHINE INTERACTION FOR ROBOTIC ARM WITH MONITORING SYSTEM MUHAMMAD AKMAL SAFIRA BIN SAFIEE

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA OPTIMIZATION OF FDM PARAMETERS WITH TAGUCHI METHOD FOR PRODUCTION OF FLEXIBLE ABS PART

DESIGN OF A LOW NOISE AMPLIFIER FOR 5-6GHz APPLICATIONS NUR DIYANA BINTI ISMAIL

DESIGN OF INTEGRATED FILTER-ANTENNA FOR WIRELESS COMMUNICATIONS NOOR AZIAN BINTI JONO UNIVERSITI TEKNIKAL MALAYSIA MELAKA

UNIVERSITI MALAYSIA SARAWAK

FINGER VEIN VERIFICATION. Krishna Veni A/P Selvan

Universiti Teknikal Malaysia Melaka (UTeM)

MATERIAL DETECTING AND HANDLING ROBOTIC ARM NURULHUDA BINTI JALIL

Design and Development of Grass Cutting Machine using DFMA Methodology

SMS BASED EARLY FLOOD WARNING SYSTEM USING RASPBERRY PI ABDULLAH AZAM BIN SHAHRIN UNIVERSITI TEKNIKAL MALAYSIA MELAKA

Universiti Teknologi Malaysia BORANG PENGESAHAN STATUS TESIS QUALITY CONTROL IN PILE MANAGEMENT SYSTEM SESI PENGAJIAN : 2006/2007

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

Transcription:

i A NEW APPROACH FOR INDUSTRIAL PRODUCT INSPECTION BASED ON COMPUTER VISION AND IMAGE PROCESSING TECHNIQUE MOHD KHAIRULDIN BIN HASSAN This Report Is Submitted In Partial Fulfillment of Requirements For The Bachelor Degree in Electronic Engineering (Computer Engineering) Fakulti Kejuruteraan Elektronik dan Kejuruteraan Komputer Universiti Teknikal Malaysia Melaka June 2014

ii UNIVERSTI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BORANG PENGESAHAN STATUS LAPORAN PROJEK SARJANA MUDA II Tajuk Projek : Sesi Pengajian : A NEW APPROACH FOR INDUSTRIAL PRODUCT INSPECTION BASED ON COMPUTER VISION AND IMAGE PROCESSING TECHNIQUE 1 3 / 1 4 Saya MOHD KHAIRULDIN BIN HASSAN mengaku membenarkan Laporan Projek Sarjana Muda ini disimpan di Perpustakaan dengan syarat-syarat kegunaan seperti berikut: 1. Laporan adalah hakmilik Universiti Teknikal Malaysia Melaka. 2. Perpustakaan dibenarkan membuat salinan untuk tujuan pengajian sahaja. 3. Perpustakaan dibenarkan membuat salinan laporan ini sebagai bahan pertukaran antara institusi pengajian tinggi. 4. Sila tandakan ( ) : SULIT* *(Mengandungi maklumat yang berdarjah keselamatan atau kepentingan Malaysia seperti yang termaktub di dalam AKTA RAHSIA RASMI 1972) TERHAD** **(Mengandungi maklumat terhad yang telah ditentukan oleh organisasi/badan di mana penyelidikan dijalankan) TIDAK TERHAD Disahkan oleh: (TANDATANGAN PENULIS) (COP DAN TANDATANGAN PENYELIA) Tarikh:.. Tarikh:..

iii Saya akui laporan ini adalah hasil kerja saya sendiri kecuali ringkasan dan petikan yang tiap-tiap satunya telah saya jelaskan sumbernya. Tandatangan :.. Nama Penulis : MOHD KHAIRULDIN BIN HASSAN Tarikh :

iv Saya/kami akui bahawa saya telah membaca karya ini pada pandangan saya/kami karya ini adalah memadai dari skop dan kualiti untuk tujuan penganugerahan Ijazah Sarjana Muda Kejuruteraan Elektronik (Elektronik Komputer). Tandatangan :... Nama Penyelia : NORHASHIMAH BINTI MOHD SAAD Tarikh :

To my lovely parents and family. v

vi ACKNOWLEDGEMENT Firstly, praise to Allah SWT for guiding and blessing with perseverance and strength to complete the project. This project will not be possible without the participation of many people. No matter how much work the author put into a project, there are always others who provide valuable guidance and information that enable the completion of the project. First of all, I would like to take this opportunity to express my appreciation to my project supervisor, Mrs. Norhashimah binti Mohd Saad, for her kind tutelage, comments and suggestions in the development of this project. She has offered me sound advice and pushed me to finish this project on time. Besides that, I also would like to express my deepest appreciation to my family members, for the financial and mentally support to complete my Degree studies. Finally, I would like to express my gratitude to all who have direct or indirectly guided me one way or another throughout all stages of preparing this project

vii ABSTRACT Product quality inspection is became a major issue in production and industrial. Quality is commonly related with product and it is very important to satisfy the customer s desire. It is important to maintain the product quality before sending to customer. This project presents an automatic system for product inspection based on computer vision and image processing technique. For the proposed system, soft drink beverage is been used as product that to be tested for quality inspection. The offline system was created to inspect the product based on color and level water quality inspection. A technique for classify the color of product in digital color images is analyzed. The system used Otsu method and quadratic distance classifier to classify the product based on color. For level, the coordinate of image is set to measure the range of water level. All the images for this system has been taken by using digital color camera and save in hard disk for experimental setup. Afterwords, real-time field testing of this system is done by using a web-cam digital camera. Matlab software and its image processing toolbox have been used in the image processing and analysis stage. Graphic User Interface (GUI) for beverage inspection and system by using Matlab software version 7.8.0.347 are achieved. 100% accuracy have been archieved for both offline and online system.

viii ABSTRAK Pemeriksaan kualiti produk adalah menjadi isu utama dalam pengeluaran dan industri. Kualiti biasanya berkaitan dengan produk dan ia adalah sangat penting untuk memuaskan keinginan pelanggan. Adalah penting untuk mengekalkan kualiti produk sebelum menghantar kepada pelanggan. Projek ini membentangkan satu sistem automatik untuk pemeriksaan produk berdasarkan visi komputer dan teknik pemprosesan imej. Untuk sistem yang dicadangkan itu, minuman ringan telah digunakan sebagai produk yang akan diuji untuk pemeriksaan kualiti. Sistem luar talian telah dicipta untuk memeriksa produk berdasarkan warna dan paras pemeriksaan kualiti air. Satu teknik untuk mengelaskan warna produk dalam imej warna digital dianalisis. Sistem ini menggunakan Kaedah Otsu' dan kuadratik pengelas jarak untuk mengklasifikasikan produk. Untuk paras, koordinat imej diatur untuk mengukur julat paras air. Semua imej untuk sistem ini telah diambil dengan menggunakan kamera digital warna dan direkodkan dalam cakera keras untuk persediaan eksperimen. Selepas itu, ujian lapangan masa nyata sistem ini dilakukan dengan menggunakan kamera digital web cam. Perisian Matlab dan toolbox pemprosesan imej telah digunakan dalam pemprosesan dan analisis imej pentas. Antara Muka Pengguna Grafik (GUI) untuk pemeriksaan minuman dan sistem dengan menggunakan perisian Matlab versi 7.8.0.347 tercapai. Ketepatan 100 % telah archieved bagi kedua-dua luar talian dan sistem dalam talian.

ix CONTENTS CONTENT TITLE PROJECT TITLE DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK CONTENTS LIST OF TABLES LIST OF FIGURES LIST OF ABBREVIATION PAGES i ii iii vi vii viii ix xiii xiv xvi I INTRODUCTION 1 1.1 Project Background 1 1.2 Problem Statement 2 1.3 Objectives 4 1.4 Scope 4 1.5 Research Methodology 5 1.6 Thesis Organization 5 II LITERATURE REVIEW 7

x 2.1 Introduction 7 2.2 Color System 8 2.2.1 Color Models 8 2.2.2 RGB Color System 8 2.3 Quality Inspection System 14 2.3.1 Level Inspection in Bottle 14 2.3.2 Product Defect 15 2.4 Platform Automated Quality Inspection 18 2.4.1 Fundamentals of Computer Vision 19 2.4.2 System Hardwae 20 2.4.3 Image Processing and Analysis 21 2.5 Classification System 24 2.5.1 Classification Method 25 III METHODOLOGY 26 3.1 System Overview 27 3.2 Color Prosess 29 3.2.1 Input Image 29 3.2.2 Feature Extraction 30 3.2.2.1 RGB to HSV 30 3.2.2.2 Otsu Method 31 3.2.2.3 Bwareaopen 32 3.2.3 Classification Process 33 3.3 Level Process 34 3.4 Graphical User Interface 36 IV RESULT AND DISCUSSION 37

xi 4.1 Introduction 37 4.2 Experimental Setup 38 4.3 Color Classification Analysis 41 4.4 Level Analysis 49 4.5 Gui Analysis 53 4.6 Analysis Accuracy of System 55 V CONCLUSION AND FUTURE WORK 56 5.1 Overview 56 5.2 Recommendation for Future Development 57 REFERENCES 58

xii LIST OF TABLES NO TITLE PAGE 2.1 Valid values of each RGB component in a safe color 12 4.1 Total samples of images 38 4.2 Value red histogram of reference image 43 4.3 Value green histogram of reference image 43 4.4 Value blue histogram of reference image 44 4.5 Value RGB histogram of reference image 45 4.6 Value red histogram of test image 47 4.7 Value green histogram of test image 47 4.8 Value blue histogram of test image 48 4.9 Value RGB histogram of test image 48

xiii LIST OF FIGURES NO TITLE PAGE 1.1 Six types of product 5 2.1 Schematic of the RGB color cube 9 2.2 RGB 24-bit color cube 10 2.3 (a) Generating the RGB image of the cross-sectional color plane (127, G, B) 11 2.3 (b) The hidden surface planes in the color cube 11 2.4 (a) The 216 safe RGB colors 13 2.4 (b) All the grays in the 256-color RGB system 13 2.5 The RGB safe-color cube 13 2.6 Outline of Bottle level filling System 15 2.7 Over and Under filled bottles 15 2.8 Bottle under-filled or not filled at all 16 2.9 Bottle over-filled 16 2.10 Bottle has label missing 16 2.11 Bottle has label but label printing has failed 16 2.12 Bottle label is not straight 17 2.13 Bottle cap is missing 17 2.14 Bottle is deformed 17 2.15 Normal bottle 17 2.16 Machine Vision System 18

xiv 2.17 Components of a computer vision system 20 2.18 Different levels in the image processing process 22 2.19 Typical segmentation techniques 23 3.1 Overall project flow chart 28 3.2 Color beverage classification process 29 3.3 The single-hexcone model of color space 31 3.4 syntax of Otsu method 32 3.5 syntax of bwareaopen 33 3.6 Quadratic Distance formula 33 3.7 bwareaopen syntax 34 3.8 Flow chart of level process 35 4.1 Six type products of reference image 39 4.2 Six type products of color fail 39 4.3 Six type products of level overfill 40 4.4 Six type product level underfill 40 4.5 Color process of reference image (i1) 42 4.6 Red histogram of reference image 43 4.7 Green histogram of reference image 43 4.8 Blue histogram of reference image 44 4.9 RGB histogram of reference image 45 4.10 Color process of test image (i2) 46 4.11 Red histogram of test image 47 4.12 Green histogram of test image 47 4.13 Blue histogram of test image 48 4.14 RGB histogram of test image 48 4.15 Level PASS 50 4.16 Level OVERFILL 51 4.17 Level UNDERFILL 52 4.18 GUI layout 53

xv 4.19 Complete system GUI 54 4.20 Graf Accuracy of System 55

xvi LIST OF ABBREVIATION GUI - Graphical User Interface RGB - Red, Green and Blue HSV - Hue, Saturation and Value ROI - Region Of Interest

1 CHAPTER 1 INTRODUCTION 1.1 Project Background In industrial nowadays, product inspection is a vital step in the production line process. Because product reliability is most importance, 100 percent inspection of all parts, subassemblies, and finished products is often being attempted. As a result, the inspection process is normally the largest single cost in manufacturing. The most difficult task for inspection is that of inspecting for visual appearance. Visual inspection seeks to identify both functional and defects product. The visual inspection in most manufacturing processes depends mainly on human inspectors whose performance is generally inadequate. The human visual system is adapted to perform in a world of

2 variety and change, the visual inspection process, on the other hand, requires observing the same type of image repeatedly to inspect the product [1]. Some studies [2]-[5], [6] show that the accuracy of human visual inspection declines with dull, endlessly routine jobs. Slow, expensive, erratic inspection is the result. Automated visual inspection is obviously the alternative to the human inspector. The need for industrial automation and show the general acceptance among manufacturers that automated systems will increase productivity and improve product quality [7], [8]. Nowadays many industries upgraded from human to automated visual inspection to inspect everything from pharmaceutical drugs to textile production. Image processing most common used in an industrial setting is for the automated visual inspection of products leaving a production facility. It is estimated that the majority of products bought on supermarket shelves are inspected using automated machine vision based systems prior to dispatch cause to avoid the cost of shipping a faulty or sub-standard item to a supermarket shelf that no-one wants to buy. One of the industry used automated visual inspection is coca-cola for beverage industry [9]. There is dealing with a bottling production line in a facility bottling coca-cola for the domestic market. It has a set of images, taken under near constant factory lighting conditions, of the bottles as they leave the bottling line. The bottling company requires a vision system to automatically identify a number of different faults that may occur during filling, labeling and capping stages of production so that these bottles can be intercepted prior to packaging. Thus, in this project there is dealing with beverage industry to develop algorithm that inspect the quality of beverage product. 1.2 Problem Statement The global beverage manufacturing and packaging industry is one of the most efficient processes in the world. Because of the enormous scale of the current beverage

3 industry, American, European and Asian beverage manufacturers are becoming increasingly better equipped at manufacturing and packaging beverages at high speeds. Today's current market demands are creating challenges for production schedules and are applying pressures for quality standards like never before. Ensuring the quality of products before they reach the retailer s shelf or the consumer is now more important than ever. Now top beverage manufacturers are starting to implement vision inspection programs. A vision inspection program can be a valuable tool for a wide range of beverage manufacturers. The ability of vision inspection to detect and prevent defective product packaging from being distributed to consumers is invaluable. In recent years, retailers and consumers have become much less tolerant of with poor packaging quality that results in either health risks or increased retailer costs because of manual inspection by human. If a vision inspection program is correctly implemented and managed, it can become a powerful tool to reduce rework and help safeguard brand from recalls, increase retailer confidence, protect consumers from defective products. Based on the manual inspection and quality of product issue, this project is conducted to design the quality inspection for beverage product so that later it can be used for automation process. In developing the quality inspection algorithm, new features will be constructed to carry out two processes of the beverage quality inspection. Those processes are classification of good or reject beverage product based on color concentration and level of beverage in bottle.

4 1.3 Objective The objective of this project is: 1. To automate the beverage product quality inspection process. However, the automation process covers a wide range of work, which can be generally categorized into software design and hardware design. In this project, the work focused on the development of beverage product quality inspection algorithm implemented in software. 2. To design algorithms to classify the color concentration of beverage and level of beverage in the bottle. 3. To design GUI for color and level quality inspection. The design GUI will complete the system for software. 1.4 Scope As this project is aiming on designing the algorithms for automated visual quality inspection of beverage product, hence an offline system is considered. By applying the offline system, input images to the system (beverage product image) are captured using digital color camera at indoor environment and store them in a computer hard drive. There are 246 samples used for this work. In this work, algorithm development in software design not focusing on hardware design. The matlab software used to process the sample image as computational tools. This work will classify the sample beverage product based on two conditions which are pass or reject products based on color concentration and level. Only focus on six color of product which are green, red, oren, sarsi, purple and zapple. Figure 1.1 below show the sample of products

5 Figure 1.1: Six types of product 1.5 Research Methodology - Data collection: For sample of product, images were taken by using digital color camera and web-cam. - Analysis of color: Color was analysis by using RGB component, HSV component, Saturation component, Otsu method. - Classification color concentration is using Quadratic Distance Classifier. - Level of water: Level of water in bottle image is set by range of water level which is pass, overfill and underfill. For range of level, two point coordinate was set, if water level between two point level is pass, if above two point level is overfill and if level below two point level is underfill. - GUI was design using user interface available in matlab software. 1.6 Thesis Organization This report contains five chapters. The summary of each chapter will be explained as follow.

6 Chapter 1 will describe about introduction of the automated visual system quality inspection, problem statement that describe the reason for developing the project, objective of the project, scope of work, significant study of the project and thesis organization. Chapter 2 is about review on previous research by other researcher in foreign country. Various methods and approaches that related to our project have been discussed and reviewed. Chapter 3 explains about method that will be used in this project. RGB and HSV color model, Otsu method and Quadratic distance classifier will be applied in this project. Chapter 4 explains about result of the simulation from the 6 type of soft drink. Next, results will be analyzed to classify the reject soft drink based on the concentration and level. Chapter 5 shows overall conclusion for the project. There are some issues in recommendation or suggestion rises about this field of study of project is discussed in this chapter.

7 CHAPTER 2 LITERITURE REVIEW 2.1 Introduction This chapter consists of color system that will be discussed, quality inspection system, platform for automated quality inspection and classification system.

8 2.2 Color System This subsection will be discussed about color system, color model and RGB color system. 2.2.1 Color models The purpose of a color model (also called color space or color system) is to facilitate the specification of colors in some standard, generally accepted way. In essence, a color model is a specification of a coordinate system and a subspace within that system where each color is represented by a single point. Most color models in use today are oriented either toward hardware (such as for color monitors and printers) or toward applications where color manipulations is a goal (such as in the creation of color graphics for animation). In terms of digital image processing, the hardware-oriented models most commonly used in practice are the RGB (red, green, blue) model for color monitors and a broad class of color video cameras [10]. 2.2.2 RGB Color System In the RGB model, each color appears in its primary spectral components of red, green, blue. This model is based on a Cartesian coordinate system. The color subspace of interest is the cube shown in Figure 2.1, in which RGB primary values are at three corners; secondary colors cyan, magenta, and yellow are at three corners; black is at