Advertisement
p33j4y

FRIGATE: config.yml

Aug 27th, 2024
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 6.96 KB | None | 0 0
  1. #################### systemowe #################################################
  2. mqtt:
  3.   host: $$$$$$$$$$
  4.   port: 1883
  5.   topic_prefix: frigate
  6.   client_id: frigate
  7.   user: $$$$$$$$$$
  8.   password: $$$$$$$$$$
  9.   stats_interval: 60
  10.   # crop: false
  11.   # bounding_box: true
  12.   # timestamp: true
  13.   # enabled: true
  14.  
  15. #################### ogólne ####################################################
  16. environment_vars:
  17.   LIBVA_DRIVER_NAME: radeonsi
  18.  
  19. live:
  20.   height: 480
  21.   # 1 = max, 31 = min
  22.   quality: 15
  23.  
  24. timestamp_style:
  25.   position: tr
  26.   format: '%Y.%m.%d, %H:%M:%S'
  27.   color:
  28.     red: 255
  29.     green: 255
  30.     blue: 255
  31.   thickness: 2
  32.   # none / solid / shadow
  33.   effect: solid
  34.  
  35. #################### detekcja i obiekty ########################################
  36. detect:
  37.   enabled: true
  38.   width: 640
  39.   height: 360
  40.   fps: 5
  41.   max_disappeared: 25
  42.   stationary:
  43.     interval: 50
  44.     threshold: 25
  45.  
  46. objects:
  47.   track:
  48.    - person
  49.     - car
  50.     - dog
  51.     - bicycle
  52.   filters:
  53.     person:
  54.       min_area: 5000
  55.       max_area: 70000
  56.       min_score: 0.5
  57.       threshold: 0.65
  58.     dog:
  59.       min_area: 800
  60.       max_area: 20000
  61.       min_score: 0.6
  62.       threshold: 0.5
  63.  
  64. motion:
  65.  # threshold: 25, mniej = bardziej czułe
  66.   # contour_area: 100, mniej = bardziej czułe
  67.   # delta_alpha: 0.2, mniej = szybki ruch wykluczony z wykrywania
  68.   # frame_alpha: 0.2, mniej = cienie będą bardziej brane pod uwagę
  69.   # frame_height: [1/6 oryginału], mniej = mniej procka ale mały ruch nie będzie rejestrowany
  70.   threshold: 14
  71.   contour_area: 50
  72.   delta_alpha: 0.3
  73.   frame_height: 240
  74.   improve_contrast: true
  75.  
  76. detectors:
  77.   coral_pci:
  78.     type: edgetpu
  79.     device: pci
  80.  
  81. #################### stream i zapis ############################################
  82. snapshots:
  83.   enabled: true
  84.   timestamp: true
  85.   bounding_box: true
  86.   crop: false
  87.   retain:
  88.     default: 3
  89.     objects:
  90.       person: 7
  91.  
  92. record:
  93.   enabled: true
  94.   retain:
  95.     days: 3
  96.     mode: active_objects
  97.   events:
  98.     pre_capture: 10
  99.     post_capture: 10
  100.     retain:
  101.       default: 3
  102.       mode: active_objects
  103.       objects:
  104.         person: 7
  105.  
  106. ffmpeg:
  107.   output_args:
  108.     record: preset-record-generic
  109.  
  110. #################### birdseye ##################################################
  111. birdseye:
  112.   enabled: true
  113.   width: 1280
  114.   height: 720
  115.   # 1 = max, 31 = min
  116.   quality: 15
  117.   # objects / motion / continuous
  118.   mode: continuous
  119.  
  120. #################### kamery ####################################################
  121. cameras:
  122. #################### podjazd
  123.   3_out_driveway:
  124.     birdseye:
  125.       order: 1
  126.     ffmpeg:
  127.       inputs:
  128.         - path: $$$$$$$$$$
  129.           roles:
  130.            - detect
  131.         - path: $$$$$$$$$$
  132.           roles:
  133.            - record
  134.     best_image_timeout: 30
  135.     motion:
  136.       mask: 0.227,0.311,0.231,0.167,0.736,0.139,0.725,0.244,1,0.842,1,0,0,0,0,1
  137.     objects:
  138.       track:
  139.        - person
  140.         - car
  141.         - dog
  142.       filters:
  143.         car:
  144.           min_area: 25000
  145.           max_area: 125000
  146.           mask:
  147.            - 455,56,640,191,640,0,0,0,0,360,100,360,166,69
  148.         person:
  149.           min_area: 14000
  150.           max_area: 40000
  151.           min_score: 0.67
  152.           threshold: 0.65
  153.     zones:
  154.       3_out_driveway_car_zone:
  155.         coordinates: 267,360,640,360,640,255,466,88,257,99
  156.         objects:
  157.          - car
  158.  
  159. #################### garaż
  160.   3_grg_garage:
  161.     birdseye:
  162.       order: 2
  163.     ffmpeg:
  164.       inputs:
  165.         - path: $$$$$$$$$$
  166.           roles:
  167.            - detect
  168.         - path: $$$$$$$$$$
  169.           roles:
  170.            - record
  171.     best_image_timeout: 30
  172.     objects:
  173.       track:
  174.        - person
  175.         - car
  176.         - bicycle
  177.       filters:
  178.         bicycle:
  179.           min_area: 27000
  180.           max_area: 65000
  181.         car:
  182.           min_area: 100000
  183.           max_area: 125000
  184.           mask:
  185.            - 222,144,339,56,537,81,537,221,448,360,640,360,640,0,0,0,0,360,100,360,75,218
  186.         person:
  187.           min_area: 14000
  188.           max_area: 40000
  189.           min_score: 0.67
  190.           threshold: 0.65
  191.     zones:
  192.       3_grg_garage_peejay_zone:
  193.         coordinates: 69,200,47,107,113,22,284,35,294,151
  194.         object:
  195.          - bicycle
  196.       3_grg_garage_car_zone:
  197.         coordinates: 458,360,552,222,561,130,527,62,324,52,235,118,51,220,82,360
  198.         object:
  199.          - car
  200.           - person
  201.     motion:
  202.       mask:
  203.        - 0,34,178,32,176,0,0,0
  204.         - 27,162,79,360,0,360,0,0,33,0
  205.  
  206. #################### drzwi
  207.   3_out_entrance:
  208.     birdseye:
  209.       order: 3
  210.     ffmpeg:
  211.       inputs:
  212.         - path: $$$$$$$$$$
  213.           roles:
  214.            - detect
  215.             - record
  216.       output_args:
  217.         record: preset-record-generic-audio-copy
  218.     best_image_timeout: 30
  219.     motion:
  220.       mask:
  221.        - 332,205,641,0,0,0,0,768,1024,768,1024,0,720,0,719,277,788,512,850,406,897,436,721,746,610,731,543,768,386,613,405,575,160,350
  222.     detect:
  223.       width: 1024
  224.       height: 768
  225.     objects:
  226.       track:
  227.        - person
  228.         - bicycle
  229.       filters:
  230.         person:
  231.           mask:
  232.            - 202,340,617,0,0,0,0,768,1024,768,1024,0,720,0,708,289,797,518,673,708,559,768,383,611,408,575
  233.           min_area: 26000
  234.           max_area: 70000
  235.           # min_score: 0.5
  236.           # threshold: 0.6
  237.     zones:
  238.       3_out_entrance_delivery_zone:
  239.         coordinates: 505,727,558,768,730,735,834,615,898,449,745,340
  240.         object:
  241.          - person
  242.  
  243. #################### salon
  244.   1_lvn_room:
  245.     birdseye:
  246.       order: 4
  247.     ffmpeg:
  248.       inputs:
  249.         - path: $$$$$$$$$$
  250.           roles:
  251.            - detect
  252.         - path: $$$$$$$$$$
  253.           roles:
  254.            - record
  255.     best_image_timeout: 30
  256.     motion:
  257.       threshold: 30
  258.       contour_area: 10
  259.       frame_height: 100
  260.       improve_contrast: 'true'
  261.       mask:
  262.        - 0.3,0.298,0.344,0.284,0.344,0.165,0.292,0.182
  263.         - 0.881,0.391,0.902,0.249,0.755,0.193,0.75,0.343
  264.     detect:
  265.       enabled: false
  266.     objects:
  267.       track:
  268.        - person
  269.       filters:
  270.         person:
  271.           min_score: 0.75
  272.           min_area: 8000
  273.           max_area: 45000
  274.  
  275. #################### ogród
  276.   4_out_garden:
  277.     birdseye:
  278.       order: 5
  279.     ffmpeg:
  280.       inputs:
  281.         - path: $$$$$$$$$$
  282.           roles:
  283.            - detect
  284.         - path: $$$$$$$$$$
  285.           roles:
  286.            - record
  287.     best_image_timeout: 30
  288.     motion:
  289.       mask:
  290.        - 0,352,0,0,640,0,640,352,530,352,405,54,364,29,347,57,249,52,245,90,236,150,166,352
  291.       # threshold: 15
  292.       # contour_area: 50
  293.       # delta_alpha: 0.3
  294.       # frame_height: 240
  295.     detect:
  296.       width: 640
  297.       height: 352
  298.     objects:
  299.       track:
  300.        - person
  301.         - dog
  302.       filters:
  303.         person:
  304.           min_area: 14000
  305.           max_area: 22000
  306.         dog:
  307.           min_area: 100000
  308.           max_area: 100000
  309.           min_score: 1
  310.           threshold: 0.5
  311. version: 0.14
  312. camera_groups: {}
  313.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement