Skip to content

Instantly share code, notes, and snippets.

@thanhtantran
Last active November 25, 2024 10:29
Show Gist options
  • Select an option

  • Save thanhtantran/77b230bd87a120b2b1cbbf509022cbd0 to your computer and use it in GitHub Desktop.

Select an option

Save thanhtantran/77b230bd87a120b2b1cbbf509022cbd0 to your computer and use it in GitHub Desktop.
frigate sample config
mqtt:
enabled: false
cameras:
Office1: # <------ Name the camera
enabled: true
ffmpeg:
inputs:
- path: rtsp://username:password@192.168.10.29:554/11 # <----- The stream you want to use for detection
roles:
- detect
detect:
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- screen
- phone
- keyboard
- fan
Office2: # <------ Name the camera
enabled: true
ffmpeg:
inputs:
- path: rtsp://username:password@192.168.10.30:554/11 # <----- The stream you want to use for detection
roles:
- detect
detect:
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- screen
- phone
- keyboard
- fan
camera_groups:
Office:
order: 1
icon: LuAirplay
cameras:
- Office1
- Office2
version: 0.14
ffmpeg:
hwaccel_args: preset-rk-h264
detectors: # required
rknn: # required
type: rknn # required
# number of NPU cores to use
# 0 means choose automatically
# increase for better performance if you have a multicore NPU e.g. set to 3 on rk3588
num_cores: 3
model: # required
# name of model (will be automatically downloaded) or path to your own .rknn model file
# possible values are:
# - deci-fp16-yolonas_s
# - deci-fp16-yolonas_m
# - deci-fp16-yolonas_l
# - /config/model_cache/your_custom_model.rknn
path: deci-fp16-yolonas_m
# width and height of detection frames
width: 320
height: 320
# pixel format of detection frame
# default value is rgb but yolo models usually use bgr format
input_pixel_format: bgr # required
# shape of detection frame
input_tensor: nhwc
# needs to be adjusted to model, see below
labelmap_path: /labelmap/coco-80.txt # required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment