Visual Based Product Identification System by W.F.R.Madushanka (E/11/252) M.S.P.Muthukumaranage(E/11/267) Supervised by Mr.Mahanama Darmawardhana Interim Report Submitted in partial fulfillment of the requirements for course unit PR 406: Industrial Assignment May 31, 2016 Department of Production Engineering Faculty of Engineering University of Peradeniya
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1
Visual Based Product Identification System
by
W.F.R.Madushanka (E/11/252)
M.S.P.Muthukumaranage(E/11/267)
Supervised by Mr.Mahanama Darmawardhana
Interim Report
Submitted in partial fulfillment of the requirements
for course unit PR 406: Industrial Assignment
May 31, 2016
Department of Production Engineering
Faculty of Engineering
University of Peradeniya
1
Declaration
Declaration We hereby declare that this project report is our original work and is written by us in its
entirety. We have duly acknowledged all the sources of information including all images and tables
which have been used in this report
. …..........................................
M.S.P.Muthukumaranage
…...........................................
W.F.R.Madushanka
2
Acknowledgements
This report carried out the contain of our project Vision based product identification system for the PR
406 cause industrial assignment for the completion of degree of BSc Engineering, University of
Peradeniya.
First of all, our sincere thank goes to the supervisor of the project Mr.MahanamaDarmawardhana
Faculty of Engineering, University of Peradeniya for providing us this opportunity to gain a good
knowledge and experience in project.
We also grateful to everyone who supported us for the successful completion of our project other staff
members of engineering workshop and production department.
M.S.P Muthukumaranage
W.F.R Madusanka
Faculty of Engineering,
University of Peradeniya,
Peradeniya.
3
Executive Summary
The eye is one of the most important organs of the human body. So our skills greatly depend on our
capability to see, detect and categorize objects, and to estimate distances. Most of the industrial jobs
centralized on our ability of visual perception. Today machine vision has improved in production
technologies more and more often extend well beyond the limits of human visual capacities. This is
where machine vision technology comes in.
Our project is on vision based product identification system. In this project machine able to identify
objects based on colour and shape. Our aim is to build a system that can detect, recognize objects
according to the colour shape and barcodes. The whole process should be done in real-time, the thing
that necessities employing fast and efficient algorithms. In addition, the actual implementation of our
system should take practicality and ease of use into account. This is because a system as ours is
intended to be used in daily life and hence needs to be both simple and efficient to use.
There are so many methods to solve this problem. In our project single board computer use OpenCV
and Python as software. OpenCV is open source computer vision library. OpenCV and Python is one
of the best combinations. Instead of personal computer we use raspberry pi minicomputer.
In our project we successfully completed and implemented a vision system that can move objects
through conveyor and detect shape colour in real time.
4
Table of Content
1. Acknowledgement 2
2. Executive Summary 3
Chapter 1 Introduction
1.1 Overview 6
1.2 Problem Description 7
1.3 Software and hardware 7
Chapter 2 Solution Methodology 12
2.1 Install software to raspberry-pi mini computer 13
2.2 Colour detection method 14
2.3 Shape detection method 14
2.4 Process flow chart 15
2.5 Project layout 16
2.6 Limitations 16
Chapter 3 Results
3.1 Colour detection results 17
3.2 Shape detection results 18
Chapter 4 Deliverables 20
Chapter 5 Conclusion 21
References 22
Appendix
5
List of figures
1. Fig 1. Raspberry pi minicomputer 7
2. Fig 2. Light room. 9
3. Fig 3. Ring light. 9
4. Fig 4. Spot light. 9
5. Fig 5. Conveyor. 10
6. Fig 6. RGB colour wheel 13
7. Fig 7. Relationship between hue and saturation 13
8. Fig 8. Relationship among hue saturation value 14
9. Fig 9. Project layout 16
10. Fig 10. Red colour identification 17
11. Fig 11. Bluecolour identification 17
12. Fig 12. Square identification 18
13. Fig 13. Triangular identification 18
14. Fig 14. Circle identification 19
6
CHAPTER 1 – Introduction
1.1 Over view
With the rapid development of the production and manufacturing world demands on production
quality and production rate should be increased. For that instead of human eye and brain, have to use
another vision system. According to the above necessity various vision based product identification
system came to the manufacturing world.
Vision based product identification system is considered with the use of image processing technique.
Image processing is a method of analyzing and manipulating images with a computer or can be define
as capture real image and extract useful information from it. In the image processing input and output
both are images. Basically there are three steps include in image processing.
1. Importing the image via image acquisition
2. Analyzing and manipulating the image
3. Extract useful information and show output image with that information.
There are two types of image processing methods. Analogue image processing and digital image
processing. In the past most of image processing was done by using analogue image processing but
with rapidly development of the computer technology digital image processing overcome analogue
image processing.
There are many applications of vision based product identification system. For automotive visual
inspection system is the one of the major application. It is help to improve product quality and
production rate. In the automotive visual inspection system, we can have identified various kinds of
product, defective product, etc. Therefore, this project is the most helpful to production world.
Vision based product identification system can identify various characteristics. In our project Problem
is detecting objectives according to the colour and shape and send unique data for each object. The
project can be divided into mainly two sections. The first section is image capturing and second
section is image processing. There are large number of methods and large number of sources to solve
the above problem. For both shape and colour detection we can use blob detection method and we can
use large number of software for that. Mathematical algorithms are used to analyze the image. Mat lab,
ENVI can use analyze the image. There are so many open source tools. Such as VLFeat,
BoofCV,ILWIS& GRASS. For our project we use OpenCV. OpenCV is an open source computer vision
library. The library is written in C and C++and runs under Linux, Windows and provides interfaces for Python,
Ruby, Matlab and other languages. OpenCV library contains abundant advanced math functions, image
processing functions, and computer vision functions that span many areas in vision.
7
1.2 Problem Description
Our objective is to build a system that can detect, recognize objects according to the colour shape and
barcodes. The whole process should be done in real-time, the thing that necessities employing fast and
efficient algorithms. In addition, the actual implementation of our system should take practicality and
ease of use into account. This is because a system as ours is intended to be used in daily life and hence
needs to be both simple and efficient to use.
1.3 Software and Hardware
1.3.1 Raspberry pi minicomputer
Instead of personal computer we use raspberry pi 2 circuit. Raspberry pi is a series of credit card sized
single board computer. Raspbian-Jessie use as the operating system for compilation and execution of
image processing programs.
Raspberry pi minicomputer is the critical point of our project. It is slower than modern laptop but still
complete Linux computer and can be provided all expected abilities at a low power consumption level.
Raspberry pi is open hardware.
Fig 1. Raspberry pi minicomputer
8
Raspberry pi minicomputer has following specifications
Table 01 –Raspberry pi specifications
Product name Raspberry pi 2 model B
Product description This is the second generation of raspberry pi. It has an upgraded
Broadcom BCM2836 processor, which is powerful ARM cortex-A7
based quad-core processor that runs at 900MHz.The board also features
an increase in memory capacity to 1Gb.
Specifications
chip Broadcom BCM2836 SoC
Core architecture Quad-core ARM Cortex-A7
CPU 900 MHz
GPU Dual core VideoCore Multimedia co-processor provides open GL ES 2.0,
hardware-accelerated openVG AND 1080P30 H.264 high-profile decode
capable of 1Gpixel/s, 1.5Gtexel/s or 24 GFLOPs with texture filtering
and DMA infrastructure.
Memory 1GB LPDDR2
Operating system Boots from Micro SD card, running a version of the Linux operating