Skip to content

Commit

Permalink
fix: set minimum pedestrian size
Browse files Browse the repository at this point in the history
Signed-off-by: Taekjin LEE <[email protected]>
  • Loading branch information
technolojin committed Mar 12, 2024
1 parent c497588 commit d01e7b5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,13 @@ bool PedestrianTracker::measureWithShape(
return false;
}

// set minimum size
bounding_box_.length = std::max(bounding_box_.length, 0.3);
bounding_box_.width = std::max(bounding_box_.width, 0.3);
bounding_box_.height = std::max(bounding_box_.height, 0.8);
cylinder_.width = std::max(cylinder_.width, 0.3);
cylinder_.height = std::max(cylinder_.height, 0.8);

return true;
}

Expand Down

0 comments on commit d01e7b5

Please sign in to comment.