video face recognition tutorial problem

asked 2012-11-17 12:44:50 -0500

Dilek Schumacher gravatar image

updated 2012-11-17 12:49:24 -0500

i'm new in opencv and i'm trying to understand this tutorial.

when i compile,web cam is opening but there is no face detection or recognition (no green rectangle or prediction number etc). i just changed these string fn_haar = string(argv[1]); string fn_csv = string(argv[2]); int deviceId = atoi(argv[3]); to these string fn_haar = "C:/haarcascade_frontalface_alt.xml"; string fn_csv = "C:/csv.txt"; int deviceId = 0;

my csv.txt like, C:/brad/brad01.jpg;1 C:/brad/brad02.jpg;1 C:/jenny/jenny01.jpg;2 C:/jenny/jenny02.jpg;2 C:/jenny/jenny03.jpg;2 C:/dilek/dilek01.jpg;3 C:/dilek/dilek02.jpg;3 C:/dilek/dilek03.jpg;3

i found some pictures on the internet and i took my pictures with webcam.i couldn't run the aligning - cropping phyton code,i cropped faces and rescaled them(94x94px.) with online cropping programs (i dont know what i could do)

i'm using win8 pro,vs2010 premium, opencv 2.4.2.i checked opencv with a simple image showing code,it worked.

what am i missing? my face images may be bad but even it couldn't recognize the face,should it be able to detect face and draw a rectangle? how can i crop and resize my pictures?please help..

edit retag flag offensive close merge delete