fix bugs in the soft cascade detect method; add options for debug logging

- WITH_DEBUG_OUT for logging cascade scales
- DEBUG_STORE_IMAGES for xml matrix serialization
- DEBUG_SHOW_RESULT to see detection result
This commit is contained in:
marina.kolpakova
2012-09-19 09:31:02 +04:00
parent ba27d89173
commit 765dea9ddf
3 changed files with 421 additions and 148 deletions

View File

@@ -55,7 +55,7 @@ TEST(SoftCascade, detect)
cv::SoftCascade cascade;
ASSERT_TRUE(cascade.load(xml));
cv::Mat colored = cv::imread(cvtest::TS::ptr()->get_data_path() + "cascadeandhog/bahnhof/image_00000006_0.png");
cv::Mat colored = cv::imread(cvtest::TS::ptr()->get_data_path() + "cascadeandhog/bahnhof/image_00000000_0.png");
ASSERT_FALSE(colored.empty());
std::vector<cv::Rect> objectBoxes;