升级firgate、xiaoya-alist

This commit is contained in:
waxgourd
2024-05-10 14:33:05 +08:00
parent 36864957ca
commit 425b9ef32d
4 changed files with 34 additions and 102 deletions

View File

@@ -1,101 +1,41 @@
# Frigate-rknpu版
## 使用方法:
## 准备工作
需要在 /mnt/data/supervisor/homeassistant/ 下面添加配置文件frigate.yaml
1、确保系统为启用RKNN功能的冬瓜版HAOS 12.3或以上版本。
可以
- 方法一:进入 [ip]:7681 导航到指定位置使用命令行工具添加编辑frigate.yaml
- 方法二:使用 File editor 或者 Filebrowser(推荐) 添加编辑frigate.yaml
包含机型
```yaml
mqtt:
enabled: false
- Green支持RKNN功能的硬件代号为ngreen
- panther-x2(从12.3开始为默认开启RKNN直接升级即可)
- X88pro20从OS12.3开始默认开启RKNN硬件代号nx88pro20
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
2、目前仅支持瑞芯微RK3566及以上CPU支持RKNN功能的
ffmpeg:
input_args: preset-rtsp-restream
hwaccel_args: preset-rk-h264
output_args:
record: preset-record-generic-audio-aac
此版本只测过冬瓜HAOS下使用其它未测试过。
#go2rtc:
# streams:
# frontdoor:
# - ffmpeg:rtsp://your-rtsp/Streaming/Channels/101
3、确认摄像头支持rtsp。
#注意下面的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
1、进入冬瓜版HAOS > 配置 > 加载项 > 加载项商店 > Add-ons by waxgourd安装**frigate-rknpu**(容量较大,请耐心等待)。
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
2、**frigate-rknpu**的信息页面中关闭**保护模式**并**启动**。
#这里是日志输出设置,请根据情况自行设置
3、正常启动则可以在**信息**页面中**打开 WEB UI**。
logger:
default: debug
logs:
ffmpeg.wga-door.detect: debug
detect: debug
```
4、进入**FRIGATE**内找到**CONFIG**,按照注释更改信息。
更多配置参考https://docs.frigate.video/configuration/
a、如果不需要开启`mqtt`则不需要更改该配置。如安装的是**mosquitto**,只需要将`enabled`改为`true`填写mosquitto设置的用户名和密码即可。
b、找到`cameras`下的`path`配置项将后面的地址改为你摄像头的地址。多摄像添加格式按照提示进行配置建议不要超过四个。太多会影响HA的性能。
格式rtsp://{账号}:{密码}@{IP地址}:554/Streaming/Channels/{通道号}
例如rtsp://rtsp:123456@192.168.68.148:554/Streaming/Channels/101
5、编辑完成后点击**SAVE & RESTART**保存并重启。注:他自己不能重启,只能进入页面再次点击**启动**。再次进入则可以看到图像了。
6、解锁更多玩法请查看[官方网站](https://docs.frigate.video/)

View File

@@ -1,5 +1,5 @@
name: frigate-rknpu
version: rknn1.6-13.2-preview
version: rknn1.6-13.2-2-preview
slug: 'frigate-rknpu'
codenotary: 'wghaos@163.com'
description: NVR with realtime local object detection for IP cameras
@@ -9,7 +9,6 @@ init: false
startup: application
boot: manual
arch:
- amd64
- aarch64
map:
- "media:rw"
@@ -39,21 +38,6 @@ ports_description:
1984/tcp: go2rtc API
1935/tcp: RTMP streams
host_network: false
devices:
- /dev/dri/renderD128
- /dev/dri/renderD129
- /dev/dri/renderD130
- /dev/apex_0
- /dev/apex_1
- /dev/apex_2
- /dev/apex_3
- /dev/dri/card0
- /dev/dri/card1
- /dev/dri/card2
- /dev/vchiq
- /dev/video10
- /dev/video0
usb: true
video: true
tmpfs: true
host_ipc: true

View File

@@ -27,4 +27,8 @@ configuration:
proxy:
name: proxy
description: >-
proxy.
proxy.
cron:
name: Timed cleaning settings
description: >-
Time division, day, month, week: If you do not understand the cron format, please do not modify it!!! Default daily cache cleaning and check-in at 5:20 am<61><6D>Set to empty, do not start scheduled cleaning

View File

@@ -28,3 +28,7 @@ configuration:
name: 代理
description: >-
代理。
cron:
name: 定时清理设置
description: >-
分 时 天 月 周如果不懂cron格式请勿修改默认每天5点20清理缓存和签到设置为空则不启动定时清理