ok, let's summarize the 2 approaches.
if you want to detect a single object class (detectMultiscale):
- train:
- crop all positive and negative images to same windowsize(e.g. 24x24). this is the minimum size, that can be detected later
- use train_HOG.cpp (from the samples), to train an SVM(regression), and save it
- detect:
- load the single, pretrained SVM support vector into the HOGDescriptor
- detectMultiscale on an (abitrary sized) grayscale image.
if you want to classify multiple traffic signs:
find contourscontours in large image get boundingRect() of it get image ROI (crop) of that rect, resize to the HOG windowsize, you trained your SVM on get HOG feature from that ROI predict() predict() with that HOG feature