Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi!

from the part of: face_cascade.detectMultiScale(frame_gray, faces, .....) <<-- The faces vector contains all the detected faces. So faces.size() gives you the number of detected faces.

int detected_faces=faces.size();

That simple.