From 606fa6f6d52d65237153dae576e254f45909af1c Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 8 Sep 2020 21:20:57 -0500 Subject: [PATCH] once a true positive always a true positive --- frigate/object_processing.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index 16596a46e..a2d58f621 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -65,6 +65,10 @@ class CameraState(): self.callbacks = defaultdict(lambda: []) def false_positive(self, obj): + # once a true positive, always a true positive + if not obj.get('false_positive', True): + return False + threshold = self.config['objects'].get('filters', {}).get(obj['label'], {}).get('threshold', 0.85) if obj['computed_score'] < threshold: return True