I'm using the opencv tutorial for face detection I have done exactly how they explained, and the code works fine but the part where the xml file should be loaded is giving me the error msg!
if( !face_cascade.load( face_cascade_name ) ){ printf("--(!)Error loading\n"); return -1; };
if( !eyes_cascade.load( eyes_cascade_name ) ){ printf("--(!)Error loading\n"); return -1; };
I have the cascade xml files in my directory.
When I make these two lines as comments, the code works fine and the cam turns on but of course it doesn't detect my face!