使用SVM Python进行图像分类 [英] Image classification using SVM Python

查看:2944
本文介绍了使用SVM Python进行图像分类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在研究一种用于执行图像识别的项目。有一大堆图像,我必须预测图像是否包含给定的特征。
例如,输出可能是图片中是否有香蕉。

I am currently working on a projet to perform image recognition. There is a big set of images and I have to predict whether or not an image contains given characteristics. For example, the output could be whether or not there is a banana in the picture.

我想使用带有输出yes或SVM的SVM实现分类器没有图像包含给定的特征。在具有2个输出的图像上训练SVM分类器的最简单方法是什么?是否有在Python中使用的模板?非常感谢。

I would like to implement a classifier using SVM with output yes or no the image contains the given characteristics. What is the simplest way to train a SVM classifier on images with 2 outputs? Is there any template to use in Python? Thanks a lot.

推荐答案

使用SVM,您可以对图像集进行分类。例如,您可以使用一组汽车和飞机训练svm图像。一旦你训练它,它可以预测未知图像的类别,无论是汽车还是飞机。还有多类SVM。

With SVM you can classify set of images.For example You can train svm with set of car and plane images.Once you trained it can predict the class of an unknown images as whether it is car or plane.There is also multiclass SVM.

在你的情况下,制作两套训练SVM的图像

In your case,Make two sets of images for training SVM


  1. 包含给定特征的图像集(香蕉)

  2. 不包含该特征的图像

一旦您的训练阶段完成,它将输出给定图像所属的类。如果您可以输出香蕉类,否则为否。

Once your training phase completed it will output to which class the given image belong.If its in banana class you can output as Yes otherwise No.

有用的链接


  1. < a href =http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_ml/py_svm/py_svm_opencv/py_svm_opencv.html#svm-opencv\"rel =nofollow>使用python手写数字识别opencv

  2. 使用java的松鼠和鸟类分类器

  1. Hand written Digit Recognition using python opencv
  2. Squirrel and Bird Classifier using java

编辑


  1. 使用python的水果分类器

  1. Fruit classifier using python

这篇关于使用SVM Python进行图像分类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆