1 | initial version |
Hi. To skip the first scales you can downscale the image before running detectMultiScale using resize method.
//assuming img is your input image
// 1. compute scale
const double scale = pow(1.05,13); // scale factor per level = 1.05 and 13 levels to skip
cv::Mat smallerImg;
// 2. compute downscaled roi
const cv::Size sz(cvRound(img.cols/scale), cvRound(img.rows/scale));
// 3. resize image to downscaled roi
resize(img, smallerImg, sz);
// 4. run detectMultiScale