Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mqtt:
- host: 192.168.1.120
- user: frigate
- password: pass
- client_id: frigate #Если используется 2 фригата, тут нужно поменять
- topic_prefix: frigate #Если используется 2 фригата, тут нужно поменять
- #================================================ go2rtc part ========================================================
- go2rtc:
- rtsp:
- listen: :8554
- # это внутренняя авторизация потоков между go2rtc и frigate\webrtc. Используется в секции cameras
- username: admin
- password: GKVn
- streams:
- #*********************************************** MAIN FLOW ************************************************************
- livingroom_camera_main:
- ffmpeg:rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0#video=copy#audio=copy#audio=opus#audio=aac
- # ИЛИ если верхний вариант не заработает
- # livingroom_camera_main:
- # rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0
- #*********************************************** SUB FLOW ************************************************************
- #**************************************************************************************************************************
- webrtc:
- listen: :8555/tcp
- candidates:
- - stun:8555
- - XX.XX.XX.XXX:8555 # Public IP Закомментировать если нет внешнего статичного публичного IP
- #================================================ END go2rtc part ======================================================
- ffmpeg:
- output_args:
- record: preset-record-generic-audio-copy
- # record: preset-record-generic-audio-aac # ИСПОЛЬЗУЙТЕ это Если с камеры идет аудио кодек НЕ AAC или не используетcя ffmpeg: в streams с audio=copy и кодеком pcm
- input_args: preset-rtsp-restream
- ui:
- time_format: 24hour
- timezone: Europe/Moscow
- date_style: medium
- time_style: medium
- strftime_fmt: '%Y-%m-%d %H:%M:%S'
- snapshots:
- enabled: true
- timestamp: true
- bounding_box: true
- clean_copy: false
- retain:
- default: 7
- objects:
- person: 30
- record:
- sync_recordings: true
- expire_interval: 720
- enabled: true
- retain:
- days: 7
- mode: all
- alerts:
- retain:
- days: 30
- detections:
- retain:
- days: 30
- birdseye:
- enabled: false
- audio:
- enabled: true
- max_not_heard: 30
- min_volume: 500
- listen:
- - speech
- filters:
- speech:
- threshold: 0.8
- semantic_search:
- enabled: false
- model_size: small
- reindex: false
- genai:
- enabled: false
- provider: gemini
- api_key: "{FRIGATE_GEMINI_API}"
- #model: gemini-1.5-flash
- model: gemini-2.0-flash-exp
- prompt: "Analyze the {label} in these images from the {camera} security camera at the front door. Focus on the actions and potential intent of the {label}. Reply in Russian"
- object_prompts:
- person: "Examine the person in these images. What are they doing, and how might their actions suggest their purpose (e.g., delivering something, approaching, leaving)? If they are carrying or interacting with a package, include details about its source or destination. Reply in Russian"
- #================== DETECTOR ===================================
- detectors:
- ov_cpu:
- type: openvino
- device: CPU
- # ov_gpu:
- # type: openvino
- # device: GPU
- model:
- width: 300
- height: 300
- input_tensor: nhwc
- input_pixel_format: bgr
- labelmap_path: /openvino-model/coco_91cl_bkgr.txt
- path: /openvino-model/ssdlite_mobilenet_v2.xml
- #==============================================================
- detect:
- enabled: true
- face_recognition:
- enabled: true
- model_size: small
- save_attempts: 1000
- lpr:
- enabled: false
- classification:
- bird:
- enabled: false
- version: 0.16-0
- cameras:
- ####======================================CAMERA LIVINGROOM===========================================
- livingroom:
- ffmpeg:
- inputs:
- # пароль из go2rtc
- roles:
- - record
- roles:
- - detect
- objects:
- track:
- - person
- mask:
- - 146,158,121,0,290,0,293,85
- - 532,104,522,182,440,149,444,71
- - 552,480,590,404,465,357,432,394,325,334,274,261,185,317,134,394,165,458,76,480
- filters:
- person:
- mask:
- - 146,158,121,0,532,104,522,182,552,480,590,404
- mqtt:
- enabled: true
- timestamp: false
- bounding_box: false
- crop: true
- quality: 100
- height: 500
- genai:
- enabled: false
- motion:
- threshold: 50
- contour_area: 50
- mqtt_off_delay: 30
- mask:
- - 146,158,121,0,290,0,293,85
- - 548,89,529,201,420,156,425,63
- - 552,480,590,404,465,357,432,394,325,334,274,261,185,317,134,394,165,458,76,480
- live:
- stream_name: livingroom_camera_main # имя из go2rtc
- review:
- detections:
- labels:
- - person
- alerts:
- labels: []
Advertisement
Add Comment
Please, Sign In to add comment