In this recipe, we will build another stop sign classifier. This is obviously just a toy example that serves to illustrate the learning procedure:
- As we explained in the previous recipe, the first step is to collect samples for training. In our example, the set of positive samples that we will be using is as follows:
- And our (very small) set of negative samples is as follows:
- We will now learn how to differentiate between these two classes using SVM, as implemented in the cv::svm class. To build a robust classifier, we ...