frigate: Use zones instead of motion masks

This commit is contained in:
Erwin Boskma 2023-05-21 17:13:16 +02:00
parent ac4fb1985e
commit 85756da38b
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg

View file

@ -28,14 +28,15 @@ detect:
width: 640 width: 640
height: 480 height: 480
motion: # motion:
mask: # mask:
- 0,180,76,189,215,149,372,128,375,222,194,224,145,311,0,296 # - 0,180,76,189,215,149,372,128,375,222,194,224,145,311,0,296
objects: objects:
track: track:
- person - person
- cat - cat
# - car
birdseye: birdseye:
enabled: True enabled: True
@ -64,7 +65,6 @@ cameras:
deurbel: deurbel:
ffmpeg: ffmpeg:
inputs: inputs:
# - path: rtsp://admin:{FRIGATE_DOORBELL_PASSWORD}@10.0.0.31/h264Preview_01_main
- path: rtsp://127.0.0.1:8554/reolink?video=copy&audio=aac - path: rtsp://127.0.0.1:8554/reolink?video=copy&audio=aac
input_args: preset-rtsp-restream input_args: preset-rtsp-restream
roles: roles:
@ -75,3 +75,17 @@ cameras:
- detect - detect
live: live:
stream_name: reolink stream_name: reolink
record:
events:
required_zones:
- oprit
snapshots:
required_zones:
- oprit
zones:
oprit:
coordinates: 0,480,640,480,640,480,640,259,513,255,323,254,211,254,144,353,79,325,33,286,0,289
objects:
- person
# - car
- cat