Electronic Science and Technology ›› 2019, Vol. 32 ›› Issue (11): 1-6.doi: 10.16180/j.cnki.issn1007-7820.2019.11.001

    Next Articles

Fruits and Vegetables Recognition Based on Principal Component Analysis and The Ensemble of Distances

MA Suping,JU Zhiyong,WANG Gao   

  1. School of Oplical-Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China
  • Received:2018-11-13 Online:2019-11-15 Published:2019-11-15
  • Supported by:
    National Natural Science Foundation of China(81101116)


In view of the poor fruit and vegetable recognition rate of traditional algorithm, a principal component analysis and distances ensemble for K-nearest neighbor combine recognition method was proposed. This method realized the recognition of fruits and vegetables from feature description, feature dimension reduction and classifier design. For the problems of uneven light and shadow in the picture of fruits and vegetables, K-means clustering was used to divide the picture by combining with the second watershed. Aiming at the problem that the recognition rate of fruit and vegetable recognition model is not high, the color and texture features of the extracted fruit and vegetable images were composed into the feature matrix. The matrix was normalized by the PCA and integrated kNN algorithm and the dimension reduction was obtained to get the low-dimensional classification feature and to finally realize the classification of fruit and vegetable agricultural products. The experimental results showed that the algorithm had the highest recognition rate of 92.6% in the category of fruits and vegetables, and was robust to the changes of illumination and angle of view.

Key words: K-means algorithm, Grabcut algorithm, feature extraction, PCA, distances ensemble kNN, fruits and vegetables recognition

CLC Number: 

  • TP391