mqtt:
  enabled: false

notifications:
  enabled: true
  email: abcdefg@gmail.com

# Keep your hardware accelerated decoding configuration
ffmpeg:
  hwaccel_args: preset-nvidia-h264
#  output_args:
#    record: preset-record-generic-audio-aac

go2rtc:
  streams:
    Main_gate:
      - rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.1.201:554/stream1
    Main_gate_sub:
      - rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.1.201:554/stream2

detectors:
  onnx:
    type: onnx

model:
  model_type: yolo-generic
  width: 320 # <--- should match the imgsize set during model export
  height: 320 # <--- should match the imgsize set during model export
  input_tensor: nchw
  input_dtype: float
  #input_pixel_format: rgb
  path: /config/model_cache/yolov9-t-320.onnx
  #labelmap_path: /config/labelmap/coco-80.txt

detect:
  enabled: true
  width: 640
  height: 360
  fps: 5

objects:
      track:
        - person
        - car

record:
  sync_recordings: true # Sync your DB and records
  enabled: true
  motion:
    days: 1
  alerts:
    retain:
      days: 30
      mode: motion
  detections:
    retain:
      days: 30
      mode: motion

cameras:     # No cameras defined, UI wizard should be used
  Main_gate:
    enabled: true
    friendly_name: Portão principal
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Main_gate
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/Main_gate_sub
          roles:
            - detect

    live:
      streams:
        Stream 1: Main_gate

    zones:
      zona1:
        coordinates: 0,0.29,1,0.123,1,1,0.001,0.996
        loitering_time: 0
        friendly_name: Zona1

    motion:
      mask: 
        0.175,0.095,0.334,0.035,0.401,0.207,0.362,0.356,0.284,0.399,0.205,0.304
    notifications:
      enabled: true

    review:
      detections:
        labels:
          - car
          - cat
          - dog
          - person
        required_zones: zona1
      alerts:
        labels:
          - car
          - cat
          - dog
          - person
        required_zones: zona1
#    objects:
#      track:
#        - person
#        - car
version: 0.17-0



