Int. Journal of Electrical & Electronics Engg.
Vol. 2, Spl. Issue 1 (2015)
e-ISSN: 1694-2310 | p-ISSN: 1694-2426
Computer Vision based Model for Fruit Sorting using K-Nearest Neighbour classifier Seema Department of Physics National Institute of Technology Kurukshetra-136119, India E-mail:er.seema5@gmail.com
A. Kumar Department of Physics National Institute of Technology Kurukshetra-136119, India E-mail: ashavani@yahoo.com
Abstract— Food grading and estimation has been observed as a key aspect in the field of food and agriculture. Increasing awareness towards quality of food has opened new opportunities of research in this area. Fruit grading and classification is also an important procedure to increase the quality evaluation in fruits grading which affects the export market. Computer vision plays an important role in automation of fruit classification. Total six varities of fruits and vegetable, i.e. red delicious apples, golden apples, green apples, oranges, bananas and carrots are analyzed. The system uses two image databases, one image database for training on the system and other for implementation of query images. In the packaging industry, color and morphological features are the most important feature for classification of fruits. After preprocessing, segmentation is done to extract the region of interest. In this paper, k mean clustering method is used for segmentation to extract region of interest from background. Color features are extracted from the RGB image and HSI image. Morphological features are calculated from RGB segmented image. In this paper, fruits are classified using the nearest neighbor classifier. Euclidean Distance Metric based kNearest Neighbor Classifier is developed for this particular application. The overall accuracy of the system is 100%. Keywords— Computer Vision; HSI color model; Euclidean distance; k means clustering; k-Nearest Neighbor
I. INTRODUCTION Agro industry means industry, which is connected with agriculture. These industries focus the post-harvest process such as processing the agricultural products after harvest and storing the products for domestic applications. This process also includes cleaning, sorting, grading and packaging. Sorting and grading is one of the post-harvest process which classifies the products based on appearance, size and shape which determines the quality of food products. Sorting is also done by human experts, but is more tedious, time taking process. The above mentioned disadvantages can be overcome by automatic sorting technique through machine vision which is fast, accurate and cost effective. Machine vision includes the capturing the images, analysis and processing of images, making easy to achieve the region of interest and make easy to determine visual quality characteristics in food products. In recent years, many of the agricultural and food industries which include sorting and grading fields of fruits use the image processing and machine vision techniques. The quality
49
G. S. Gill Department of Instrumentation Kurukshetra University Kurukshetra-136119, India E-mail: gsgill@kuk.ac.in
attributes such as shape, size, color and other external features are analyzed using machine vision techniques. Computer Vision is used to capture images from the real world and gather from these. It includes image acquisition, preprocessing, analyzing and understanding the sample images to gather the information in symbolic form or numerical value. The main aim of computer vision is to reproduce the effect of human vision by electronically perceiving and understanding the images [1]. Color is the most striking feature for grading and sorting of fruits and vegetables. Leemans et al. Suggested apple grading method and two types of apple, Golden Delicious and Jonagold were used. Shape and color features were extracted. This method for apple external quality grading gave 72% accuracy for Golden Delicious and 78% Jonagold apples. The grading of healthy fruits was better and an error rate decreases to 5 and 10%, respectively [2]. Liming et al. suggested a system for automatic grading of strawberry. In this L*a*b* color images were obtained from RGB images. Major axis length was calculated and gave information about the size of the sample and color features were extracted from the dominant color model on a* channel. K-means clustering method was used for classification purpose and it gave 90% classification accuracy for shape and 88.8% accuracy for color based grading [3]. Suresha et al. presented automatic grading of apple by support vector machines. In this paper, apple images were captured. These were in the RGB color space and threshold based segmentation was used to extract the region of interest from the background. HSV color model is obtained by RGB color model and average red and green color components were determined for classification. This classifier gave 100% accuracy in grading [4]. Shape or size are also the most important feature for sorting of fruits. Kavdir et al. suggested a method for apple grading by color and size features extraction from apple images. This gave 89% accuracy [5]. Khojastehnazhand et al. presented an approach for sorting and classification of lemon fruits in Visual Basic 6 based upon the color and size. Volume of sample image had been estimated and HSI images were obtained from RGB images. HSI values were extracted and these values were stored in a database. During testing of query image, calculated volume and color of testing image are compared with the saved information in the database. The system gave 94.04% accuracy [6].
NITTTR, Chandigarh
EDIT-2015