#523 Fix the problem where the MaxSize parameter in cvHaarDetectObjects does not work when the flag CV_HAAR_SCALE_IMAGE is not set.

pull/29/head
Takahiro Horikawa 13 years ago
parent 5eac0419b2
commit ec45453baa
  1. 7
      modules/objdetect/src/haar.cpp

@ -1531,6 +1531,13 @@ cvHaarDetectObjectsForROC( const CvArr* _img,
continue;
}
if ( winSize.width > maxSize.width || winSize.height > maxSize.height )
{
if( !findBiggestObject )
break;
continue;
}
cvSetImagesForHaarClassifierCascade( cascade, sum, sqsum, tilted, factor );
cvZero( temp );

Loading…
Cancel
Save