[Config Support]: MQTT snapshots do not obey the configured threshold limit #18968
-
Describe the problem you are havingI subscribed for Frigate+ and meanwhile updated min_score and threshold values in my config to higher numbers according to the docs. objects:
filters:
person:
min_score: .75
threshold: .85 I'm following the last detected objects through MQTT in HA dashboard, and now I have noticed that it shows me the objects with score from 75%, even the threshold value is 85%. I somehow understand the difference between the Thanks for the help. Version0.16-beta3 Frigate config filemqtt:
enabled: true
host: 192.168.72.8
client_id: frigate
port: 1883
user: .......
password: ........
tls:
# Disable TLS for port 8971
enabled: false
ffmpeg:
hwaccel_args: preset-intel-qsv-h264
output_args:
record: preset-record-generic-audio-aac
detectors:
ov:
type: openvino
device: GPU
model:
path: plus://f69400e8341d2fe8010271f87d59466e
go2rtc:
streams:
......
record:
enabled: true
retain:
days: 5
mode: all
alerts:
retain:
days: 30
detections:
retain:
days: 30
snapshots:
enabled: true
bounding_box: true
detect:
enabled: true
height: 720
width: 1280
fps: 1
live:
height: 480
objects:
filters:
deer:
min_score: .6
threshold: .8
dog:
min_score: .7
threshold: .9
cat:
min_score: .65
threshold: .8
face:
min_score: .7
license_plate:
min_score: .6
person:
min_score: .75
threshold: .85
car:
min_score: .75
threshold: .85
motion:
enabled: true
threshold: 30
mqtt_off_delay: 30
lightning_threshold: 0.8
improve_contrast: true
cameras:
etupiha:
enabled: true
ffmpeg:
inputs:
- path: rtsp://localhost:8554/etupiha
roles:
- record
- detect
detect:
enabled: true
height: 720
width: 1280
record:
enabled: true
objects:
track:
- person
- cat
- dog
- deer
filters:
person:
mask: 0.887,0.297,0.941,0.289,0.998,0.545,0.912,0.596
motion:
enabled: true
mask: 0.889,0.173,0.902,0,0.001,0.001,0,0.423
threshold: 45
contour_area: 30
improve_contrast: true
reolink:
enabled: true
ffmpeg:
inputs:
- path: rtsp://...
input_args: preset-rtsp-generic
roles:
- detect
- path: rtsp://localhost:8554/reolink
roles:
- record
detect:
enabled: true
width: 640
height: 480
fps: 5
record:
enabled: true
objects:
track:
- person
- bicycle
- car
- cat
- dog
- deer
motion:
enabled: true
mask:
- 0.01,0.016,0.011,0.048,0.305,0.048,0.304,0.016
- 0.002,0.409,0.355,0.3,0.372,0.176,0.634,0.197,0.745,0.214,0.907,0.222,0.878,0.292,0.908,0.414,0.997,0.48,0.998,0.003,0.001,0.002
threshold: 40
contour_area: 20
improve_contrast: true
etuovi:
enabled: true
ffmpeg:
inputs:
- path: rtsp://localhost:8554/etuovi
roles:
- record
- detect
detect:
enabled: true
width: 1152
height: 648
fps: 5
record:
enabled: true
objects:
track:
- person
- cat
- dog
- deer
filters:
person:
mask: 0.028,0.574,0.123,0.985,0.215,0.933,0.127,0.505
motion:
enabled: true
mask:
- 0,0,0,1,0.212,1,0.15,0
- 0.719,0,0.71,0.099,1,0.356,1,0
threshold: 40
contour_area: 15
improve_contrast: true
keittio:
enabled: true
ffmpeg:
inputs:
- path: rtsp://localhost:8554/keittioSub
roles:
- detect
- path: rtsp://localhost:8554/keittio
roles:
- record
detect:
enabled: false
width: 640
height: 360
record:
enabled: true
motion:
enabled: true
threshold: 40
mqtt_off_delay: 30
lightning_threshold: 0.8
improve_contrast: true
contour_area: 20
mask:
- 0,0.29,0.136,0.766,0.226,0.647,0.108,0.186
- 0,0.052,0.357,0.053,0.357,0,0,0.001
piha:
enabled: true
ffmpeg:
inputs:
- path: rtsp://localhost:8554/piha
roles:
- detect
- record
detect:
enabled: true
width: 1152
height: 648
fps: 2
record:
enabled: true
motion:
enabled: true
threshold: 35
contour_area: 15
improve_contrast: true
objects:
track:
- person
- cat
- dog
- deer
olkkari:
enabled: true
ffmpeg:
inputs:
- path: rtsp://localhost:8554/olkkari
roles:
- record
detect:
enabled: false
width: 640
height: 360
record:
enabled: true
motion:
mask:
- 0.192,0.272,0.263,0.26,0.358,0.05,0.362,0.002,0,0.002,0.002,0.049
- 0.833,0.075,0.81,0.294,0.999,0.467,1,0.176
threshold: 40
contour_area: 20
improve_contrast: true
lastenhuone:
enabled: true
ffmpeg:
inputs:
- path: rtsp://localhost:8554/lastenhuone
roles:
- record
record:
enabled: true
detect:
enabled: false
width: 640
height: 360
motion:
enabled: false
mask: 0,0.046,0.356,0.053,0.358,0.001,0,0.001
pinnasanky:
enabled: true
ffmpeg:
inputs:
- path: rtsp://localhost:8554/pinnasanky
roles:
- record
record:
enabled: true
detect:
enabled: false
width: 640
height: 360
motion:
enabled: false
mask: 0.001,0.049,0.357,0.053,0.356,0,0.001,0.001
version: 0.16-0
camera_groups:
Piha:
order: 1
icon: LuBird
cameras:
- etuovi
- etupiha
- piha
- reolink
Sisä:
order: 2
icon: LuBanana
cameras:
- keittio
- lastenhuone
- pinnasanky
- olkkari
Relevant Frigate log outputNo relevant log entries Relevant go2rtc log outputNo relevant go2rtc log entries Frigate statsNo response Operating systemDebian Install methodDocker Compose docker-compose file or Docker CLI commandNot relevant Object DetectorOpenVino Screenshots of the Frigate UI's System metrics pagesNo response Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
There are a few things to consider here:
|
Beta Was this translation helpful? Give feedback.
-
This is working as expected, the MQTT snapshots don't follow the full rules of the events / review items as users generally want faster response times. |
Beta Was this translation helpful? Give feedback.
There are a few things to consider here:
/events
are raw topics without any filters, so they may sometimes have messages for objects that don't appear in the Frigate UI (false positives are one significant example).threshold
andmin_score
interact in various ways. See the official documentation.