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.