Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjx committed Oct 4, 2024
1 parent 65a984e commit a101fc4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frigate/object_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,7 @@ def compute_score(self):
decay_factor = 0.8
weighted_sum = sum(score * (decay_factor ** i) for i, score in enumerate(reversed(self.score_history)))
weighted_average = weighted_sum / sum(decay_factor ** i for i in range(len(self.score_history)))

# Use a threshold to determine if the object is a true positive
threshold = self.camera_config.objects.filters[self.obj_data["label"]].threshold
return weighted_average > threshold
return weighted_average

def update(self, current_frame_time: float, obj_data, has_valid_frame: bool):
thumb_update = False
Expand Down

0 comments on commit a101fc4

Please sign in to comment.