Im trying face detection using opencv in android but I unable to load the object detection xml files.
The code is as follows,
.....
static CvHaarClassifierCascade* cascade = 0;
CvMemStorage* storage = 0;
LOGI("before haarcascade");
if (!cascade) {
const char* file = "/Users/Downloads/OpenCV-
2.2.0/data/haarcascadeshaarcascade_frontalface_alt.xml";
cascade = (CvHaarClassifierCascade *)cvLoad(file, 0, 0, 0);
storage = cvCreateMemStorage(0);
}
if(cascade)
LOGI("xml loaded");
else
LOGI("unable to load the xml");
......
In logcat it showing that unable to load the xml.
How to load the xml??
Please someone help me out.
Thanks, Srinivasan