hog default nms clipping negative svm scores to small positive value (Bug #3982)
Description
The bug manifests itself if you are interested in getting detections on the negative side of the svm hyperplane ( e.g. all with score greater than -1)
to fix the bug change
void HOGDescriptor::groupRectangles(vector<cv::Rect>& rectList, vector<double>& weights, int groupThreshold, double eps) const
(line numbers for commit tag 2.4.9)
modules/objdetect/src/hog.cpp:2653 vector<double> foundWeights(nclasses, DBL_MIN);
replace with
vector<double> foundWeights(nclasses, -DBL_MAX);
or better
vector<double> foundWeights(nclasses, -std::numeric_limits<double>::max());
Associated revisions
Merge pull request #3982 from patrikhuber:vs2015-support-master
History
Updated by Steven Puttemans over 10 years ago
Fix added! Will keep up to date if it is merged.
- Pull request set to https://github.com/Itseez/opencv/pull/3382
- Status changed from New to Open
- Assignee set to Steven Puttemans