简体   繁体   中英

Image classification using 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.

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.

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.

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

  1. Set of images that contain given characteristics(banana)
  2. Set of images that doesn't contain that characteristics

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.

Usefull links

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

Edit

  1. Fruit classifier using python

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM