fixing issue 9583 - issue in cascadeclassifier code clipObjects

This commit is contained in:
Steven Puttemans 2017-09-09 09:51:20 +02:00
parent 9c973144d8
commit 98e0d13f99

View File

@ -1666,7 +1666,7 @@ void clipObjects(Size sz, std::vector<Rect>& objects,
for( i = 0; i < n; i++ )
{
Rect r = win0 & objects[i];
if( r.area() > 0 )
if( !r.empty() )
{
objects[j] = r;
if( i > j )