mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-30 19:09:13 +01:00
once a true positive always a true positive
This commit is contained in:
parent
6a8d8bf53d
commit
606fa6f6d5
@ -65,6 +65,10 @@ class CameraState():
|
|||||||
self.callbacks = defaultdict(lambda: [])
|
self.callbacks = defaultdict(lambda: [])
|
||||||
|
|
||||||
def false_positive(self, obj):
|
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)
|
threshold = self.config['objects'].get('filters', {}).get(obj['label'], {}).get('threshold', 0.85)
|
||||||
if obj['computed_score'] < threshold:
|
if obj['computed_score'] < threshold:
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user