# Revision history [back]

you can use it in a very similar way to the HogDetector or the CascadeClassifier:

cv::softcascade::Detector soft;

// load data ( no idea why the other one did not work..)
if ( ! ok ) {
return -1;
}

std::vector<cv::Rect> rois; // where in the image to look for people
// pretty nifty, if you got a bg-separator in front of it, so you only
// need to look at small (moving) parts of the image...
rois.push_back(Rect(0,0,img.cols,img.rows)); //for now, the whole img