OpenCV friendly xml format for soft cascade

This commit is contained in:
marina.kolpakova
2012-09-12 20:30:21 +04:00
parent c04725b681
commit dc74ce20ab
3 changed files with 279 additions and 241 deletions

View File

@@ -43,16 +43,15 @@
TEST(SoftCascade, readCascade)
{
std::string xml = "/home/kellan/icf-template.xml";
std::string xml = cvtest::TS::ptr()->get_data_path() + "cascadeandhog/icf-template.xml";
cv::SoftCascade cascade;
ASSERT_TRUE(cascade.load(xml));
}
TEST(SoftCascade, Detect)
TEST(SoftCascade, detect)
{
std::string xml = cvtest::TS::ptr()->get_data_path() + "cascadeandhog/softcascade.xml";
std::cout << "PATH: "<< xml << std::endl;
cv::SoftCascade cascade;
ASSERT_TRUE(cascade.load(xml));