1 | initial version |
The constructor have to be used like that:
HOGDescriptor hog = HOGDescriptor(Size(64, 128), Size(16, 16),Size(8, 8),Size(8, 8), 9,DEFAULT_WIN_SIGMA,0.2, true,DEFAULT_NLEVELS);
or just:
HOGDescriptor hog; //create with default parameters.
And use detect multiscale, not just detect:
vector<Rect> found, locations;
hog.detectMultiScale(img, found, 0, Size(8,8), Size(32,32), 1.05, 2);
p.p.
Look at peopledetect.cpp in sample dir of OpenCV.
2 | No.2 Revision |
The constructor have to be used like that:
HOGDescriptor hog = HOGDescriptor(Size(64, 128), Size(16, 16),Size(8, 8),Size(8, 8), 9,DEFAULT_WIN_SIGMA,0.2, true,DEFAULT_NLEVELS);
or just:
HOGDescriptor hog; //create with default parameters.
And use detect multiscale, not just detect:
vector<Rect> found, locations;
hog.detectMultiScale(img, found, 0, Size(8,8), Size(32,32), 1.05, 2);
p.p.
Look at peopledetect.cpp in sample dir of OpenCV.
3 | No.3 Revision |
The constructor have to be used like that:
HOGDescriptor hog = HOGDescriptor(Size(64, 128), Size(16, 16),Size(8, 8),Size(8, 8), 9,DEFAULT_WIN_SIGMA,0.2, true,DEFAULT_NLEVELS);
or just:
true,DEFAULT_NLEVELS);//custom parameters
HOGDescriptor hog; //create with default parameters.
hog.setSVMDetector(HOGDescriptor::getDefaultPeopleDetector());//Dont forget to load SVMDetector:
And use detect multiscale, not just detect:
vector<Rect> found, locations;
hog.detectMultiScale(img, found, 0, Size(8,8), Size(32,32), 1.05, 2);
p.p.
Look at peopledetect.cpp in sample dir of OpenCV.
4 | No.4 Revision |
The constructor have to be used like that:
HOGDescriptor hog = HOGDescriptor(Size(64, 128), Size(16, 16),Size(8, 8),Size(8, 8), 9,DEFAULT_WIN_SIGMA,0.2, true,DEFAULT_NLEVELS);//custom parameters
HOGDescriptor hog; //create with default parameters.
hog.setSVMDetector(HOGDescriptor::getDefaultPeopleDetector());//Dont forget to load SVMDetector:
And use detect multiscale, not just detect:
vector<Rect> found, locations;
found;
hog.detectMultiScale(img, found, 0, Size(8,8), Size(32,32), 1.05, 2);
p.p.
Look at peopledetect.cpp in sample dir of OpenCV.