Skip to content

Commit

Permalink
ignore zero area bboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
jveitchmichaelis committed Nov 2, 2019
1 parent c867adc commit ef5530e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/multitracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ void MultiTrackerCV::init(const cv::Mat &image, QList<BoundingBox> bboxes){
// If we are tracking and we have some labelled boxes already
QtConcurrent::blockingMap(bboxes.begin(), bboxes.end(), [&](BoundingBox &bbox)
{
if(bbox.rect.width()*bbox.rect.height() <= 0) return;

auto tracker = createTrackerByName(type_);
tracker->init(image, qrect2cv(bbox.rect));

Expand Down

0 comments on commit ef5530e

Please sign in to comment.