【源码】利用多类支持向量机分类器进行植物叶病检测与分类

在这里插入图片描述

本代码将叶片分为以下类型之一:“交链孢属”、“炭疽病”、“细菌性枯萎病”、“蜡孢菌叶斑病”和“健康叶片”。

A Matlab code is written to classify the leaves into one of the following types: ‘Alternaria Alternata’, ‘Anthracnose’, ‘Bacterial Blight’, ‘Cercospora Leaf Spot’ and ‘Healthy Leaves’.

运行步骤如下:

将文件夹’Leaf_Disease_Detection_code’放到Matlab路径下,并将所有子文件夹添加到该路径中。Place the folder ‘Leaf_Disease_Detection_code’ in the Matlab path, and add all the subfolders into that path.

运行DetectDisease_GUI.m

在GUI中单击加载图像,从Manu’s Disease数据集中加载图像,单击增强对比度。In the GUI click on Load Image and load the image from Manu’s Disease Dataset, click Enhance Contrast.

下一步点击分割图像,然后输入包含ROI的簇编号,即,仅疾病影响部分或健康部分。Next click on Segment Image, then enter the cluster no containing the ROI, i.e only the disease affected part or the healthy part

单击分类结果。Click on classification results.

输出测量精度(本代码中为健康叶片 vs. 所有疾病)Then measure accuracy (In this case Healthy vs All diseases).

本代码撰写基于以下参考文献:

[1] Akhtar, Asma, et al. “Automated Plant Disease Analysis (APDA): Performance Comparison of Machine Learning Techniques.” Frontiers of Information Technology (FIT), 2013 11th International Conference on. IEEE, 2013.
[2] Multiclass SVM by Anand Mishra link: http://www.mathworks.com/matlabcentral/fileexchange/33170-multi-class-support-vector-machine

完整源代码下载地址:

http://page5.dfpan.com/fs/1l8c8jf2b211f2b9169/

更多精彩文章请关注微信号:在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42825609/article/details/86467395