Ask Your Question

Revision history [back]

There's no needed for grayscale images. Only thing you needed to do is, be sure "haarcascade_frontalface_alt2.xml" file nearby your source code directory. If not write the whole path to it.

Ps.: you may cheat from .../opencv-(version)/data/haarcascades/haarcascade_frontalface_alt2.xml