add Detection struct to interface

This commit is contained in:
marina.kolpakova
2012-10-06 21:43:25 +04:00
parent 754fd7311b
commit 8e092f8b5d
4 changed files with 18 additions and 5 deletions

View File

@@ -51,6 +51,7 @@ TEST(SoftCascade, readCascade)
TEST(SoftCascade, detect)
{
typedef cv::SoftCascade::Detection detection_t;
std::string xml = cvtest::TS::ptr()->get_data_path() + "cascadeandhog/sc_cvpr_2012_to_opencv.xml";
cv::SoftCascade cascade;
ASSERT_TRUE(cascade.load(xml));
@@ -58,7 +59,7 @@ TEST(SoftCascade, detect)
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;
std::vector<detection_t> objectBoxes;
std::vector<cv::Rect> rois;
rois.push_back(cv::Rect(0, 0, 640, 480));
// ASSERT_NO_THROW(