摘要
针对颜色和背景相近的绿色苹果,提出了一种基于K-均值聚类的苹果图像识别算法。该算法以8×8像素的正方形区域为分割单位。选择颜色差R-B作为颜色特征,选择灰度均值m,标准偏差σ和熵e作为纹理特征,形成特征向量空间。采用间隙统计法确定苹果图像的最佳聚类数。将特征向量空间和最佳聚类数作为输入,运用本文算法对苹果图像进行聚类和分割。对200幅图像识别实验结果表明,在顺光和逆光情况下,算法均能实现果实与背景的有效分割,果实识别的正确率高于81%。
An apple recognition method based on K-means algorithm is proposed for the green apples that have similar color with leaves.The image is divided into 8×8 pixel blocks and the block is taken as the segmentation unit by the algorithm.Color difference R-B was selected as color feature and mean value,standard deviation and regional entropy of gray scale images are selected as texture features.The feature vectors including color feature and texture features are extracted.Gap statistic is applied to calculate the best number of the clusters.The recognition experiment is conducted to test the algorithm with 200 sample images taken in different illumination conditions.The experimental results show that the apple fruits can be recognized successfully both in front light conditions and back light conditions.The recognition rate reaches 81%.
出处
《农业机械学报》
EI
CAS
CSCD
北大核心
2009年第S1期100-104,共5页
Transactions of the Chinese Society for Agricultural Machinery
基金
国家"863"高技术研究发展计划资助项目(2006AA10Z255)
关键词
苹果
机器视觉
图像识别
K-均值
间隙统计
Apple,Machine vision,Image recognition,K-means algorithm,Gap statistic