exemple :
Je souhaite envoyer une notification seulement si une personne est vue dans la zone d’entrée, je ne souhaite pas attendre et avoir la notification dès le début de la détection ( dans ce cas je n’aurai pas de clip car celui-ci est créé à la fin).
Maintenant je veux une autre notification si une voiture est dans l’allée.
Le label (véhicule, personne, etc…) est défini dans ton fichier de configuration Frogate :
mon fichier de configuration :
Résumé
# yaml-language-server: $schema=http://192.168.1.78:5000/api/config/schema
mqtt:
host: 192.168.2.22
port: 1883
user: admin
password: noah2009
stats_interval: 60
detectors:
coral:
type: edgetpu
device: usb
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -vaapi_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
timestamp_style:
position: tr
format: '%d/%m/%Y %H:%M:%S'
birdseye:
enabled: false
model:
labelmap:
0: personne
1: vehicule
2: vehicule
3: vehicule
5: vehicule
7: vehicule
16: animaux
17: animaux
18: animaux
19: animaux
20: animaux
snapshots:
enabled: true
clean_copy: true
timestamp: true
bounding_box: true
crop: false
retain:
default: 3
objects:
personne: 7
vehicule: 3
record:
enabled: true
expire_interval: 60
retain:
days: 3
mode: active_objects
events:
pre_capture: 5
post_capture: 5
objects:
- personne
retain:
default: 3
mode: active_objects
objects:
personne: 7
cameras:
frigate1:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/frigate1 # RTSP HD pour enregistrement
input_args: preset-rtsp-restream
roles:
- detect
- audio
audio:
enabled: true
detect:
fps: 5
enabled: true
width: 854
height: 480
objects:
track:
- personne
- vehicule
- animale
filters:
personne:
min_score: 0.7
threshold: 0.8
vehicule:
min_score: 0.7
threshold: 0.8
animale:
min_score: 0.7
threshold: 0.8
zones:
entrée:
coordinates: 0.361,0.997,0.003,0.993,0.365,0.176,0.593,0.523
loitering_time: 0
allée:
coordinates: 0.386,0.982,0.996,0.992,0.966,0.513,0.64,0.342,0.6,0.524
loitering_time: 0
chemin:
coordinates: 0.788,0.414,0.963,0.498,0.974,0.3,0.876,0.249
loitering_time: 0
frigate2:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/frigate2 # RTSP HD pour enregistrement
input_args: preset-rtsp-restream
roles:
- detect
detect:
fps: 5
enabled: true
width: 854
height: 480
objects:
track:
- personne
- vehicule
- animale
filters:
personne:
min_score: 0.7
threshold: 0.8
vehicule:
min_score: 0.7
threshold: 0.8
animale:
min_score: 0.7
threshold: 0.8
motion:
mask: 0.149,0.557,0.369,0.521,0.684,0.995,0.182,0.992
frigate4:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/frigate4 # RTSP HD pour enregistrement
input_args: preset-rtsp-restream
roles:
- detect
detect:
fps: 5
enabled: true
width: 854
height: 480
objects:
track:
- personne
filters:
personne:
min_score: 0.7
threshold: 0.8
frigate5:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/frigate5 # RTSP HD pour enregistrement
input_args: preset-rtsp-restream
roles:
- detect
detect:
fps: 5
enabled: true
width: 854
height: 480
objects:
track:
- personne
filters:
personne:
min_score: 0.7
threshold: 0.8
go2rtc:
streams:
frigate1: rtsp://***@192.168.2.36:554/1 #CAMERA WANSCAM
frigate2: rtsp://***@192.168.2.210:554/1 #CAMERA WANSCAM
frigate4: rtsp://****@192.168.2.108:554/cam/realmonitor?channel=1&subtype=0 #CAMERA DAHUA
frigate5: rtsp://****@192.168.2.109:554/cam/realmonitor?channel=1&subtype=0 #CAMERA DAHUA
version: 0.14
Pour les zones cachées, il faut redémarrer le serveur Frigate pour que ce soit pris en compte :