I want to prepare the data and use the HOG algorithm to detect the pedestrian. Now I can use defaultHog.setSVMDetector(HOGDescriptor::getDefaultPeopleDetector()); in opencv for detection, but the result is not very good for my test video. Therefore, I want training to use my database.
I prepared 1000+ positive samples and 1000+ negative samples. They are cropped to size 50 * 100, and I have a list file.
And I read several guides on the Internet, they are all so complicated, sometimes abstruse. Most of them analyze the source code and the HOG algorithm. But only with less examples and simple animations.
Some instructions show that libsvm\windows\svm-train.exe can be used for training, can anyone give examples in accordance with 1000+ 50 * 100 positive samples?
For example, like haartraing , we can do this from opencv , for example haartraining.exe โa โb with some parameters, and get the *.xml that will be used to detect people?
Or is there another way to learn and discover?
I prefer to know how to use it and the detailed procedures. As a detail algorithm, this is not important to me. I just want to implement it.
If anyone knows about this, please give me some tips.
flammxy
source share