Automatic Classification for Fruits’ Types and Identification of Rotten Ones Using k-NN and SVM
Keywords:Image Processing, Classification, Fruits Detection
Having a system that classifies different types of fruits and identifies the quality of fruits will be of a value in various areas especially in an area of mass production of fruits’ products. This paper presents a novel system that differentiates between four fruits types and identifies the decayed ones from the fresh. The algorithms used are based on the colour and the texture features of the fruits’ images. The algorithms extract the RGB values and the first statistical order and second statistical of the Gray Level Co-occurrence Matrix (GLCM) values. To segregate between the fruits’ types, Fine, Medium, Coarse, Cosine, Cubic, and Weighted K-Nearest Neighbors algorithms are applied. The accuracy percentages of each are 96.3%, 93.8%, 25%, 83.8%, 90%, and 95% respectively. These steps are tested with 46 pictures taken from a mobile phone of seasonal fruits at the time i.e., banana, apple, and strawberry. All types were accurately identifying. To tell apart the decayed fruits from the fresh, the linear and quadratic Support Vector Machine (SVM) algorithms differentiated between them based on the colour segmentation and the texture feature algorithms values of each fruit image. The accuracy of the linear SVM is 96% and quadratic SVM 98%.
How to Cite
The submitting author warrants that the submission is original and that she/he is the author of the submission together with the named co-authors; to the extend the submission incorporates text passages, figures, data or other material from the work of others, the submitting author has obtained any necessary permission.
Articles in this journal are published under the Creative Commons Attribution Licence (CC-BY What does this mean?). This is to get more legal certainty about what readers can do with published articles, and thus a wider dissemination and archiving, which in turn makes publishing with this journal more valuable for you, the authors.
By submitting an article the author grants to this journal the non-exclusive right to publish it. The author retains the copyright and the publishing rights for his article without any restrictions.