Guest User

Untitled

a guest
Dec 3rd, 2025
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.81 KB | None | 0 0
  1. mqtt:
  2. host: mqtt
  3.  
  4. detectors:
  5. ov0:
  6. type: openvino
  7. device: GPU # Or CPU, depending on your target hardware
  8. ov1:
  9. type: openvino
  10. device: GPU # Or CPU, depending on your target hardware
  11. ov2:
  12. type: openvino
  13. device: GPU # Or CPU, depending on your target hardware
  14. ov3:
  15. type: openvino
  16. device: GPU # Or CPU, depending on your target hardware
  17. model:
  18. model_type: yolo-generic
  19. width: 320 # Or 640 for higher accuracy
  20. height: 320 # Or 640 for higher accuracy
  21. input_tensor: nchw
  22. input_dtype: float
  23. path: /config/model_cache/yolov9-t-320.onnx # Path to your converted YOLOv9 ONNX model
  24. labelmap_path: /labelmap/coco-80.txt
  25.  
  26. face_recognition:
  27. enabled: true
  28. model_size: large
  29.  
  30. ffmpeg:
  31. hwaccel_args: preset-intel-qsv-h264
  32.  
  33. audio:
  34. enabled: true
  35. listen:
  36. #- bark
  37. - fire_alarm
  38. - scream
  39. - speech
  40. - yell
  41.  
  42. go2rtc:
  43. ffmpeg:
  44. h264_2mbps_accel: -init_hw_device vaapi=intel:/dev/dri/renderD128
  45. -filter_hw_device intel -c:v h264_vaapi -g 50 -bf 0 -profile:v high -an
  46. -vf format=vaapi|nv12,hwupload -level:v 4.1 -preset:v superfast -tune:v
  47. zerolatency -b:v 2M -maxrate 2M -bufsize 1M
  48. h265_8mbps_accel: -init_hw_device vaapi=intel:/dev/dri/renderD128
  49. -filter_hw_device intel -c:v hevc_vaapi -g 50 -bf 0 -profile:v main -an
  50. -vf format=vaapi|nv12,hwupload -level:v 4.1 -preset:v slow -b:v 4M
  51. -maxrate 4M -bufsize 16M
  52.  
  53. streams:
  54. cam2:
  55. #- 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
  56. - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0 # this is the main stream
  57. #- ffmpeg:http://admin:[email protected]/cam/realmonitor?channel=1&subtype=0
  58. cam2_sub:
  59. - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=1
  60. cam2_remote:
  61. - ffmpeg:rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0#video=h265_8mbps_accel
  62.  
  63. cam3:
  64. - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0
  65. cam3_sub:
  66. - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=1
  67.  
  68. cam1:
  69. - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0
  70. cam1_sub:
  71. - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=1
  72.  
  73. webrtc:
  74. candidates:
  75. - ip_address_here_normally:8555
  76. - 192.168.1.144:8555
  77. - server:8555
  78. - stun:8555
  79.  
  80. objects:
  81. track:
  82. - person
  83. - dog
  84. - cat
  85. - bird
  86. - dog
  87. - car
  88. - horse
  89.  
  90. cameras:
  91. cam2:
  92. ffmpeg:
  93. #output_args:
  94. # record: preset-record-generic-audio-aac
  95. hwaccel_args: preset-vaapi
  96. inputs:
  97. - path: rtsp://127.0.0.1:8554/cam2?video&audio=aac
  98. input_args: preset-rtsp-restream
  99. roles:
  100. - record
  101. - detect
  102. - audio
  103. #- path: rtsp://127.0.0.1:8554/cam2_sub?video=copy
  104. # input_args: preset-rtsp-restream
  105. # roles:
  106. # - detect
  107. detect:
  108. enabled: true
  109. # width: 640
  110. # height: 480
  111.  
  112. snapshots:
  113. enabled: true
  114. timestamp: true
  115. bounding_box: true
  116. record:
  117. enabled: true
  118. retain:
  119. days: 3
  120. mode: all
  121. alerts:
  122. retain:
  123. days: 30
  124. pre_capture: 60
  125. post_capture: 120
  126. detections:
  127. retain:
  128. days: 30
  129. pre_capture: 60
  130. post_capture: 120
  131. motion:
  132. threshold: 30
  133. contour_area: 10
  134. improve_contrast: true
  135. mask:
  136. - 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
  137. - 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
  138. - 0.592,0.149,0.596,0.13,0.486,0.117,0.481,0.131
  139. - 0.379,0.129,0.379,0.114,0.2,0.132,0.201,0.151
  140. objects:
  141. filters:
  142. car:
  143. mask:
  144. - 0.226,0.119,0.642,0.153,0.638,0.131,0.226,0.104
  145. - 0.132,0.238,0.189,0.22,0.182,0.155,0.141,0.161
  146. zones:
  147. our_yard:
  148. coordinates: 0.01,0.968,0.024,0.556,0.579,0.147,0.986,0.264,0.983,0.927
  149. loitering_time: 0
  150. cam1:
  151. enabled: true
  152. ui:
  153. order: 2
  154. ffmpeg:
  155. hwaccel_args: preset-vaapi
  156. inputs:
  157. - path: rtsp://127.0.0.1:8554/cam1
  158. roles:
  159. - record
  160. - detect
  161. - audio
  162. #- path: rtsp://127.0.0.1:8554/cam1_sub
  163. # roles:
  164. # - detect
  165. #output_args:
  166. # record: preset-record-generic-audio-aac
  167. detect:
  168. enabled: true
  169. # width: 640
  170. # height: 480
  171. record:
  172. enabled: true
  173. retain:
  174. days: 3
  175. mode: all
  176. alerts:
  177. retain:
  178. days: 30
  179. pre_capture: 60
  180. post_capture: 120
  181. detections:
  182. retain:
  183. days: 30
  184. pre_capture: 60
  185. post_capture: 120
  186. snapshots:
  187. enabled: true
  188.  
  189. motion:
  190. mask: 0.731,0.032,0.729,0.085,0.973,0.085,0.97,0.029
  191.  
  192. cam3:
  193. ffmpeg:
  194. #output_args:
  195. # record: preset-record-generic-audio-aac
  196. hwaccel_args: preset-vaapi
  197. inputs:
  198. - path: rtsp://127.0.0.1:8554/cam3?video&audio=aac
  199. input_args: preset-rtsp-restream
  200. roles:
  201. - record
  202. - audio
  203. - detect
  204. #- path: rtsp://127.0.0.1:8554/cam3_sub?video=copy
  205. # input_args: preset-rtsp-restream
  206. # roles:
  207. # - detect
  208. detect:
  209. enabled: true
  210. #width: 640
  211. #height: 480
  212. snapshots:
  213. enabled: true
  214. timestamp: true
  215. bounding_box: true
  216. record:
  217. enabled: true
  218. retain:
  219. days: 3
  220. mode: all
  221. alerts:
  222. retain:
  223. days: 30
  224. mode: motion
  225. pre_capture: 60
  226. post_capture: 120
  227. detections:
  228. retain:
  229. days: 30
  230. mode: motion
  231. pre_capture: 60
  232. post_capture: 120
  233.  
  234. motion:
  235. threshold: 36
  236. contour_area: 20
  237. improve_contrast: true
  238. mask:
  239. - 0.969,0.039,0.829,0.04,0.826,0.069,0.971,0.076
  240. - 0.839,0.891,0.919,0.665,0.972,0.716,0.978,0.763,0.893,0.948
  241. - 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
  242. #live:
  243. # streams:
  244. # cam3: cam3
  245.  
  246. version: 0.16-0
  247. detect:
  248. enabled: true
  249. semantic_search:
  250. enabled: false
  251. model_size: small
  252. lpr:
  253. enabled: false
  254. classification:
  255. bird:
  256. enabled: false
  257.  
Advertisement
Add Comment
Please, Sign In to add comment