Eggs Defect Detection using Image Processing

DOI : 10.17577/IJERTV6IS070075

Download Full-Text PDF Cite this Publication

  • Open Access
  • Total Downloads : 602
  • Authors : Norman Dias, Praise Malewadkar, Sweety Naik, Fedrick Carvalho
  • Paper ID : IJERTV6IS070075
  • Volume & Issue : Volume 06, Issue 07 (July 2017)
  • DOI : http://dx.doi.org/10.17577/IJERTV6IS070075
  • Published (First Online): 08-07-2017
  • ISSN (Online) : 2278-0181
  • Publisher Name : IJERT
  • License: Creative Commons License This work is licensed under a Creative Commons Attribution 4.0 International License

Text Only Version

Eggs Defect Detection using Image Processing

Miss Praise Malewadkar Department of Computer Engineering Don Bosco College of Engineering, Fatorda-Goa

Miss Sweety Naik Department of Computer Engineering Don Bosco College of Engineering,

Fatorda-Goa

Mr. Fedrick Carvalho Department of Computer Engineering Don Bosco College of Engineering,

Fatorda-Goa

Mr. Norman Dias Asst. Professor

Department of Computer Engineering Don Bosco College of Engineering, Fatorda-Goa

AbstractThis project deals with the fertility of the eggs based on image processing and RGB color model. Till date Image classification is done on objects based on the external appearance.We aim to do the classification on the internal image. In this research, our aim is to develop a system for the eggs using RGB color model and distinguish between fertile, non-fertile and rotten eggs.Our system employs a computer and camera to analyze and interpret images equivalent to the human eye.The colors namely Red, Green and Blue of the eggs would be investigated using this system. The computer program developed uses the average color intensity to differentiate between the different color and fertility of the egg.

INTRODUCTION

Current approach for Image classification done on objects is based on the external appearance [3]. We aim to do the classification on the internal image. The purpose is to classify eggs as fertilized and non-fertilized as well as separation of defective eggs from qualified ones for safe consumption by using candling and image processing techniques. Till date image classification done on objects based on the external appearance. We aim to do the classification on the internal image.

  1. Aim

    To classify eggs as fertilized and non-fertilized as well as separation of defective eggs from qualified ones for safe consumption by using candling and image processing techniques.

  2. Objective

    Automatic separation of defective eggs from qualified eggs reduces visual control difficulties which are done using human power as well as ensures improvement on the quality control process.In large poultry farms the separation of spoiled and good eggs becomes a problem. So we are converting this manual work into automatic work and improve human errors.

  3. Purpose

    The purpose of this project is to use candling process, image processing techniques and algorithms to create a system that will identify the fertility of the eggs to determine whether it is consumable or not. Automatic separation of defective eggs from qualified eggs reduces visual control difficulties which are done using human power as well as ensures improvement on the quality control process.

    1. EXISTING SYSTEM

      Image processing techniques have been used to classify commercial eggs into their respective grades and to check the cleanliness or dirtiness of the eggs. Image processing techniques such as grayscales conversion, image filtering and black and white pixels conversion have been used to improve the quality of the external image

      1. Problem with existing system

        Image processing technique such as the conversion to black and white image and the calculation of eggs diameter could produce poor results due to pixel degradation. This shall decrease the performance of the system.

      2. Scope of the project

      The eggs are divided into 3 categories: Rotten, fertilized and good. To define the degree of maturity, we use RGB color model.By knowing the degree of maturity of eggs it can be determine whether the egg is consumable or not. An objective and accurate maturity assessment is important which would be efficiently achieved by the proposed system.

    2. HARDWARE MODEL

      Android phone of 16 megapixels is used to capture the image of the egg which passed through the track body over the conveyor belt. The moment and capturing of image is controlled with the Arduino UNO along with the motor driver to control the speed of the motor connected to the track pulley. When the egg reaches to the position sensor, the conveyor belt stops moving due to the delay provided by the Arduino and the LED glows and the image is captured into the phone memory.

      Fig: 3.1 hardware model

    3. HIERARCHY

      200

      150

      100

      50

      0

      Graph of Fridge eggs vs days

      Day 1Day 3Day 5Day 7Day 9 Day

      11

      Day 13

      Day 15

      Day 17

      Day 19

      Red Green Blue

      Fig. 4.1 hierarchy of system

      The eggs are classified using the RGB values calculated after capturing the image. After getting the RGB values the threshold values are calculated of the dataset of fertilized eggs of 16 days and non-fertilized eggs which were kept in the fridge and at room temperature for 20 and 15 days respectively. With respect to the threshold values the eggs were classified into rotten, fertilized and non-fertilized eggs.

    4. OBSERVATION

      The dataset was collected for 16 days of 50 eggs. The images were taken every day of each eggs from Ella farm, Old Goa. The dataset of 50 eggs was collected for 15 days by keeping the eggs at room temperature. The dataset of 50 eggs was collected for 20 days stored into fridge temperature.

      250

      Graph of RGB values vs

      Fig. 5.2 graph of fridge eggs vs days

      In the above graph we can see that the Red, Green, and Blue components of the RGB color model are almost the same with a slight decrease in the Red and Green component. The reason for this is that Fridge eggs takes longer time to get spoilt and hence they remain fresh for a longer time. But after day 20, the egg kept in the fridge starts to crack and cracked eggs are not recommended to consume because bacteria may enter inside the egg.

      Room Temp eggs vs days

      200

      150

      100

      50

      0

      200

      Days

      DayDayDayDayDayDayDayDayDayDayDayDayDayDayDay

      150

      1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

      Red Green Blue

      100

      50

      0

      D

      Day 1

      Day 2

      Day 3

      Day 4

      ay 5

      Day 6

      Day 7

      Day 8

      Day 9

      Day 10

      Day 11

      Day 12

      Day 13

      Day 14

      Day 15

      Day 16

      Red Green Blue

      Fig. 5.3 Graph of RGB values of Room Temperature eggs vs Days

      In the above graph we can see that there is a slight decrease in the Red component, Green component but the Blue component remains almost the same. The eggs stored at room temperature does not stay fresh for a long time and after day 7 they start becoming less fresh. After two weeks the room temperature eggs are non-consumable and start to rot.

      Fig. 5.1 Graph of RGB values vs days

      From the above graph we can see that, as the egg becomes more and more mature, the red value of the RGB color model decreases and the blue component of the RGB color model increases. The egg starts to appear darker in appearance till it becomes fully fertilized and ready to hatch.

      200

      100

      0

      Graph of Rotten eggs

      1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49

      Red Green Blue

      Fig 6.4 Graph of RGB values of rotten eggs

      In the above fig we can see the graph of RGB values of different rotten eggs. The Red component of the rotten egg is always the highest as seen above. Whereas the Blue component is the least. There is no definite pattern in the graph because the rotten egg does not have specific yolk pattern. The yolk inside the egg gets spreaded inside the egg in an irregular fashion and hence we do not get a specific pattern for the rotten egg.

    5. CONCLUSION

      In this project, we designed an Android application to distinguish between consumable and non-consumable eggs.We classified the eggs into 4 categories: Fertilized, room temperature, fridge and rotten eggs.The application calculates the RGB values of the input image and compares it with the threshold values stored in the database and outputs it depending upon the categories and day in which the egg lies. Below are the threshold values calculated form the dataset.

      Fig: 6.1 Threshold values of room temperature eggs

      Fig: 6.2 Threshold values of Fridge eggs

      Fig: 6.3 Threshold values of fertilized eggs

      A. Future Scope

      The image processing technique used in this project to detect the defects in eggs can be further extended by including the edge detection algorithm after applying the RGB color model on the image. Edge detection includes a variety of mathematical methods that aim at identifying points in a digital image at which the image brightness changes sharply or, more formally, has discontinuities. The points at which image brightness changes sharply are typically organized into a set of curved line segments termed edges. The same problem of finding discontinuities in one-dimensional signals is known as step detection and the problem of finding signal discontinuities over time is known as change detection. Edge detection is a fundamental tool in image processing, machine vision and computer vision, particularly in the areas of feature detection and feature extraction.

      In the ideal case, the result of applying an edge detector to an image may lead to a set of connected curves that indicate the boundaries of objects, the boundaries of surface markings as well as curves that correspond to discontinuities in surface orientation. Thus, applying an edge detection algorithm to an image may significantly reduce the amount of data to be processed and may therefore filter out information that may be regarded as less relevant, while preserving the important structural properties of an image. If the edge detection step is successful, the subsequent task of interpreting the information contents in the original image may therefore be substantially simplified. However, it is not always possible to obtain such ideal edges from real life images of moderate complexity.

      Using only the RGB color model in our project may give errors in the output but by extending the project by applying edge detection on the image decreases the error rate as well as improves the probability of correct output, in this case, consumable or non-consumable eggs.

      REFERENCES

      1. Egg freshness detection based on digital image technology- Qiaohua Wang, Xiaoyan Deng, YiLin Ren, Youchun Ding, Lirong Xiong,

        ZhouPing, Youxian Wen and Shucai Wang

      2. Grading and quality Inspection of Defected Eggs Using Machine Vision

        M.H. Dehrouyeh, M.Omid, H.Ahmadi, S.S.Mohtasebi and M.Jamzad

      3. Image Processing of Two Identical and Similar Photos Hazem (Mohd Said) Hatamleh

      4. Segmentation Techniques Comparison in Image Processing – R.

        Yogamangalam and B. Karthikeyam

      5. Improvement in Detection of Chicken Egg Fertility Using Image Processing Techniques – Ms. M. Bhuvaneshwari and Dr. L.M.Palanivelu M.S.

Leave a Reply