mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 12:22:51 +08:00
Merge pull request #9600 from StevenPuttemans:fix_9583
This commit is contained in:
commit
258b13f2e0
@ -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