mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
fixing issue 9583 - issue in cascadeclassifier code clipObjects
This commit is contained in:
parent
9c973144d8
commit
98e0d13f99
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user