Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mqtt:
- host: mqtt
- detectors:
- ov0:
- type: openvino
- device: GPU # Or CPU, depending on your target hardware
- ov1:
- type: openvino
- device: GPU # Or CPU, depending on your target hardware
- ov2:
- type: openvino
- device: GPU # Or CPU, depending on your target hardware
- ov3:
- type: openvino
- device: GPU # Or CPU, depending on your target hardware
- model:
- model_type: yolo-generic
- width: 320 # Or 640 for higher accuracy
- height: 320 # Or 640 for higher accuracy
- input_tensor: nchw
- input_dtype: float
- path: /config/model_cache/yolov9-t-320.onnx # Path to your converted YOLOv9 ONNX model
- labelmap_path: /labelmap/coco-80.txt
- face_recognition:
- enabled: true
- model_size: large
- ffmpeg:
- hwaccel_args: preset-intel-qsv-h264
- audio:
- enabled: true
- listen:
- #- bark
- - fire_alarm
- - scream
- - speech
- - yell
- go2rtc:
- ffmpeg:
- h264_2mbps_accel: -init_hw_device vaapi=intel:/dev/dri/renderD128
- -filter_hw_device intel -c:v h264_vaapi -g 50 -bf 0 -profile:v high -an
- -vf format=vaapi|nv12,hwupload -level:v 4.1 -preset:v superfast -tune:v
- zerolatency -b:v 2M -maxrate 2M -bufsize 1M
- h265_8mbps_accel: -init_hw_device vaapi=intel:/dev/dri/renderD128
- -filter_hw_device intel -c:v hevc_vaapi -g 50 -bf 0 -profile:v main -an
- -vf format=vaapi|nv12,hwupload -level:v 4.1 -preset:v slow -b:v 4M
- -maxrate 4M -bufsize 16M
- streams:
- cam2:
- #- ffmpeg:http://192.168.1.220/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=password#video=copy#audio=copy#audio=opus
- - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0 # this is the main stream
- #- ffmpeg:http://admin:[email protected]/cam/realmonitor?channel=1&subtype=0
- cam2_sub:
- - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=1
- cam2_remote:
- - ffmpeg:rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0#video=h265_8mbps_accel
- cam3:
- - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0
- cam3_sub:
- - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=1
- cam1:
- - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0
- cam1_sub:
- - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=1
- webrtc:
- candidates:
- - ip_address_here_normally:8555
- - 192.168.1.144:8555
- - server:8555
- - stun:8555
- objects:
- track:
- - person
- - dog
- - cat
- - bird
- - dog
- - car
- - horse
- cameras:
- cam2:
- ffmpeg:
- #output_args:
- # record: preset-record-generic-audio-aac
- hwaccel_args: preset-vaapi
- inputs:
- - path: rtsp://127.0.0.1:8554/cam2?video&audio=aac
- input_args: preset-rtsp-restream
- roles:
- - record
- - detect
- - audio
- #- path: rtsp://127.0.0.1:8554/cam2_sub?video=copy
- # input_args: preset-rtsp-restream
- # roles:
- # - detect
- detect:
- enabled: true
- # width: 640
- # height: 480
- snapshots:
- enabled: true
- timestamp: true
- bounding_box: true
- record:
- enabled: true
- retain:
- days: 3
- mode: all
- alerts:
- retain:
- days: 30
- pre_capture: 60
- post_capture: 120
- detections:
- retain:
- days: 30
- pre_capture: 60
- post_capture: 120
- motion:
- threshold: 30
- contour_area: 10
- improve_contrast: true
- mask:
- - 0.653,0,0.679,0.096,0.577,0.239,0.565,0.33,0.579,0.411,0.701,0.381,0.778,0.4,0.838,0.39,0.895,0.331,0.979,0.337,0.988,0.245,0.99,0.142,0.995,0.071,0.985,0.027
- - 0,0.455,0.05,0.47,0.083,0.399,0.132,0.387,0.145,0.255,0.124,0.248,0.141,0.178,0.148,0.161,0.133,0.139,0.106,0.061,0.054,0.023,0,0.04,0,0.204
- - 0.592,0.149,0.596,0.13,0.486,0.117,0.481,0.131
- - 0.379,0.129,0.379,0.114,0.2,0.132,0.201,0.151
- objects:
- filters:
- car:
- mask:
- - 0.226,0.119,0.642,0.153,0.638,0.131,0.226,0.104
- - 0.132,0.238,0.189,0.22,0.182,0.155,0.141,0.161
- zones:
- our_yard:
- coordinates: 0.01,0.968,0.024,0.556,0.579,0.147,0.986,0.264,0.983,0.927
- loitering_time: 0
- cam1:
- enabled: true
- ui:
- order: 2
- ffmpeg:
- hwaccel_args: preset-vaapi
- inputs:
- - path: rtsp://127.0.0.1:8554/cam1
- roles:
- - record
- - detect
- - audio
- #- path: rtsp://127.0.0.1:8554/cam1_sub
- # roles:
- # - detect
- #output_args:
- # record: preset-record-generic-audio-aac
- detect:
- enabled: true
- # width: 640
- # height: 480
- record:
- enabled: true
- retain:
- days: 3
- mode: all
- alerts:
- retain:
- days: 30
- pre_capture: 60
- post_capture: 120
- detections:
- retain:
- days: 30
- pre_capture: 60
- post_capture: 120
- snapshots:
- enabled: true
- motion:
- mask: 0.731,0.032,0.729,0.085,0.973,0.085,0.97,0.029
- cam3:
- ffmpeg:
- #output_args:
- # record: preset-record-generic-audio-aac
- hwaccel_args: preset-vaapi
- inputs:
- - path: rtsp://127.0.0.1:8554/cam3?video&audio=aac
- input_args: preset-rtsp-restream
- roles:
- - record
- - audio
- - detect
- #- path: rtsp://127.0.0.1:8554/cam3_sub?video=copy
- # input_args: preset-rtsp-restream
- # roles:
- # - detect
- detect:
- enabled: true
- #width: 640
- #height: 480
- snapshots:
- enabled: true
- timestamp: true
- bounding_box: true
- record:
- enabled: true
- retain:
- days: 3
- mode: all
- alerts:
- retain:
- days: 30
- mode: motion
- pre_capture: 60
- post_capture: 120
- detections:
- retain:
- days: 30
- mode: motion
- pre_capture: 60
- post_capture: 120
- motion:
- threshold: 36
- contour_area: 20
- improve_contrast: true
- mask:
- - 0.969,0.039,0.829,0.04,0.826,0.069,0.971,0.076
- - 0.839,0.891,0.919,0.665,0.972,0.716,0.978,0.763,0.893,0.948
- - 0.394,0.351,0.42,0.259,0.443,0.207,0.46,0.177,0.457,0.001,0.1,0.005,0.196,0.175,0.25,0.199,0.283,0.194,0.314,0.278,0.327,0.331,0.338,0.359
- #live:
- # streams:
- # cam3: cam3
- version: 0.16-0
- detect:
- enabled: true
- semantic_search:
- enabled: false
- model_size: small
- lpr:
- enabled: false
- classification:
- bird:
- enabled: false
Advertisement
Add Comment
Please, Sign In to add comment