1 | initial version |
It just depends on what you actually want: Do you want to detect if there is a flower in the image or not, then you need one SVM which you feed with flower and non-flower-descriptors.
Otherwise you'll need to train multiple SVMs, since an SVM is not able to deal with multi-class problems. Basically there exist two strategies:
I don't know which or if one of these versions is integrated at all in OpenCV's SVM implementation (maybe s.o. else can comment on this).
Personally, I am not a big fan of the ML-part of OpenCV (e.g. OpenCV's SVM is based on an old libSVM version), thus I use here Python's scikit-learn module and / or WEKA.