mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Cleanup
This commit is contained in:
parent
35c57cfb58
commit
82cd097c2c
@ -201,8 +201,7 @@ class AudioEventMaintainer(threading.Thread):
|
|||||||
if label not in self.config.audio.listen:
|
if label not in self.config.audio.listen:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
filter = self.config.audio.filters
|
if score > (self.config.audio.filters or {}).get(label, {}).get(
|
||||||
if filter is None or score > filter.get(label, {}).get(
|
|
||||||
"threshold", 0.8
|
"threshold", 0.8
|
||||||
):
|
):
|
||||||
self.handle_detection(label, score)
|
self.handle_detection(label, score)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user