config.example.yml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. web_port: 5000
  2. mqtt:
  3. host: mqtt.server.com
  4. topic_prefix: frigate
  5. # client_id: frigate # Optional -- set to override default client id of 'frigate' if running multiple instances
  6. # user: username # Optional -- Uncomment for use
  7. # password: password # Optional -- Uncomment for use
  8. #################
  9. # Default ffmpeg args. Optional and can be overwritten per camera.
  10. # Should work with most RTSP cameras that send h264 video
  11. # Built from the properties below with:
  12. # "ffmpeg" + global_args + input_args + "-i" + input + output_args
  13. #################
  14. # ffmpeg:
  15. # global_args:
  16. # - -hide_banner
  17. # - -loglevel
  18. # - panic
  19. # hwaccel_args: []
  20. # input_args:
  21. # - -avoid_negative_ts
  22. # - make_zero
  23. # - -fflags
  24. # - nobuffer
  25. # - -flags
  26. # - low_delay
  27. # - -strict
  28. # - experimental
  29. # - -fflags
  30. # - +genpts+discardcorrupt
  31. # - -vsync
  32. # - drop
  33. # - -rtsp_transport
  34. # - tcp
  35. # - -stimeout
  36. # - '5000000'
  37. # - -use_wallclock_as_timestamps
  38. # - '1'
  39. # output_args:
  40. # - -vf
  41. # - mpdecimate
  42. # - -f
  43. # - rawvideo
  44. # - -pix_fmt
  45. # - rgb24
  46. ####################
  47. # Global object configuration. Applies to all cameras
  48. # unless overridden at the camera levels.
  49. # Keys must be valid labels. By default, the model uses coco (https://dl.google.com/coral/canned_models/coco_labels.txt).
  50. # All labels from the model are reported over MQTT. These values are used to filter out false positives.
  51. # min_area (optional): minimum width*height of the bounding box for the detected person
  52. # max_area (optional): maximum width*height of the bounding box for the detected person
  53. # threshold (optional): The minimum decimal percentage (50% hit = 0.5) for the confidence from tensorflow
  54. ####################
  55. objects:
  56. track:
  57. - person
  58. - car
  59. - truck
  60. filters:
  61. person:
  62. min_area: 5000
  63. max_area: 100000
  64. threshold: 0.5
  65. cameras:
  66. back:
  67. ffmpeg:
  68. ################
  69. # Source passed to ffmpeg after the -i parameter. Supports anything compatible with OpenCV and FFmpeg.
  70. # Environment variables that begin with 'FRIGATE_' may be referenced in {}
  71. ################
  72. input: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
  73. #################
  74. # These values will override default values for just this camera
  75. #################
  76. # global_args: []
  77. # hwaccel_args: []
  78. # input_args: []
  79. # output_args: []
  80. ################
  81. ## Optional mask. Must be the same dimensions as your video feed.
  82. ## The mask works by looking at the bottom center of the bounding box for the detected
  83. ## person in the image. If that pixel in the mask is a black pixel, it ignores it as a
  84. ## false positive. In my mask, the grass and driveway visible from my backdoor camera
  85. ## are white. The garage doors, sky, and trees (anywhere it would be impossible for a
  86. ## person to stand) are black.
  87. ################
  88. # mask: back-mask.bmp
  89. ################
  90. # Allows you to limit the framerate within frigate for cameras that do not support
  91. # custom framerates. A value of 1 tells frigate to look at every frame, 2 every 2nd frame,
  92. # 3 every 3rd frame, etc.
  93. ################
  94. take_frame: 1
  95. ################
  96. # The number of seconds frigate will allow a camera to go without sending a frame before
  97. # assuming the ffmpeg process has a problem and restarting.
  98. ################
  99. # watchdog_timeout: 300
  100. ################
  101. # Configuration for the snapshot sent over mqtt
  102. ################
  103. snapshots:
  104. show_timestamp: True
  105. ################
  106. # Camera level object config. This config is merged with the global config above.
  107. ################
  108. objects:
  109. track:
  110. - person
  111. filters:
  112. person:
  113. min_area: 5000
  114. max_area: 100000
  115. threshold: 0.5
  116. ################
  117. # size: size of the region in pixels
  118. # x_offset/y_offset: position of the upper left corner of your region (top left of image is 0,0)
  119. # Tips: All regions are resized to 300x300 before detection because the model is trained on that size.
  120. # Resizing regions takes CPU power. Ideally, all regions should be as close to 300x300 as possible.
  121. # Defining a region that goes outside the bounds of the image will result in errors.
  122. ################
  123. regions:
  124. - size: 350
  125. x_offset: 0
  126. y_offset: 300
  127. - size: 400
  128. x_offset: 350
  129. y_offset: 250
  130. - size: 400
  131. x_offset: 750
  132. y_offset: 250