Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

String face_cascade_name = "haarcascade_frontalface_alt.xml"; String eyes_cascade_name = "haarcascade_eye_tree_eyeglasses.xml";

you need to replace these strings with the actual location of the cascades they will mostly be in the location where you installed opencv. Or copy them to your directory. If you dont point to the correct address for the cascade it wont work!