为了提高植物叶片识别准确率,提出一种基于余弦定理和K-means的识别方法.该方法首先通过提取叶片的Hu不变矩和形状特征得到叶片的综合特征向量,然后使用K均值聚类(K-means)对各类叶片训练样本的特征向量集合进行聚类以获得聚类中心特征向量,紧接着使用余弦定理计算目标叶片和训练样本的相似度并排序.仿真实验表明:在Flavia植物叶片数据库中进行测试,该文方法以96.03%的概率在前5位发现目标,优于KNN、BP神经网络方法,因此,该方法具有一定的实用价值.
In order to improve the correct rate of identification and classification of plant leaves,a new method combined the cosine theorem with K-means was proposed.Firstly,the comprehensive feature vectors were obtained from Hu invariant moment and shape feature.Secondly,K-means was used to get clustering center vector from the feature set of all kinds of leaf samples.Finally,the cosine theorem was employed to get the blade leaf and the training sample similarity which were sorted.Tested results in the plants leaf set of Flavia show that:this method has a 96.03% probability of target detection in the top five,and is better than KNN,BP neural network method,which makes this method,has some practical value.