Files
waxgourd-addons/frigate/DOCS.md
2024-04-28 23:39:46 +08:00

102 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Frigate-rknpu版
## 使用方法:
需要在 /mnt/data/supervisor/homeassistant/ 下面添加配置文件frigate.yaml
可以:
- 方法一:进入 [ip]:7681 导航到指定位置使用命令行工具添加编辑frigate.yaml
- 方法二:使用 File editor 或者 Filebrowser(推荐) 添加编辑frigate.yaml
```yaml
mqtt:
enabled: false
detectors:
rknn_k:
type: rknn
#cpu2:
# type: cpu
# num_threads: 3
#ov:
# type: openvino
# device: AUTO
# model:
# path: /openvino-model/ssdlite_mobilenet_v2.xml
model:
width: 320
height: 320
input_tensor: nhwc
input_pixel_format: bgr
#path: default-yolov8n
#labelmap_path: /openvino-model/coco_91cl_bkgr.txt
ffmpeg:
input_args: preset-rtsp-restream
hwaccel_args: preset-rk-h264
output_args:
record: preset-record-generic-audio-aac
#go2rtc:
# streams:
# frontdoor:
# - ffmpeg:rtsp://your-rtsp/Streaming/Channels/101
#注意下面的path后是要改成自己摄像头rtsp链接的。
cameras:
wga-door:
ffmpeg:
inputs:
- path: rtsp://your-rtsp/Streaming/Channels/101
roles:
- detect
detect:
width: 1280
height: 720
fps: 6
enabled: True
objects:
track:
- person
filters:
person:
min_score: 0.2
snapshots:
enabled: true
bounding_box: true
clean_copy: true
retain:
default: 15
record:
enabled: true
expire_interval: 60
retain:
days: 0
mode: active_objects
events:
pre_capture: 3
post_capture: 3
objects:
- person
retain:
mode: active_objects
objects:
person: 15
default: 2
#这里是日志输出设置,请根据情况自行设置
logger:
default: debug
logs:
ffmpeg.wga-door.detect: debug
detect: debug
```
更多配置参考https://docs.frigate.video/configuration/