CascadeClassifier Stage Threshold Precision (Bug #1071)
Description
I tracked down a problem where the CascadeClassifier giving some false-negatives. The test set is the same as the training set used for traincascade. I expect the results would be identical.
The issue is the stage 'sum'-thresholding. Traincascade uses CV_THRESHOLD_EPS to limit the precision (?). And predictOrderedStump() from cascadedetect.cpp does not.
Attached is a patch where I added a static constant Stage::THRESHOLD_EPS and used it inside predictOrderedStump(). This could possible be extends to other predictXXX() functions. But I don't have the sample set to verify.
Associated revisions
alter the read stage.threshold to match traincascade behavior (ticket #1071)
History
Updated by Frankie Fong almost 14 years ago
specifying openCV version 2.2
Updated by Vadim Pisarevsky almost 14 years ago
thanks! stage.threshold has been altered to match traincascade values in SVN trunk r5146.
- Status changed from Open to Done
- (deleted custom field) set to fixed