cascade classifier - can not open '.xml' file

asked 2013-06-26 02:50:53 -0500

Constantin gravatar image

I want to make an augmented reality app. so first of all i trained a cascade classifier for this marker!

image description

I used cascade training on this image and after 2 days! it finished!! so according to the face detection tutorial I followed the steps but when I want to load the "cascade.xml" file it can not open it and exit the program.

specifically in this code:

CascadeClassifier ARMarker;
if(ARMarker.load("cascade.xml"))
{
    cout<<"can not open the file."<<endl;
    exit(1);
}

is there any help!?

Thanks in advance! :)

edit retag flag offensive close merge delete