SVM-Classifier-master

所属分类:matlab编程
开发工具:matlab
文件大小:903KB
下载次数:3
上传日期:2020-08-04 15:28:16
上 传 者钊乐
说明:  SVM对图像进行识别,实现多分类,例子来源于github
(SVM is used to recognize images and realize multi classification)

文件列表:
Classification_Problems (0, 2013-06-22)
Classification_Problems\Chips (0, 2013-06-22)
Classification_Problems\Chips\Bad_Chips (0, 2013-06-22)
Classification_Problems\Chips\Bad_Chips\bad_chip.jpg (53125, 2013-06-22)
Classification_Problems\Chips\Good_Chips (0, 2013-06-22)
Classification_Problems\Chips\Good_Chips\good_chip.jpg (53476, 2013-06-22)
Classification_Problems\Plants (0, 2013-06-22)
Classification_Problems\Plants\Flowers (0, 2013-06-22)
Classification_Problems\Plants\Flowers\miniMERRY0013.jpg (13582, 2013-06-22)
Classification_Problems\Plants\Flowers\minimerry0060.jpg (11408, 2013-06-22)
Classification_Problems\Plants\Flowers\minimerry0066.jpg (8879, 2013-06-22)
Classification_Problems\Plants\Flowers\minimerry0192.jpg (11708, 2013-06-22)
Classification_Problems\Plants\Flowers\minimerry_flor0001.jpg (11914, 2013-06-22)
Classification_Problems\Plants\Flowers\minimerry_flor0004.jpg (11435, 2013-06-22)
Classification_Problems\Plants\Flowers\minimerry_flor0005.jpg (11454, 2013-06-22)
Classification_Problems\Plants\Flowers\minimerry_flor0006.jpg (11507, 2013-06-22)
Classification_Problems\Plants\Flowers\minimerry_flor0008.jpg (11235, 2013-06-22)
Classification_Problems\Plants\Flowers\minimerry_flor0009.jpg (10890, 2013-06-22)
Classification_Problems\Plants\Flowers\minimerry_flor0013.jpg (10907, 2013-06-22)
Classification_Problems\Plants\Flowers\minimerry_florida0003.jpg (12662, 2013-06-22)
Classification_Problems\Plants\Flowers\minimerry_florida0004.jpg (11597, 2013-06-22)
Classification_Problems\Plants\Flowers\minimerry_florida0005.jpg (10958, 2013-06-22)
Classification_Problems\Plants\Flowers\minipippin0112.jpg (9739, 2013-06-22)
Classification_Problems\Plants\Flowers\minipippin0113.jpg (8416, 2013-06-22)
Classification_Problems\Plants\Flowers\minipippin0159.jpg (13539, 2013-06-22)
Classification_Problems\Plants\Flowers\minipippin_jtalon0025.jpg (11618, 2013-06-22)
Classification_Problems\Plants\Flowers\samplemerry0059.jpg (389218, 2013-06-22)
Classification_Problems\Plants\Foliage (0, 2013-06-22)
Classification_Problems\Plants\Foliage\miniMERRY0006.jpg (8770, 2013-06-22)
Classification_Problems\Plants\Foliage\miniMERRY0007.jpg (9663, 2013-06-22)
Classification_Problems\Plants\Foliage\miniMERRY0011.jpg (7908, 2013-06-22)
Classification_Problems\Plants\Foliage\miniMerry_0001_Lasalle.jpg (11440, 2013-06-22)
Classification_Problems\Plants\Foliage\miniMerry_0009_Lasalle.jpg (12215, 2013-06-22)
Classification_Problems\Plants\Foliage\miniMerry_0011_Lasalle.jpg (12322, 2013-06-22)
Classification_Problems\Plants\Foliage\miniMerry_0012_Lasalle.jpg (12497, 2013-06-22)
Classification_Problems\Plants\Foliage\miniMerry_0018_Lasalle.jpg (13708, 2013-06-22)
Classification_Problems\Plants\Foliage\miniMerry_0019_Lasalle.jpg (12578, 2013-06-22)
Classification_Problems\Plants\Foliage\miniMerry_0024_Lasalle.jpg (8706, 2013-06-22)
Classification_Problems\Plants\Foliage\miniMerry_0025_Lasalle.jpg (10692, 2013-06-22)
... ...

SVM-Classifier ============== Example code for how to write a SVM classifier in MATLAB. How to Run: To run the code, create two directories to store two categorical sets of image data. These directories of images will be used to train an SVM classifier. Then, set the two variables in main_script, image_set_directory and image_set_complement_directory,equal to the directory paths where the training images are currently being stored. Finally run the main script to generate an SVM classifier data structure. The SVM classifier data structure can then be used to determine what category an unclassified image best fits. The default configuration of the main_script.m file is two create a SVM classifier to make a classification decision of whether an unclassifed image best fits within a set of flower images, or set of foliage images. The script then proceeds to test how well the generated SVM classifier works by classifying a set unlabeled images and comparing its results to whether the image content is actually a picture of flowers or foliage. The main_script can be changed to skip the testing of the SVM classifier and just return the SVM data structure needed for image classification. Basic Principle: The code works using the Support Vector Machine (SVM) classification algorithm (see en.wikipedia.org/wiki/Support_vector_machine for more information). It is important to keep in mind that an SVM is only capable of making a binary classifiaction. In other words, an SVM can only be trained to differentiate between two categories of training data at a time. Therefore, differentiating between more than two categories at a time is beyond the scope of this program. The SVM in this code is used classify sets of images. To do this, a set of general statisics is generated by finding the corner points in an image and calculating the average and standard deviation of the pixel intesities around the cornor points.

近期下载者

相关文件


收藏者