Skip to content

Commit 516a6cc

Browse files
author
marina.kolpakova
committed
fix bug: depth of resulting tree is less then 2.
1 parent 891d7da commit 516a6cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/softcascade/src/soft_cascade_octave.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ BoostedSoftCascadeOctave::BoostedSoftCascadeOctave(cv::Rect bb, int np, int nn,
116116
_params.truncate_pruned_tree = false;
117117
_params.use_surrogates = false;
118118
_params.use_1se_rule = false;
119-
_params.regression_accuracy = 1.0e-6f;
119+
_params.regression_accuracy = 0;
120120

121121
// boost params
122122
_params.boost_type = CvBoost::GENTLE;
123123
_params.split_criteria = CvBoost::SQERR;
124124
_params.weight_trim_rate = 0.95;
125125

126126
// simple defaults
127-
_params.min_sample_count = 2;
127+
_params.min_sample_count = 0;
128128
_params.weak_count = 1;
129129
}
130130

0 commit comments

Comments
 (0)