Commit 765dea9d authored by marina.kolpakova's avatar marina.kolpakova

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
parent ba27d891
...@@ -512,7 +512,7 @@ public: ...@@ -512,7 +512,7 @@ public:
//! return vector of bounding boxes. Each box contains one detected object //! return vector of bounding boxes. Each box contains one detected object
virtual void detectMultiScale(const Mat& image, const std::vector<cv::Rect>& rois, std::vector<cv::Rect>& objects, virtual void detectMultiScale(const Mat& image, const std::vector<cv::Rect>& rois, std::vector<cv::Rect>& objects,
int step = 4, int rejectfactor = 1); int rejectfactor = 1);
protected: protected:
enum { BOOST = 0 }; enum { BOOST = 0 };
......
This diff is collapsed.
...@@ -55,7 +55,7 @@ TEST(SoftCascade, detect) ...@@ -55,7 +55,7 @@ TEST(SoftCascade, detect)
cv::SoftCascade cascade; cv::SoftCascade cascade;
ASSERT_TRUE(cascade.load(xml)); 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()); ASSERT_FALSE(colored.empty());
std::vector<cv::Rect> objectBoxes; std::vector<cv::Rect> objectBoxes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment