config.example.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 and regions
  48. # unless overridden at the camera/region 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. ####################
  52. objects:
  53. person:
  54. min_area: 5000
  55. max_area: 100000
  56. threshold: 0.5
  57. cameras:
  58. back:
  59. ffmpeg:
  60. ################
  61. # Source passed to ffmpeg after the -i parameter. Supports anything compatible with OpenCV and FFmpeg.
  62. # Environment variables that begin with 'FRIGATE_' may be referenced in {}
  63. ################
  64. input: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
  65. #################
  66. # These values will override default values for just this camera
  67. #################
  68. # global_args: []
  69. # hwaccel_args: []
  70. # input_args: []
  71. # output_args: []
  72. ################
  73. ## Optional mask. Must be the same dimensions as your video feed.
  74. ## The mask works by looking at the bottom center of the bounding box for the detected
  75. ## person in the image. If that pixel in the mask is a black pixel, it ignores it as a
  76. ## false positive. In my mask, the grass and driveway visible from my backdoor camera
  77. ## are white. The garage doors, sky, and trees (anywhere it would be impossible for a
  78. ## person to stand) are black.
  79. ################
  80. # mask: back-mask.bmp
  81. ################
  82. # Allows you to limit the framerate within frigate for cameras that do not support
  83. # custom framerates. A value of 1 tells frigate to look at every frame, 2 every 2nd frame,
  84. # 3 every 3rd frame, etc.
  85. ################
  86. take_frame: 1
  87. objects:
  88. person:
  89. min_area: 5000
  90. max_area: 100000
  91. threshold: 0.5
  92. ################
  93. # size: size of the region in pixels
  94. # x_offset/y_offset: position of the upper left corner of your region (top left of image is 0,0)
  95. # min_person_area (optional): minimum width*height of the bounding box for the detected person
  96. # max_person_area (optional): maximum width*height of the bounding box for the detected person
  97. # threshold (optional): The minimum decimal percentage (50% hit = 0.5) for the confidence from tensorflow
  98. # Tips: All regions are resized to 300x300 before detection because the model is trained on that size.
  99. # Resizing regions takes CPU power. Ideally, all regions should be as close to 300x300 as possible.
  100. # Defining a region that goes outside the bounds of the image will result in errors.
  101. ################
  102. regions:
  103. - size: 350
  104. x_offset: 0
  105. y_offset: 300
  106. objects:
  107. car:
  108. threshold: 0.2
  109. - size: 400
  110. x_offset: 350
  111. y_offset: 250
  112. objects:
  113. person:
  114. min_area: 2000
  115. - size: 400
  116. x_offset: 750
  117. y_offset: 250
  118. objects:
  119. person:
  120. min_area: 2000