Skip to content

Commit

Permalink
fix the bounding box calculation position at 10
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeblackshear committed Feb 19, 2022
1 parent 5a2e395 commit e78662b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frigate/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def update_position(self, id, box):
}
return False

# if there are less than stationary_threshold entries for the position, add the bounding box
# if there are less than 10 entries for the position, add the bounding box
# and recompute the position box
if len(position["xmins"]) < self.detect_config.stationary_threshold:
if len(position["xmins"]) < 10:
position["xmins"].append(xmin)
position["ymins"].append(ymin)
position["xmaxs"].append(xmax)
Expand Down

0 comments on commit e78662b

Please sign in to comment.