#523 Fix the problem where the MaxSize parameter in cvHaarDetectObjects does not work when the flag CV_HAAR_SCALE_IMAGE is not set.
This commit is contained in:
parent
5eac0419b2
commit
ec45453baa
@ -1531,6 +1531,13 @@ cvHaarDetectObjectsForROC( const CvArr* _img,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( winSize.width > maxSize.width || winSize.height > maxSize.height )
|
||||||
|
{
|
||||||
|
if( !findBiggestObject )
|
||||||
|
break;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
cvSetImagesForHaarClassifierCascade( cascade, sum, sqsum, tilted, factor );
|
cvSetImagesForHaarClassifierCascade( cascade, sum, sqsum, tilted, factor );
|
||||||
cvZero( temp );
|
cvZero( temp );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user