Skip to content

Conversation

vlad-shakhuro
Copy link
Contributor

Waldboost improvement project.
Feature quantization was added to training procedure, so now training is much faster.
Waldboost was debugged for face detection with LBP features from OpenCV cascade. Currently it shows similar to rigid cascade quality, but is 1.5-2 times faster.

@vpisarev
Copy link
Contributor

vpisarev commented Jul 1, 2015

@shahurik, thanks for the PR!
Here are some requests:

  1. Please, add the OpenCV license (in addition to OpenCV Foundation, there can also be your copyright) in the beginning of each file.
  2. start each source file (.cpp) with #include "precomp.hpp" to enable the precompiled header mechanism on Windows
  3. instead of putting "using namespace cv" it's preferable to enclose all the functionality in cv::xobjdetect namespace.
  4. I believe, xobjdetect is normal OpenCV module, but one of the files contains main() function. It needs to be moved into a sample.

win_count = min(win_count, stage_neg - bootstrap_count);
Mat window;
for (int k = 0; k < win_count; ++k) {
resize(img(bboxes[indices(k, 0)]), window, Size(24, 24));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bboxes.size() may not equal to confidences.rows, because bboxes are grouped in function boost.detect, this leads to an access exception in line 509, e.g. bboxes.size() is 0 and confidences.rows is 1

const ICFDetector& default_value = ICFDetector());

//! @}
CV_EXPORTS Ptr<WBDetector> create_wbdetector();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, make static WBDetector::create() method instead

@vpisarev
Copy link
Contributor

@shahurik, the code looks pretty good now and the API is much closer to our style than before. May I ask you to add some simple regression test using our googletest-based engine - put some pre-trained cascade for faces and within the test run it on a few pictures and check that it found certain number of faces around certain locations?

@vpisarev
Copy link
Contributor

@shahurik, thanks! can we expect a regression test as well?

@vpisarev vpisarev self-assigned this Nov 3, 2015
@vpisarev
Copy link
Contributor

vpisarev commented Nov 3, 2015

👍

@opencv-pushbot opencv-pushbot merged commit ab72b24 into opencv:master Nov 3, 2015
vpisarev added a commit that referenced this pull request Nov 3, 2015
@gabrielkdc
Copy link

In the CMakeLists.txt I got in the module root folder, there is next single line:
add_subdirectory(waldboost_detector)

but this directory do not exists and CMake complains about it, I just changed it to

add_subdirectory(tools)

And OpenCV generated correctly, maybe you want to check it.

@LorenaGdL
Copy link
Contributor

Are the ICF/ACF detectors completely gone now? o_O

@StevenPuttemans
Copy link

@vpisarev @shahurik could any one of you tell us why ICF/ACF has been deleted by this PR? This seems nonsense? Even if it was slow and underperforming...

@sovrasov sovrasov mentioned this pull request Nov 30, 2016
allnes pushed a commit to allnes/opencv_contrib that referenced this pull request Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants