电子科技 ›› 2019, Vol. 32 ›› Issue (11): 1-6.doi: 10.16180/j.cnki.issn1007-7820.2019.11.001

• •    下一篇

基于主成分分析与集成距离的果蔬种类识别方法

马素萍,巨志勇,王告   

  1. 上海理工大学 光电信息科学与计算机工程学院,上海 200093
  • 收稿日期:2018-11-13 出版日期:2019-11-15 发布日期:2019-11-15
  • 作者简介:马素萍(1994-),女,硕士研究生。研究方向:图像处理与模式识别,深度学习。|巨志勇(1975-),男,博士,讲师。研究方向:图像处理与模式识别。
  • 基金资助:
    国家自然科学基金(81101116)

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)

摘要:

针对传统果蔬识别率较低的问题,文中采用一种基于主成分分析和距离集成kNN相结合的识别方法。该方法从果蔬图像特征描述、特征降维、分类器设计3个角度出发实现果蔬识别。针对果蔬图片光不均匀、存在阴影等问题,采用K-means 聚类与二次分水岭相结合的方法对图片进行分割。针对果蔬识别模型识别率不高的问题,将所提取果蔬图像的颜色和纹理特征组成特征矩阵,采用PCA与集成kNN算法对该矩阵进行归一化及维数约简来得到低维分类特征,以实现对果蔬农产品的分类。试验结果表明,该算法在果蔬种类识别中识别率最高可达92.6%,且对光照变化、视角变化都具有较好的鲁棒性。

关键词: K-means算法, Grabcut算法, 特征提取, PCA, 距离集成kNN, 果蔬识别

Abstract:

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

中图分类号: 

  • TP391