Hello,
I developed an vc++ application where it has a dependent files like 5 .xml files.
It is working fine in my computer where as when i run this .exe in other computer the application is getting struck and not respoding and giving error "unable to find the path" that is unable to access the 5 .xml files.
Should i make any changes in the solution. Any other solution where we can resolve this problem.
Any suggestions would be appreciated.
globally declared xml files are:
const char *faceCascadeFilename = "Haarcascade\\haarcascade_frontalface_alt2.xml";
const char *leftEyeCascadeFilename = "Haarcascade\\haarcascade_mcs_lefteye.xml";
const char *rightEyeCascadeFilename = "Haarcascade\\haarcascade_mcs_righteye.xml" ;
const char *nose_cascade = "Haarcascade\\haarcascade_mcs_nose.xml";
const char *mouth_cascade = "Haarcascade\\haarcascade_mcs_mouth.xml";
BOOL CDlg::OnInitDialog()
{
EnrollFromCam(CString sString);
return TRUE;
}
void EnrollFromCam(CString sString)
{
faceCascade = ( CvHaarClassifierCascade *) cvLoad ( faceCascadeFilename, 0, 0, 0 ) ;
leftEyeCascade = ( CvHaarClassifierCascade *) cvLoad ( leftEyeCascadeFilename, 0, 0, 0 ) ;
rightEyeCascade = ( CvHaarClassifierCascade *) cvLoad ( rightEyeCascadeFilename, 0, 0, 0 ) ;
cascade_nose = ( CvHaarClassifierCascade *) cvLoad ( nose_cascade, 0, 0, 0 ) ;
cascade_mouth = ( CvHaarClassifierCascade *) cvLoad ( mouth_cascade, 0, 0, 0 ) ;
if( !(faceCascade || leftEyeCascade ||cascade_nose||cascade_mouth || rightEyeCascade ) )
{
MessageBox(NULL, L"ERROR in EnrollFromCam(): Could not load Haar cascade Face detection classifier in "%s".\n", L"Error", 0);
return;
}
else
{
continue;
}
}