Hi.
i want write face detection in opencv by c++ (in vs 2012) but i have problem to load xml file.i uploaded xml file in solution project and give relative address to load xml file but can not load the file,also placed xml file in drive "i" and give the absolute address , But the program is not able to load files.
also all library added by property sheet.please help me to solve this problem,
this is my code:
CascadeClassifier face;
if (face.load("haarcascade_frontalface_alt.xml"))
{
cout << "face_xml file is load";
}
else
{
cout << " face_xml file doesn't load";
}
and :
if (face.load("i:/haarcascade_frontalface_alt.xml"))
{
cout << "face_xml file is load";
}
else
{
cout << " face_xml file doesn't load";
}
and in both way cout "face_xml file doesn't load"
.
thanks.
↧