config.example.yml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. cameras:
  9. back:
  10. # Source passed to ffmpeg after the -i parameter. Supports anything compatible with OpenCV and FFmpeg.
  11. # Environment variables that begin with 'FRIGATE_' may be referenced in {}
  12. ffmpeg_input: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
  13. ################
  14. ## Optional mask. Must be the same dimensions as your video feed.
  15. ## The mask works by looking at the bottom center of the bounding box for the detected
  16. ## person in the image. If that pixel in the mask is a black pixel, it ignores it as a
  17. ## false positive. In my mask, the grass and driveway visible from my backdoor camera
  18. ## are white. The garage doors, sky, and trees (anywhere it would be impossible for a
  19. ## person to stand) are black.
  20. ################
  21. # mask: back-mask.bmp
  22. ################
  23. # Allows you to limit the framerate within frigate for cameras that do not support
  24. # custom framerates. A value of 1 tells frigate to look at every frame, 2 every 2nd frame,
  25. # 3 every 3rd frame, etc.
  26. ################
  27. take_frame: 1
  28. ################
  29. # Optional hardware acceleration parameters for ffmpeg. If your hardware supports it, it can
  30. # greatly reduce the CPU power used to decode the video stream. You will need to determine which
  31. # parameters work for your specific hardware. These may work for those with Intel hardware that
  32. # supports QuickSync.
  33. ################
  34. # ffmpeg_hwaccel_args:
  35. # - -hwaccel
  36. # - vaapi
  37. # - -hwaccel_device
  38. # - /dev/dri/renderD128
  39. # - -hwaccel_output_format
  40. # - yuv420p
  41. ################
  42. # FFmpeg log level. Default is "panic". https://ffmpeg.org/ffmpeg.html#Generic-options
  43. ################
  44. # ffmpeg_log_level: panic
  45. ################
  46. # Optional custom input args. Some cameras may need custom ffmpeg params to work reliably. Specifying
  47. # these will replace the default input params.
  48. ################
  49. # ffmpeg_input_args: []
  50. ################
  51. # Optional custom output args. Some cameras may need custom ffmpeg params to work reliably. Specifying
  52. # these will replace the default output params.
  53. ################
  54. # ffmpeg_output_args: []
  55. ################
  56. # size: size of the region in pixels
  57. # x_offset/y_offset: position of the upper left corner of your region (top left of image is 0,0)
  58. # min_person_area (optional): minimum width*height of the bounding box for the detected person
  59. # max_person_area (optional): maximum width*height of the bounding box for the detected person
  60. # threshold (optional): The minimum decimal percentage (50% hit = 0.5) for the confidence from tensorflow
  61. # Tips: All regions are resized to 300x300 before detection because the model is trained on that size.
  62. # Resizing regions takes CPU power. Ideally, all regions should be as close to 300x300 as possible.
  63. # Defining a region that goes outside the bounds of the image will result in errors.
  64. ################
  65. regions:
  66. - size: 350
  67. x_offset: 0
  68. y_offset: 300
  69. min_person_area: 5000
  70. max_person_area: 100000
  71. threshold: 0.5
  72. - size: 400
  73. x_offset: 350
  74. y_offset: 250
  75. min_person_area: 2000
  76. max_person_area: 100000
  77. threshold: 0.5
  78. - size: 400
  79. x_offset: 750
  80. y_offset: 250
  81. min_person_area: 2000
  82. max_person_area: 100000
  83. threshold: 0.5