[Config Support]: MQTT events even though not a legit detect #11501
-
Describe the problem you are havingHope this makes sense. I'll try to keep it brief. Why am I getting events with the false_positive = false when they don't pass the min_area: 1000 threshold? Raw JSON output is in the log box. These events do NOT show up in the events area of Frigate. I can get into the details if needed but briefly I'm using some custom code to send alerts only during specific times and I have Home Assistant switches to disable altering at will. Picture here: Version0.13.2-6476f8a Frigate config filemqtt:
enabled: True
host: 192.168.9.205
port: 1883
topic_prefix: frigate
client_id: frigate
rtmp:
enabled: False
go2rtc:
streams:
driveway:
- rtsp:https://admin:[pass]@192.168.53.110:554/cam/realmonitor?channel=1&subtype=00&authbasic=YWRtaW46amFja2hhbW1lcjg2
driveway_sub:
- rtsp:https://admin:[pass]@192.168.53.110:554/cam/realmonitor?channel=1&subtype=02&authbasic=YWRtaW46amFja2hhbW1lcjg2
front_walk:
- rtsp:https://admin:[pass]@192.168.53.111:554/s0
front_walk_sub:
- rtsp:https://admin:[pass]@192.168.53.111:554/s2
patio_1:
- rtsp:https://admin:[pass]@192.168.53.112:554/s0
patio_1_sub:
- rtsp:https://admin:[pass]@192.168.53.112:554/s2
patio_2:
- rtsp:https://admin:[pass]@192.168.53.118:554/s0
patio_2_sub:
- rtsp:https://admin:[pass]@192.168.53.118:554/s2
backyard:
- rtsp:https://admin:[pass]@192.168.53.113:554/s0
backyard_sub:
- rtsp:https://admin:[pass]@192.168.53.113:554/s2
house_east:
- rtsp:https://admin:[pass]@192.168.53.120:554/s0
house_east_sub:
- rtsp:https://admin:[pass]@192.168.53.120:554/s2
living_room:
- rtsp:https://admin:[pass]@192.168.53.115:554/s0
living_room_sub:
- rtsp:https://admin:[pass]@192.168.53.115:554/s2
den:
- rtsp:https://admin:[pass]@192.168.53.119:554/s0
den_sub:
- rtsp:https://admin:[pass]@192.168.53.119:554/s2
craft_room:
- rtsp:https://admin:[pass]@192.168.53.116:554/s0
craft_room_sub:
- rtsp:https://admin:[pass]@192.168.53.116:554/s2
garage:
- rtsp:https://admin:[pass]@192.168.53.117:554/s0
garage_sub:
- rtsp:https://admin:[pass]@192.168.53.117:554/s2
basement:
- rtsp:https://admin:[pass]@192.168.53.114:554/s0
basement_sub:
- rtsp:https://admin:[pass]@192.168.53.114:554/s2
litter_boxes:
- rtsp:https://admin:[pass]@192.168.53.131:554/h264Preview_01_main
litter_boxes_sub:
- rtsp:https://admin:[pass]@192.168.53.131:554/h264Preview_01_sub
cameras:
driveway:
enabled: True
record:
events:
required_zones:
- driveway_zone
snapshots:
required_zones:
- driveway_zone
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp:https://127.0.0.1:8554/driveway
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp:https://127.0.0.1:8554/driveway_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
motion:
mask:
- 883,60,1236,61,1230,29,878,29
zones:
driveway_zone:
coordinates: 1280,720,1280,213,1099,162,983,136,890,117,673,109,508,108,324,133,170,160,0,213,0,720
inertia: 1
objects:
- person
filters:
person:
min_area: 5000
max_area: 100000
threshold: 0.70
best_image_timeout: 60
ui:
order: 0
dashboard: True
birdseye:
order: 0
mqtt:
enabled: True
timestamp: True
bounding_box: True
crop: False
front_walk:
enabled: True
record:
events:
required_zones:
- front_yard_and_steps
snapshots:
required_zones:
- front_yard_and_steps
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp:https://127.0.0.1:8554/front_walk
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp:https://127.0.0.1:8554/front_walk_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
zones:
front_yard_and_steps:
coordinates: 1024,60,1024,576,463,576,0,576,0,162,179,107,290,167,303,74,510,0,897,0
inertia: 1
objects:
- person
filters:
person:
# min_area: 5000
# max_area: 100000
threshold: 0.75
motion:
lightning_threshold: 0.7
contour_area: 30
threshold: 50
best_image_timeout: 60
ui:
order: 1
dashboard: True
birdseye:
order: 1
mqtt:
enabled: True
timestamp: True
bounding_box: True
crop: False
patio_1:
enabled: True
record:
events:
required_zones:
- patio_1_zone
snapshots:
required_zones:
- patio_1_zone
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp:https://127.0.0.1:8554/patio_1
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp:https://127.0.0.1:8554/patio_1_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
motion:
mask:
- 600,243,611,242,613,225,601,223
- 550,226,562,229,563,209,551,206
zones:
patio_1_zone:
coordinates: 0,576,1024,576,1024,0,0,0
inertia: 1
objects:
- person
filters:
person:
min_area: 1000
# max_area: 100000
threshold: 0.70
best_image_timeout: 60
ui:
order: 2
dashboard: True
birdseye:
order: 2
mqtt:
enabled: True
timestamp: True
bounding_box: True
crop: False
patio_2:
enabled: True
record:
events:
required_zones:
- patio_2_zone
snapshots:
required_zones:
- patio_2_zone
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp:https://127.0.0.1:8554/patio_2
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp:https://127.0.0.1:8554/patio_2_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
zones:
patio_2_zone:
coordinates: 0,576,1024,576,1024,0,0,0
inertia: 1
objects:
- person
filters:
person:
min_area: 5000
max_area: 100000
threshold: 0.75
best_image_timeout: 60
ui:
order: 3
dashboard: True
birdseye:
order: 3
mqtt:
enabled: True
timestamp: True
bounding_box: True
crop: False
backyard:
enabled: True
record:
events:
required_zones:
- backyard_zone
snapshots:
required_zones:
- backyard_zone
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp:https://127.0.0.1:8554/backyard
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp:https://127.0.0.1:8554/backyard_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
motion:
lightning_threshold: 0.7
zones:
backyard_zone:
coordinates: 0,576,1024,576,1024,0,0,0
inertia: 1
objects:
- person
filters:
person:
# min_area: 5000
# max_area: 100000
threshold: 0.70
best_image_timeout: 60
ui:
order: 4
dashboard: True
birdseye:
order: 4
mqtt:
enabled: True
timestamp: True
bounding_box: True
crop: False
house_east:
enabled: True
record:
events:
required_zones:
- side_yard
snapshots:
required_zones:
- side_yard
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp:https://127.0.0.1:8554/house_east
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp:https://127.0.0.1:8554/house_east_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
zones:
side_yard:
coordinates: 865,576,873,69,765,65,628,88,497,134,286,246,0,413,0,576,441,576
inertia: 1
objects:
- person
filters:
person:
# min_area: 5000
# max_area: 100000
threshold: 0.70
best_image_timeout: 60
ui:
order: 5
dashboard: True
birdseye:
order: 5
mqtt:
enabled: True
timestamp: True
bounding_box: True
crop: False
living_room:
enabled: True
record:
events:
required_zones:
- window
- door
snapshots:
required_zones:
- window
- door
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp:https://127.0.0.1:8554/living_room
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp:https://127.0.0.1:8554/living_room_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
zones:
window:
coordinates: 113,314,400,296,400,45,93,88
inertia: 1
objects:
- person
filters:
person:
# min_area: 5000
# max_area: 100000
threshold: 0.75
door:
coordinates: 529,372,770,383,807,48,560,24
inertia: 3
objects:
- person
filters:
person:
# min_area: 5000
# max_area: 100000
threshold: 0.75
best_image_timeout: 60
ui:
order: 6
dashboard: True
birdseye:
order: 6
mqtt:
enabled: True
timestamp: True
bounding_box: True
crop: False
den:
enabled: True
record:
events:
required_zones:
- den_zone
snapshots:
required_zones:
- den_zone
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp:https://127.0.0.1:8554/den
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp:https://127.0.0.1:8554/den_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
zones:
den_zone:
coordinates: 0,576,1024,576,1024,0,0,0
inertia: 1
objects:
- person
filters:
person:
min_area: 5000
max_area: 100000
threshold: 0.75
best_image_timeout: 60
ui:
order: 7
dashboard: True
birdseye:
order: 7
mqtt:
enabled: True
timestamp: True
bounding_box: True
crop: False
craft_room:
enabled: True
record:
events:
required_zones:
- craft_room_zone
snapshots:
required_zones:
- craft_room_zone
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp:https://127.0.0.1:8554/craft_room
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp:https://127.0.0.1:8554/craft_room_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
zones:
craft_room_zone:
coordinates: 0,576,1024,576,1024,0,0,0
inertia: 1
objects:
- person
filters:
person:
min_area: 5000
max_area: 100000
threshold: 0.75
best_image_timeout: 60
ui:
order: 8
dashboard: True
birdseye:
order: 8
mqtt:
enabled: True
timestamp: True
bounding_box: True
crop: False
garage:
enabled: True
record:
events:
required_zones:
- garage_door
snapshots:
required_zones:
- garage_door
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp:https://127.0.0.1:8554/garage
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp:https://127.0.0.1:8554/garage_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
zones:
garage_door:
coordinates: 181,425,640,429,647,39,171,42
inertia: 1
objects:
- person
filters:
person:
min_area: 5000
max_area: 100000
threshold: 0.75
best_image_timeout: 60
ui:
order: 9
dashboard: True
birdseye:
order: 9
mqtt:
enabled: True
timestamp: True
bounding_box: True
crop: False
basement:
enabled: True
record:
events:
required_zones:
- basement_zone
snapshots:
required_zones:
- basement_zone
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp:https://127.0.0.1:8554/basement
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp:https://127.0.0.1:8554/basement_sub
input_args: preset-rtsp-restream
roles:
- detect
- audio
zones:
basement_zone:
coordinates: 0,576,1024,576,1024,0,0,0
inertia: 1
objects:
- person
filters:
person:
min_area: 5000
max_area: 100000
threshold: 0.75
best_image_timeout: 60
ui:
order: 10
dashboard: True
birdseye:
order: 10
mqtt:
enabled: True
timestamp: True
bounding_box: True
crop: False
litter_boxes:
enabled: True
record:
enabled: False
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
# - path: rtsp:https://127.0.0.1:8554/litter_boxes
# input_args: preset-rtsp-restream
# roles:
# - record
- path: rtsp:https://127.0.0.1:8554/litter_boxes_sub
input_args: preset-rtsp-restream
roles:
# - detect
- audio
best_image_timeout: 60
ui:
order: 11
dashboard: True
birdseye:
order: 11
mqtt:
enabled: True
timestamp: True
bounding_box: True
crop: False
ffmpeg:
hwaccel_args: preset-vaapi
# hwaccel_args: preset-intel-qsv-h264
detectors:
# detector_cpu:
# type: cpu
# num_threads: 6
# ov:
# type: openvino
# device: AUTO
coral:
type: edgetpu
device: usb
audio:
enabled: True
max_not_heard: 30
min_volume: 500
listen:
- bark
- fire_alarm
- scream
- speech
- yell
- gunshot
record:
enabled: True
retain:
days: 14
mode: motion
events:
pre_capture: 10
post_capture: 10
retain:
default: 30
mode: active_objects
snapshots:
enabled: True
retain:
default: 30
birdseye:
enabled: True
mode: continuous
motion:
threshold: 10
contour_area: 5
lightning_threshold: 0.8
ui:
time_format: 24hour Relevant log output{"before":{"id":"1716512502.308108-6lvlhn","camera":"patio_1","frame_time":1716513481.268663,"snapshot":{"frame_time":1716513050.683298,"box":[593,217,611,253],"area":648,"region":[396,56,716,376],"score":0.68359375,"attributes":[]},"label":"person","sub_label":null,"top_score":0.71484375,"false_positive":false,"start_time":1716512502.308108,"end_time":null,"score":0.65234375,"box":[594,217,612,250],"area":594,"ratio":0.5454545454545454,"region":[375,0,695,320],"stationary":true,"motionless_count":896,"position_changes":8,"current_zones":[],"entered_zones":[],"has_clip":false,"has_snapshot":false,"attributes":{},"current_attributes":[]},"after":{"id":"1716512502.308108-6lvlhn","camera":"patio_1","frame_time":1716513541.460286,"snapshot":{"frame_time":1716513050.683298,"box":[593,217,611,253],"area":648,"region":[396,56,716,376],"score":0.68359375,"attributes":[]},"label":"person","sub_label":null,"top_score":0.71484375,"false_positive":false,"start_time":1716512502.308108,"end_time":null,"score":0.640625,"box":[596,219,611,250],"area":465,"ratio":0.4838709677419355,"region":[420,67,740,387],"stationary":true,"motionless_count":1185,"position_changes":8,"current_zones":[],"entered_zones":[],"has_clip":false,"has_snapshot":false,"attributes":{},"current_attributes":[]},"type":"update"} Frigate statsNo response Operating systemOther Install methodDocker CLI Coral versionUSB Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You have applied filters to the zone, but the object is still detected. /events topic will send data for all detections. You can simply ignore these by checking that the object is considered entering the zone. |
Beta Was this translation helpful? Give feedback.
If they are empty list then it can be ignored. Current zones is the list of zones entered at that moment in time and entered zones is the list of zones entered at any time, chronologically