mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-17 15:26:00 +08:00
Fix warnings
This commit is contained in:
@@ -292,7 +292,7 @@ void WaldBoost::fit(Mat& data_pos, Mat& data_neg)
|
||||
}
|
||||
double cascade_threshold = -1;
|
||||
minMaxIdx(pos_trace, &cascade_threshold);
|
||||
cascade_thresholds_.push_back(cascade_threshold);
|
||||
cascade_thresholds_.push_back((float)cascade_threshold);
|
||||
|
||||
std::cerr << "i=" << std::setw(4) << i;
|
||||
std::cerr << " feat=" << std::setw(5) << min_feature_ind;
|
||||
|
@@ -120,7 +120,7 @@ void WBDetectorImpl::train(
|
||||
|
||||
const int stages[] = {64, 128, 256, 512, 1024};
|
||||
const int stage_count = sizeof(stages) / sizeof(*stages);
|
||||
const int stage_neg = pos_imgs.size() * 5;
|
||||
const int stage_neg = (int)(pos_imgs.size() * 5);
|
||||
const int max_per_image = 100;
|
||||
|
||||
const float scales_arr[] = {.3f, .4f, .5f, .6f, .7f, .8f, .9f, 1.0f};
|
||||
|
Reference in New Issue
Block a user