[modules/objdetect] weights are not updated in HOGDescriptor::detect function. (Bug #2437)
Description
The source file: modules/objdetect/src/hog.cpp.
The problem is that: in the function:
void HOGDescriptor::detect(const Mat& img,
vector<Point>& hits, vector<double>& weights, double hitThreshold,
Size winStride, Size padding, const vector<Point>& locations) const
"weights.clear()" should be added in it. In the current version(2.4.2), this function is called by HOGDescriptor::detectMultiScale and the weights are wrongly updated.
Related issues
duplicates Bug #2439: [modules/objdetect] weights are not updated in HOGDescrip... | Cancelled | 2012-10-14 |
Associated revisions
Merge pull request #2437 from ilya-lavrenov:tapi_morph
History
Updated by Daniil Osokin over 12 years ago
Hi, Yuhang! Please, attach a test to reproduce this bug.
- Assignee set to Yuhang Zhao
- Category set to objdetect
Updated by Marina Kolpakova over 12 years ago
Closed because of duplicate.
- Target version set to 2.4.3
- Assignee changed from Yuhang Zhao to Marina Kolpakova
- Status changed from Open to Cancelled