mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-06 05:27:44 +03:00
Remove initial requirement for history
This commit is contained in:
parent
1233bc3a42
commit
580e3e70ad
@ -390,11 +390,6 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
|
|||||||
self.person_face_history.pop(object_id)
|
self.person_face_history.pop(object_id)
|
||||||
|
|
||||||
def weighted_average_by_area(self, results_list: list[tuple[str, float, int]]):
|
def weighted_average_by_area(self, results_list: list[tuple[str, float, int]]):
|
||||||
min_faces = 1 if self.requires_face_detection else 3
|
|
||||||
|
|
||||||
if len(results_list) < min_faces:
|
|
||||||
return "unknown", 0.0
|
|
||||||
|
|
||||||
score_count = {}
|
score_count = {}
|
||||||
weighted_scores = {}
|
weighted_scores = {}
|
||||||
total_face_areas = {}
|
total_face_areas = {}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user