1 | initial version |
A couple things to troubleshoot.
HOGDescriptor::getDefaultPeopleDetector()
.getDefaultPeopleDetector()
in your detectMultiScale()
as your hog.xml. Did you train your dataset with the same parameters as getDefaultPeopleDetector
? Meaning, was your model trained on 32x32 images? Take a moment to understand detectMultiScale first. Thereafter, this response will be a good guide in helping you determine what values would make sense for your model..setSVMDetector(const vector<float>& detector)
and const vector<float>& detector
Finally, here's a tutorial on how to use Haar Cascades on C++. You can also Google around for more.
Cheers :)