Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think that is possible. You only need to load another cascade (nested cascade) and use the detectMultiScale in the ROI detected by the face cascade. It would be something like as:

CascadeClassifier cascade, nestedCascade;
// make the necessary operations to load the cascades
cascade.detectMultiScale(...);

for( // iterate all the ROIs detected by cascade.detect ){
           nestedCascade.detectMultiScale(...);
}

Take a look at the facedetect.cpp example in the c samples.