1
mqtt:
  enabled: false

cameras:
  front: # <------ Name the camera
    enabled: true
    webui_url: http://192.168.0.60/
    onvif:
      host: 192.168.0.60
      port: 2020
      user: admin
      password: #######
    #audio:
    #  enabled: true # <- enable audio events for the front_camera
    ffmpeg:
      hwaccel_args: preset-vaapi
      inputs:
        - path: rtsp://admin:######@192.168.0.60:554/stream2 # <----- The stream you want to use for detection
          roles:
            - detect
            #- audio
        - path: rtsp://admin:######@192.168.0.60:554/stream1
          roles:
            - record

      #output_args:
      #  record: preset-record-generic-audio-aac
    detect:
      enabled: true # <---- disable detection until you have a working camera feed
      fps: 10
      #width: 2880
      #height: 1620
    record:
      enabled: true
      retain:
        days: 30
        mode: motion
      events:
        retain:
          default: 90
          mode: active_objects
    review:
      alerts:
        labels:
          - cat
          - dog
          - person
          - bike
          - motorcycle
          - cell phone

    zones:
      Driveway:
        coordinates: 0.298,0.352,0.34,0.476,0.882,1,0.003,0.996,0,0.177,0.14,0.197,0.28,0.227
        loitering_time: 0
        inertia: 3
        objects:
          - cat
          - person
          - dog
          - bicycle
          - motorcycle
          - cell phone
          - bird
      Street:
        coordinates: 
          0.13,0.187,0.131,0.168,0.136,0.144,0.138,0.123,0.253,0,0.4,0.004,0.479,0.055,0.568,0.072,0.555,0.173,0.575,0.201,0.596,0.226,0.615,0.235,0.57,0.235,0.518,0.221,0.287,0.214,0.268,0.216,0.199,0.205
        loitering_time: 0
        inertia: 3
        objects:
          - cat
          - person
          - dog
          - bicycle
          - motorcycle
          - cell phone
          - bird
    motion:
      mask:
        - 0.365,0.51,0.363,0.27,0.419,0.235,0.459,0.234,0.481,0.311,0.501,0.325,0.554,0.266,0.595,0.276,0.598,0.312,0.628,0.328,0.698,0.21,0.858,0.318,0.887,0.342,0.931,0.419,0.993,0.431,0.952,0.708,0.883,0.894,0.763,0.881,0.594,0.675
        - 0.771,0.003,0.775,0.058,0.986,0.064,0.985,0
        - 0.979,0.223,0.858,0.312,0.647,0.26,0.562,0.171,0.686,0
        - 0.093,0.246,0.1,0.123,0,0.149,0,0,0.248,0,0.15,0.116,0.133,0.121,0.129,0.267
      threshold: 30
      contour_area: 10
      improve_contrast: 'true'

#review:
  # Optional: alerts configuration
  #alerts:
    # Optional: labels that qualify as an alert (default: shown below)
    #labels:
    #  - car
    #  - person
    #  - bike
    # - cat
    #  - dog
    # Optional: required zones for an object to be marked as an alert (default: none)
    # NOTE: when settings required zones globally, this zone must exist on all cameras
    #       or the config will be considered invalid. In that case the required_zones
    #       should be configured at the camera level.
    #required_zones:
    #  - Driveway
  # Optional: detections configuration
  #detections:
    # Optional: labels that qualify as a detection (default: all labels that are tracked / listened to)
    #labels:
    #  - person
    #  - cat
    #  - dog
    #  - bike
    # Optional: required zones for an object to be marked as a detection (default: none)
    # NOTE: when settings required zones globally, this zone must exist on all cameras
    #       or the config will be considered invalid. In that case the required_zones
    #       should be configured at the camera level.
    #required_zones:
    #  - Street

objects:
  track:
    - person
    - bird
    - bicycle
    - motorcycle
    - cat
    - dog
    - cell phone

# Optional: Configuration for the jpg snapshots written to the clips directory for each event
# NOTE: Can be overridden at the camera level
snapshots:
  # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
  enabled: True
  # Optional: save a clean PNG copy of the snapshot image (default: shown below)
  clean_copy: True
  # Optional: print a timestamp on the snapshots (default: shown below)
  timestamp: False
  # Optional: draw bounding box on the snapshots (default: shown below)
  bounding_box: True
  # Optional: crop the snapshot (default: shown below)
  crop: False
  # Optional: height to resize the snapshot to (default: original size)
  #height: 175
  # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
  required_zones: []
  # Optional: Camera override for retention settings (default: global values)
  retain:
    # Required: Default retention days (default: shown below)
    default: 60
    # Optional: Per object retention days
    objects:
      person: 90
      cat: 90
      bike: 90
  # Optional: quality of the encoded jpeg, 0-100 (default: shown below)
  quality: 70

detectors:
  ov:
    type: openvino
    device: GPU

model:
  width: 300
  height: 300
  input_tensor: nhwc
  input_pixel_format: bgr
  path: /openvino-model/ssdlite_mobilenet_v2.xml
  labelmap_path: /openvino-model/coco_91cl_bkgr.txt
version: 0.14

For immediate assistance, please email our customer support: [email protected]

Download RAW File