Skip to content

Commit

Permalink
added check to detectNet::Overlay()
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed Jul 28, 2020
1 parent 8b399c1 commit e7d6f91
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions c/detectNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,13 @@ bool detectNet::Overlay( void* input, void* output, uint32_t width, uint32_t hei
}
}

// make sure there are actually detections
if( numDetections <= 0 )
{
PROFILER_END(PROFILER_VISUALIZE);
return true;
}

// bounding box overlay
if( flags & OVERLAY_BOX )
{
Expand Down

0 comments on commit e7d6f91

Please sign in to comment.