hog default nms clipping negative svm scores to small positive value (Bug #3982)


Added by m e over 10 years ago. Updated over 10 years ago.


Status:Done Start date:2014-10-28
Priority:Normal Due date:
Assignee:Steven Puttemans % Done:

0%

Category:objdetect
Target version:2.4.11 Estimated time:0.00 hour
Affected version:2.4.9 (latest release) Operating System:Linux
Difficulty:Easy HW Platform:Any
Pull request:https://github.com/Itseez/opencv/pull/3382

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

Revision 35884a7e
Added by Vadim Pisarevsky almost 10 years ago

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

Updated by Steven Puttemans over 10 years ago

Merged!

  • Status changed from Open to Done

Also available in: Atom PDF