mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
Set min score for attributes to 0.7
This commit is contained in:
parent
ead03c381b
commit
6262e6d2bc
@ -13,6 +13,7 @@ from pydantic import BaseModel, Extra, Field, parse_obj_as, validator
|
|||||||
from pydantic.fields import PrivateAttr
|
from pydantic.fields import PrivateAttr
|
||||||
|
|
||||||
from frigate.const import (
|
from frigate.const import (
|
||||||
|
ALL_ATTRIBUTE_LABELS,
|
||||||
AUDIO_MIN_CONFIDENCE,
|
AUDIO_MIN_CONFIDENCE,
|
||||||
CACHE_DIR,
|
CACHE_DIR,
|
||||||
DEFAULT_DB_PATH,
|
DEFAULT_DB_PATH,
|
||||||
@ -1077,6 +1078,11 @@ class FrigateConfig(FrigateBaseModel):
|
|||||||
config.mqtt.user = config.mqtt.user.format(**FRIGATE_ENV_VARS)
|
config.mqtt.user = config.mqtt.user.format(**FRIGATE_ENV_VARS)
|
||||||
config.mqtt.password = config.mqtt.password.format(**FRIGATE_ENV_VARS)
|
config.mqtt.password = config.mqtt.password.format(**FRIGATE_ENV_VARS)
|
||||||
|
|
||||||
|
# set min_score for object attributes
|
||||||
|
for attribute in ALL_ATTRIBUTE_LABELS:
|
||||||
|
if not config.objects.filters.get(attribute):
|
||||||
|
config.objects.filters[attribute] = FilterConfig(min_score=0.7)
|
||||||
|
|
||||||
# Global config to propagate down to camera level
|
# Global config to propagate down to camera level
|
||||||
global_config = config.dict(
|
global_config = config.dict(
|
||||||
include={
|
include={
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user