From 3b4c5ed58ec59a9efd087f94f054e6c4e591c5f8 Mon Sep 17 00:00:00 2001 From: Tobias Lehmann Date: Sun, 12 Oct 2025 11:24:45 +0200 Subject: [PATCH] added frigate config --- files/frigate/frigate.conf | 91 +++++++++++++++++--------------------- 1 file changed, 41 insertions(+), 50 deletions(-) diff --git a/files/frigate/frigate.conf b/files/frigate/frigate.conf index 72e65c9..ed76143 100644 --- a/files/frigate/frigate.conf +++ b/files/frigate/frigate.conf @@ -7,7 +7,7 @@ logger: mqtt: host: 192.168.150.150 user: captica - password: captica + password: password topic_prefix: cctv stats_interval: 60 @@ -23,6 +23,7 @@ detectors: detect: enabled: true + # --- Aufnahme / Speicherung --- record: enabled: true @@ -35,11 +36,6 @@ record: detections: retain: days: 28 - events: # Vor-/Nachlauf, damit nichts „zu spät“ startet - pre_capture: 5 - post_capture: 10 - retain: - default: 28 snapshots: enabled: true @@ -57,6 +53,31 @@ birdseye: height: 1080 quality: 8 +motion: + # Optional: enables detection for the camera (default: True) + # NOTE: Motion detection is required for object detection, + # setting this to False and leaving detect enabled + # will result in an error on startup. + enabled: True + # 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: The percentage of the image used to detect lightning or other substantial changes where motion detection + # needs to recalibrate. (default: shown below) + # Increasing this value will make motion detection more likely to consider lightning or ir mode changes as valid motion. + # Decreasing this value will make motion detection more likely to ignore large amounts of motion such as a person approaching + # a doorbell camera. + lightning_threshold: 0.8 + # Optional: Minimum size in pixels in the resized motion image that counts as motion (default: shown below) + # 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: + # - 10 - high sensitivity + # - 30 - medium sensitivity + # - 50 - low sensitivity + contour_area: 10 + # --- Objekt-Tracking global --- objects: track: @@ -66,52 +87,47 @@ objects: - motorcycle - cat - dog - filters: - # „scharf“ für Personen: etwas niedrigere Scores, damit schnelle/verwaschene Personen nicht durchrutschen - person: - min_score: 0.42 - threshold: 0.58 go2rtc: rtsp: username: captica - password: password! + password: captica123! streams: facade_north: - - rtsp://captica:password!@192.168.140.231:554/cam/realmonitor?channel=1&subtype=0#backchannel=0 + - rtsp://captica:{PASSWORD}@192.168.140.231:554/cam/realmonitor?channel=1&subtype=0#backchannel=0 - ffmpeg:facade_north#video=h264#audio=acc facade_north_detect: - - rtsp://captica:password!@192.168.140.231:554/cam/realmonitor?channel=1&subtype=2#backchannel=0 + - rtsp://captica:{PASSWORD}@192.168.140.231:554/cam/realmonitor?channel=1&subtype=2#backchannel=0 #- ffmpeg:facade_north_detect#video=h264 facade_garden: - - rtsp://captica:password!@192.168.140.230:554/cam/realmonitor?channel=1&subtype=0#backchannel=0 + - rtsp://captica:{PASSWORD}@192.168.140.230:554/cam/realmonitor?channel=1&subtype=0#backchannel=0 - ffmpeg:facade_garden#video=h264#audio=acc facade_garden_detect: - - rtsp://captica:password!@192.168.140.230:554/cam/realmonitor?channel=1&subtype=2#backchannel=0 + - rtsp://captica:{PASSWORD}@192.168.140.230:554/cam/realmonitor?channel=1&subtype=2#backchannel=0 #- ffmpeg:facade_garden_detect#video=h264 facade_east: - - rtsp://captica:password!@192.168.140.243:554/cam/realmonitor?channel=1&subtype=0#backchannel=0 + - rtsp://captica:{PASSWORD}@192.168.140.243:554/cam/realmonitor?channel=1&subtype=0#backchannel=0 - ffmpeg:facade_east#video=h264#audio=acc facade_east_detect: - - rtsp://captica:password!@192.168.140.243:554/cam/realmonitor?channel=1&subtype=2#backchannel=0 + - rtsp://captica:{PASSWORD}@192.168.140.243:554/cam/realmonitor?channel=1&subtype=2#backchannel=0 #- ffmpeg:facade_east_detect#video=h264 facade_south: - - rtsp://captica:password!@192.168.140.232:554/cam/realmonitor?channel=1&subtype=0#backchannel=0 + - rtsp://captica:{PASSWORD}@192.168.140.232:554/cam/realmonitor?channel=1&subtype=0#backchannel=0 #- ffmpeg:facade_south#video=h264#audio=acc facade_south_detect: - - rtsp://captica:password!@192.168.140.232:554/cam/realmonitor?channel=1&subtype=2#backchannel=0 + - rtsp://captica:{PASSWORD}@192.168.140.232:554/cam/realmonitor?channel=1&subtype=2#backchannel=0 #- ffmpeg:facade_south_detect#video=h264 facade_west_2: - - rtsp://captica:password!@192.168.140.233:554/cam/realmonitor?channel=1&subtype=0#backchannel=0 + - rtsp://captica:{PASSWORD}@192.168.140.233:554/cam/realmonitor?channel=1&subtype=0#backchannel=0 - ffmpeg:facade_west_2#video=h264#audio=acc facade_west_2_detect: - - rtsp://captica:password!@192.168.140.233:554/cam/realmonitor?channel=1&subtype=2#backchannel=0 + - rtsp://captica:{PASSWORD}@192.168.140.233:554/cam/realmonitor?channel=1&subtype=2#backchannel=0 #- ffmpeg:facade_south_west_2_detect#video=h264 facade_west: - - rtsp://captica:password!@192.168.140.234:554/cam/realmonitor?channel=1&subtype=0#backchannel=0 + - rtsp://captica:{PASSWORD}@192.168.140.234:554/cam/realmonitor?channel=1&subtype=0#backchannel=0 - ffmpeg:facade_west#video=h264#audio=acc facade_west_detect: - - rtsp://captica:password!@192.168.140.234:554/cam/realmonitor?channel=1&subtype=2#backchannel=0 + - rtsp://captica:{PASSWORD}@192.168.140.234:554/cam/realmonitor?channel=1&subtype=2#backchannel=0 #- ffmpeg:facade_west_detect#video=h264 #facade_door: # - rtsp://ghsvwl0002:capticaTest123@192.168.178.101:554/mpeg/720p/media.amp @@ -144,10 +160,6 @@ cameras: width: 1280 height: 720 fps: 5 - # Front door camera (Dahua) - motion: # konservativ, aber nicht träge - threshold: 19 - contour_area: 1300 # --- Front (Dahua IPC-4K Color) --- facade_north: @@ -166,9 +178,7 @@ cameras: width: 1280 height: 720 fps: 12 - motion: - threshold: 19 - contour_area: 1300 + # Personen „scharf“ zusätzlich pro Kamera (falls nötig, sonst global reicht) # objects: # filters: @@ -192,9 +202,6 @@ cameras: width: 1280 height: 720 fps: 12 - motion: - threshold: 19 - contour_area: 1300 facade_east: enabled: true @@ -212,9 +219,6 @@ cameras: width: 1280 height: 720 fps: 12 - motion: - threshold: 19 - contour_area: 1300 facade_south: enabled: true @@ -232,9 +236,6 @@ cameras: width: 1280 height: 720 fps: 12 - motion: - threshold: 19 - contour_area: 1300 facade_west_2: enabled: true @@ -252,13 +253,6 @@ cameras: width: 1280 height: 720 fps: 12 - motion: - threshold: 19 - contour_area: 1300 - objects: - filters: - car: - mask: 0.287,0.011,0.136,0.07,0.067,0.315,0.299,0.275 facade_west: enabled: true @@ -276,9 +270,6 @@ cameras: width: 1280 height: 720 fps: 12 - motion: - threshold: 19 - contour_area: 1300 version: 0.16-0