Bonjour tout le monde,
Je ne sais pas si cela vous arrive aussi, mais depuis le passage à la 0.14 (qui utilise tellement de CPU que je pense soit à changer de hardware - j’ai un Pi 4 + coral - soit à revenir à la 0.13, mais c’est un autre sujet) Frigate ne purge plus les médias. Je dois aller moi-même sur le disque via un partage réseau et effacer les recordings et les clips expirés. Cela contourne la database, et dans Medias/Frigate les dossiers sont toujours présents mais les clips impossible à ouvrir évidemment. Avez-vous constaté la même chose?
CI-dessous mon fichier de config.
mqtt:
# Optional: Enable mqtt server (default: shown below)
enabled: true
# Required: host name
host: 192.168.0.200
# Optional: port (default: shown below)
port: 1883
# Optional: topic prefix (default: shown below)
# NOTE: must be unique if you are running multiple instances
topic_prefix: frigate
# Optional: client id (default: shown below)
# NOTE: must be unique if you are running multiple instances
client_id: frigate
# Optional: user
# NOTE: MQTT user can be specified with an environment variables that must begin with 'FRIGATE_'.
# e.g. user: '{FRIGATE_MQTT_USER}'
user: mqtt
# Optional: password
# NOTE: MQTT password can be specified with an environment variables that must begin with 'FRIGATE_'.
# e.g. password: '{FRIGATE_MQTT_PASSWORD}'
password: ********
detectors:
coral:
type: edgetpu
device: usb
ffmpeg:
hwaccel_args: preset-rpi-64-h264
output_args:
record: preset-record-generic-audio-aac
record:
enabled: true
retain:
days: 14
mode: motion
events:
retain:
default: 28
mode: active_objects
pre_capture: 10
post_capture: 15
review:
alerts:
labels:
- person
- car
detections:
labels:
- dog
- cat
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: false
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: false
# Optional: height to resize the snapshot to (default: original size)
#height: 175
# Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
#required_zones: []
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 28
# Optional: Per object retention days
objects:
person: 28
dog: 28
cat: 28
car: 28
birdseye:
enabled: true
mode: continuous
# Optional: Encoding quality of the mpeg1 feed (default: shown below)
# 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
quality: 15
objects:
track:
- person
- car
- dog
- cat
filters:
person:
min_ratio: 0.27
max_ratio: 0.6
threshold: 0.73
min_score: 0.6
motion:
# Optional: The threshold passed to cv2.threshold to determine if a pixel is different enough to be counted as motion. (default: shown below)
# Increasing this value will make motion detection less sensitive and decreasing it will make motion detection more sensitive.
# The value should be between 1 and 255.
# threshold: 30
# Optional: Minimum size in pixels in the resized motion image that counts as motion (default: 30)
# Increasing this value will prevent smaller areas of motion from being detected. Decreasing will
# make motion detection more sensitive to smaller moving objects.
# As a rule of thumb:
# - 15 - high sensitivity
# - 30 - medium sensitivity
# - 50 - low sensitivity
contour_area: 30
cameras:
Cuisine:
enabled: true
onvif:
host: 192.168.0.138
port: 8000
user: raphael
password: ********
ffmpeg:
inputs:
- path: rtsp://********@192.168.0.138:554/h264Preview_01_sub
roles:
- detect
- path: rtsp://********@192.168.0.138:554/h264Preview_01_main
roles:
- record
detect:
enabled: true
width: 640
height: 360
review:
alerts:
labels:
- dog
- cat
- person
detections:
labels: []
objects:
track:
- person
- dog
- cat
Portails:
ffmpeg:
inputs:
- path: rtsp://********@192.168.0.131:554/h264Preview_01_sub
roles:
- detect
- record
detect:
enabled: true
width: 640
height: 360
motion:
mask:
- 117,161,95,255,110,360,51,360,0,241,0,147,0,0,640,0,640,224,640,360,530,360,573,237,531,161,481,87,383,80,202,100
objects:
track:
- person
- car
- dog
- cat
filters:
car:
min_area: 4000
max_area: 20000
mask: 640,71,611,193,455,151,468,105,257,114,195,360,0,360,0,0,454,0,640,0
person:
min_area: 1000
mask:
- 640,71,468,105,257,114,195,360,0,360,0,0,454,0,640,0
- 640,360,640,278,548,295,536,360
Parking:
ffmpeg:
inputs:
- path: rtsp://********@192.168.0.133:554/h264Preview_01_sub
roles:
- detect
- record
detect:
enabled: true
width: 896
height: 512
motion:
mask:
- 481,183,442,186,425,236,462,256,468,311,517,324,557,252,527,250,535,201
- 819,0,896,0,896,62,896,167,807,163,790,128,705,99,654,166,406,149,387,178,362,208,318,213,245,164,563,0
- 264,33,267,12,629,8,639,38
zones:
centre:
coordinates:
639,238,570,250,562,301,541,292,540,264,534,242,524,211,518,165,766,182,714,204,688,232
objects:
- person
- dog
- cat
- car
stationnement:
coordinates:
721,395,829,346,896,311,896,246,835,221,788,219,726,197,687,222,608,221,549,229,512,339
objects:
- person
- dog
- cat
inertia: 240
seuil:
coordinates: 318,248,364,323,426,310,470,290,453,232,459,161,389,163,360,201
objects:
- person
- dog
- cat
- car
pietons:
coordinates: 279,512,896,512,896,318,742,412,563,330,456,378,368,340,311,244,300,149,250,156
objects:
- person
- dog
- cat
objects:
track:
- person
- cat
- dog
- car
filters:
car:
mask:
- 716,386,828,328,896,286,896,246,835,221,788,219,726,197,710,228,558,222,552,297
- 279,512,896,512,896,318,742,412,563,330,456,378,368,340,311,244,300,149,250,156
person:
min_area: 1000
max_area: 15000
mask:
- 704,374,750,296,780,293,815,366
- 534,323,552,325,553,291,534,287
Parking_serre:
ffmpeg:
inputs:
- path: rtsp://********@192.168.0.133:554/h264Preview_02_sub
roles:
- detect
- record
detect:
enabled: true
width: 896
height: 512
motion:
mask:
- 521,103,494,126,466,124,451,140,416,138,417,226,448,236,444,278,431,331,412,367,338,512,702,512,728,439,700,352,676,338,717,294,678,252,648,266,645,230,650,160,600,134,563,144
- 67,111,160,149,214,153,252,133,268,102,315,73,298,44,324,0,62,0
- 253,39,896,33,896,0,261,0
zones:
pietons:
coordinates:
0,348,31,347,32,409,116,401,139,512,321,512,130,240,163,205,149,163,115,136,76,93,0,89
objects:
- person
- dog
- cat
seuil:
coordinates: 144,239,307,486,532,358,480,125,482,48,389,51,223,68
objects:
- person
- dog
- cat
- car
centre:
coordinates: 896,69,896,235,737,259,719,380,654,325,634,240,641,152,598,140,554,138,477,65
objects:
- person
- dog
- cat
- car
stationnement:
coordinates: 896,451,710,366,706,241,772,187,896,189
objects:
- person
- dog
- cat
inertia: 240
stationnement_poubelles:
coordinates: 332,56,741,35,742,157,481,202,337,145
objects:
- person
- dog
- cat
objects:
track:
- person
- cat
- dog
- car
filters:
car:
mask:
- 136,239,22,247,0,181,31,196,46,190,55,124,0,0,0,512,319,512
- 896,512,744,512,537,512,746,197,896,191
- 757,48,757,181,482,190,344,147,335,60
dog:
# Optional: minimum width*height of the bounding box for the detected object (default: 0)
# min_area: 5000
# Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
max_area: 25000
# Optional: minimum score for the object to initiate tracking (default: shown below)
# min_score: 0.5
# Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
# threshold: 0.7
# Optional: mask to prevent this object type from being detected in certain areas (default: no mask)
# Checks based on the bottom center of the bounding box of the object
# mask: 0,0,1000,0,1000,200,0,200
cat:
max_area: 20000
person:
max_area: 60000
min_area: 1000
Pelouse_nord:
ffmpeg:
inputs:
- path: rtsp://********@192.168.0.134:554/h264Preview_01_sub
roles:
- detect
- record
detect:
enabled: true
width: 896
height: 512
motion:
mask:
- 227,117,641,115,654,140,813,168,809,138,849,52,896,76,896,0,0,0,0,159,60,88,128,85
objects:
track:
- person
- cat
- dog
filters:
person:
max_area: 40000
Sud_mobile:
ffmpeg:
inputs:
- path: rtsp://********@192.168.0.135:554/h264Preview_01_sub
roles:
- detect
- record
detect:
enabled: true
width: 640
height: 360
motion:
mask:
- 221,25,412,23,409,0,405,9,225,10
objects:
track:
- person
- dog
- cat
filters:
person:
max_area: 16000
mask:
- 339,0,538,29,583,32,582,74,599,71,578,144,346,124
- 501,227,503,281,403,285,412,224
threshold: 0.72
min_score: 0.6
Sud_180:
ffmpeg:
inputs:
- path: rtsp://********@192.168.0.136:554/h264Preview_01_sub
roles:
- detect
- record
detect:
enabled: true
width: 1536
height: 576
objects:
track:
- person
- dog
- cat
filters:
person:
# Optional: minimum width*height of the bounding box for the detected object (default: 0)
min_area: 5000
# Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
max_area: 45000
# Optional: minimum score for the object to initiate tracking (default: shown below)
# min_score: 0.5
# Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
# threshold: 0.7
# Optional: mask to prevent this object type from being detected in certain areas (default: no mask)
# Checks based on the bottom center of the bounding box of the object
# mask: 0,0,1000,0,1000,200,0,200
threshold: 0.65
min_score: 0.5
dog:
# Optional: minimum width*height of the bounding box for the detected object (default: 0)
# min_area: 5000
# Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
max_area: 15000
# Optional: minimum score for the object to initiate tracking (default: shown below)
# min_score: 0.5
# Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
# threshold: 0.7
# Optional: mask to prevent this object type from being detected in certain areas (default: no mask)
# Checks based on the bottom center of the bounding box of the object
# mask: 0,0,1000,0,1000,200,0,200
cat:
# Optional: minimum width*height of the bounding box for the detected object (default: 0)
# min_area: 5000
# Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
max_area: 15000
# Optional: minimum score for the object to initiate tracking (default: shown below)
# min_score: 0.5
# Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
# threshold: 0.7
# Optional: mask to prevent this object type from being detected in certain areas (default: no mask)
# Checks based on the bottom center of the bounding box of the object
# mask: 0,0,1000,0,1000,200,0,200
zones:
proche:
coordinates: 0,576,1391,576,1151,311,909,281,552,272,0,363
motion:
mask:
- 1536,0,1536,145,1353,299,1264,488,1203,475,1259,271,1206,72,1009,135,827,98,587,47,533,0,566,0
- 692,278,691,236,746,208,799,213,865,309,897,365,883,407,837,444,797,498,727,488,697,442,666,379,678,337
- 421,229,474,217,512,201,509,110,407,103,362,156,372,220,372,278
- 1204,576,1302,516,1211,498,1175,474,1162,428,1150,388,1080,482,1000,509,956,576
Entree_nord:
ffmpeg:
inputs:
- path: rtsp://********@192.168.0.137:554/h264Preview_01_sub
roles:
- detect
- record
detect:
enabled: true
width: 896
height: 512
motion:
mask:
- 466,106,437,105,427,163,464,219,483,199,482,166
- 819,0,896,0,896,62,896,167,896,512,607,512,600,139,580,87,334,83,0,89,0,0,563,0
zones:
centre:
coordinates: 318,256,348,232,503,231,312,512,0,512,0,268,51,242
objects:
- person
- dog
- cat
- car
stationnement:
coordinates: 342,242,380,199,382,144,69,144,71,229
objects:
- person
- dog
- cat
inertia: 240
pietons:
coordinates: 544,183,311,512,615,512,631,331,609,126,583,95,409,97,158,96,67,92,111,172
objects:
- person
- dog
- cat
objects:
track:
- person
- cat
- dog
- car
filters:
car:
mask:
- 84,143,285,131,366,138,385,185,332,235,224,237,75,239
- 336,512,524,221,391,223,409,149,478,80,0,84,0,0,896,0,896,512
min_area: 1000
person:
mask:
- 448,169,457,176,458,105,437,106
- 562,264,595,287,570,336,537,331,523,292,521,273
max_area: 15000
min_area: 300
Entree_nord_serre:
ffmpeg:
inputs:
- path: rtsp://********@192.168.0.137:554/h264Preview_02_sub
roles:
- detect
- record
detect:
enabled: true
width: 896
height: 512
motion:
mask:
- 460,0,437,32,425,85,415,155,463,187,586,189,602,168,611,93,560,50,533,0
- 262,34,635,36,626,9,263,10
zones:
pietons:
coordinates: 283,215,606,231,416,512,835,512,830,0,0,0,0,97,341,114
objects:
- person
- dog
- cat
centre:
coordinates: 247,237,470,240,599,249,417,512,0,512,0,276
objects:
- person
- dog
- cat
- car
stationnement:
coordinates: 200,232,0,246,0,0,280,0,321,120
objects:
- person
- dog
- cat
inertia: 240
objects:
track:
- person
- cat
- dog
- car
filters:
car:
mask: 0,0,322,0,323,121,187,238,0,237
dog:
# Optional: minimum width*height of the bounding box for the detected object (default: 0)
# min_area: 5000
# Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
max_area: 25000
# Optional: minimum score for the object to initiate tracking (default: shown below)
# min_score: 0.5
# Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
# threshold: 0.7
# Optional: mask to prevent this object type from being detected in certain areas (default: no mask)
# Checks based on the bottom center of the bounding box of the object
# mask: 0,0,1000,0,1000,200,0,200
cat:
max_area: 20000
person:
max_area: 60000
version: 0.14
camera_groups:
Parking:
order: 1
icon: LuCar
cameras:
- Entree_nord
- Entree_nord_serre
- Parking
- Parking_serre
Jardin:
order: 2
icon: LuLeaf
cameras:
- Sud_180
- Sud_mobile
Tout:
order: 3
icon: LuVideo
cameras:
- Cuisine
- Entree_nord
- Entree_nord_serre
- Parking
- Parking_serre
- Pelouse_nord
- Portails
- Sud_180
- Sud_mobile