mirror of
https://gitcode.com/waxgourd/addons
synced 2025-12-06 12:28:28 +08:00
首次推出frigate-rknn-old
This commit is contained in:
6
frigate-rknn-old/CHANGELOG.md
Normal file
6
frigate-rknn-old/CHANGELOG.md
Normal file
@@ -0,0 +1,6 @@
|
||||
## rknn1.6-13.2-3 (2024-05-13)
|
||||
- 增加自动获取默认MQTT用户名和密码
|
||||
## rknn1.6-13.2-2-preview (2024-05-09)
|
||||
- 增加内置默认配置
|
||||
## rknn1.6-13.2-preview (2024-04-28)
|
||||
- 首次推出
|
||||
90
frigate-rknn-old/DOCS.md
Normal file
90
frigate-rknn-old/DOCS.md
Normal file
@@ -0,0 +1,90 @@
|
||||
# Frigate-rknpu-old版
|
||||
配置参考:[https://docs.frigate.video/configuration/reference](https://docs.frigate.video/configuration/reference)
|
||||
|
||||
## 使用方法:
|
||||
- 方法一:直接启动,启动完成之后,点击`打开webui`,点击`config`,进行编辑之后,点击`Save Only`,然后再重启本应用
|
||||
- 方法二:使用 Filebrowser 编辑`homeassistant/frigate.yaml`,然后启动本应用
|
||||
- 方法三:进入 [ip]:7681 导航到`/mnt/data/supervisor/homeassistant/`,使用命令行工具编辑`frigate.yaml`,然后启动本应用
|
||||
|
||||
`frigate.ayml`默认内容
|
||||
|
||||
```yaml
|
||||
mqtt:
|
||||
enabled: false # 如果要用请修改成 true
|
||||
host: core-mosquitto
|
||||
port: 1883
|
||||
client_id: gzbdi3
|
||||
#topic_prefix: frigate
|
||||
user: '' # 改成mqtt登录账号
|
||||
password: '' # 改成mqtt登录密码
|
||||
|
||||
ffmpeg:
|
||||
input_args: preset-rtsp-restream
|
||||
hwaccel_args: preset-rk-h264
|
||||
output_args:
|
||||
record: preset-record-generic-audio-aac
|
||||
|
||||
cameras:
|
||||
video: # 多路视频,请从此复制
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: '' # 填写你的rtsp视频流地址,比如:rtsp://username:password@192.168.1.100:554/Streaming/Channels/101
|
||||
input_args: preset-rtsp-restream
|
||||
roles:
|
||||
- detect
|
||||
|
||||
detectors:
|
||||
rk-detector:
|
||||
type: rknn
|
||||
|
||||
model:
|
||||
width: 320
|
||||
height: 320
|
||||
input_tensor: nhwc
|
||||
input_pixel_format: bgr
|
||||
|
||||
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: 2
|
||||
post_capture: 3
|
||||
objects:
|
||||
- person
|
||||
required_zones: [ ]
|
||||
retain:
|
||||
default: 2
|
||||
mode: active_objects
|
||||
objects:
|
||||
person: 15
|
||||
|
||||
logger:
|
||||
default: info
|
||||
logs:
|
||||
frigate.event: debug
|
||||
frigate.mqtt: debug
|
||||
detect: debug
|
||||
```
|
||||
32
frigate-rknn-old/README.md
Normal file
32
frigate-rknn-old/README.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# 冬瓜甄选addons:Frigate-rknpu-old
|
||||
|
||||
###### **此项目最高版为rknn1.6-13.2-3,到此为止,不会再升级**
|
||||
|
||||
## 关于
|
||||
Frigate是一款实时智能物体识别应用,所有处理可以在本地硬件上执行,通过网络摄像头捕捉的画面进行物体识别,可通过HA的事件机制,完成各种超过人存在传感器的功能。
|
||||
|
||||
## 介绍
|
||||
1. 通过本地对象检测可以减少误报
|
||||
传统的NVR依赖于简单的运动检测,需要通过数小时的微调设置降低误报率。通过Frigate物体检测算法,即使是普通的硬件也可以运行高级分析,以确定运动是否真的是人、车或其他感兴趣的物体。通过Frigate的本地处理,您就不需要使用把本地视频推送到付费的智能视频识别平台了。
|
||||
|
||||
2. 通过设置细微区域响应来触发事件和警报
|
||||
Frigate 通过实时跟踪物体,可以实现一个人从开始走上前面的台阶或汽车进入指定车道的准确时间。实现根据精确位置响应来优化通知的消息。
|
||||
|
||||
3. 与 Home Assistant 和其他自动化平台集成
|
||||
在任何支持 MQTT 的设备实体的平台(Home Assistant、NodeRed等),实现检测对象实体。 Frigate 的配套Home Assistant集成,提供低延迟摄像头实体、实时传感器和开关,达到实现自动化和通知功能。
|
||||
|
||||
4. 为摄像头提供动态实时视频推送查看功能
|
||||
通过Birdseye视图动态渲染让摄像头具有活动检测能力,让您可以轻松查看感兴趣的摄像头。从此告别眯着眼睛看整版由小方格组成的多路视频监控画面的时代。
|
||||
|
||||
5. RK3566系列soc可以在720P辅码流下,实现4路视频识别,从而实现最优成本的智能感知摄像头功能。(模型库大时,推荐1-2路,会让应用更广泛)
|
||||
|
||||
## 重要说明:
|
||||
此addon为“冬瓜haos”的rk3566系列AI固件的专用版,能充分发挥rknn的性能,在2024年4月28日前的rk3566系列机型,都为不带GPU加速的,想使用rknn功能,请确认好主机和固件,否则无法使用!!!
|
||||
|
||||
## 支持探测器:
|
||||
- cpu
|
||||
- rknn
|
||||
- openvino
|
||||
- 其他官方支持的硬件相关探测器(未测试)
|
||||
|
||||
|
||||
77
frigate-rknn-old/apparmor.txt
Normal file
77
frigate-rknn-old/apparmor.txt
Normal file
@@ -0,0 +1,77 @@
|
||||
#include <tunables/global>
|
||||
|
||||
profile frigate-rknpu-old flags=(attach_disconnected,mediate_deleted) {
|
||||
#include <abstractions/base>
|
||||
|
||||
capability,
|
||||
file,
|
||||
signal,
|
||||
mount,
|
||||
umount,
|
||||
remount,
|
||||
network udp,
|
||||
network tcp,
|
||||
network dgram,
|
||||
network stream,
|
||||
network inet,
|
||||
network inet6,
|
||||
network netlink raw,
|
||||
network unix dgram,
|
||||
network,
|
||||
|
||||
signal (send) set=(kill,term,int,hup,cont),
|
||||
|
||||
capability net_admin,
|
||||
capability net_bind_service,
|
||||
capability dac_read_search,
|
||||
capability dac_override,
|
||||
capability chown,
|
||||
|
||||
|
||||
capability setgid,
|
||||
capability setuid,
|
||||
capability sys_admin,
|
||||
capability dac_read_search,
|
||||
# capability dac_override,
|
||||
# capability sys_rawio,
|
||||
|
||||
# S6-Overlay
|
||||
/init ix,
|
||||
/run/{s6,s6-rc*,service}/** ix,
|
||||
/package/** ix,
|
||||
/command/** ix,
|
||||
/run/{,**} rwk,
|
||||
/dev/tty rw,
|
||||
/bin/** ix,
|
||||
/usr/bin/** ix,
|
||||
/usr/lib/bashio/** ix,
|
||||
/etc/s6/** rix,
|
||||
/run/s6/** rix,
|
||||
/etc/services.d/** rwix,
|
||||
/etc/cont-init.d/** rwix,
|
||||
/etc/cont-finish.d/** rwix,
|
||||
/init rix,
|
||||
/var/run/** mrwkl,
|
||||
/var/run/ mrwkl,
|
||||
/dev/i2c-1 mrwkl,
|
||||
# Files required
|
||||
/dev/fuse mrwkl,
|
||||
/dev/sda1 mrwkl,
|
||||
/dev/sdb1 mrwkl,
|
||||
/dev/nvme0 mrwkl,
|
||||
/dev/nvme1 mrwkl,
|
||||
/dev/mmcblk0p1 mrwkl,
|
||||
/dev/* mrwkl,
|
||||
/tmp/** mrkwl,
|
||||
/dev/shm/** rwix,
|
||||
|
||||
# Data access
|
||||
/data/** rw,
|
||||
|
||||
# suppress ptrace denials when using 'docker ps' or using 'ps' inside a container
|
||||
ptrace (trace,read) peer=docker-default,
|
||||
|
||||
# docker daemon confinement requires explict allow rule for signal
|
||||
signal (receive) set=(kill,term) peer=/usr/bin/docker,
|
||||
|
||||
}
|
||||
66
frigate-rknn-old/config.yaml
Normal file
66
frigate-rknn-old/config.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
name: frigate-rknpu-old
|
||||
version: rknn1.6-13.2-3
|
||||
slug: "frigate-rknpu-old"
|
||||
codenotary: "wghaos@163.com"
|
||||
description: NVR with realtime local object detection for IP cameras
|
||||
url: "https://gitcode.com/waxgourd/addons"
|
||||
image: r.hassbus.com/wghaos/frigate
|
||||
init: false
|
||||
startup: application
|
||||
boot: manual
|
||||
arch:
|
||||
- aarch64
|
||||
map:
|
||||
- "media:rw"
|
||||
- "config:rw"
|
||||
webui: "http://[HOST]:[PORT:5000]/"
|
||||
watchdog: "http://[HOST]:[PORT:5000]/"
|
||||
ingress: true
|
||||
ingress_port: 5000
|
||||
ingress_entry: /
|
||||
panel_icon: "mdi:cctv"
|
||||
panel_title: Frigate
|
||||
panel_admin: false
|
||||
homeassistant_api: true
|
||||
hassio_api: true
|
||||
hassio_role: manager
|
||||
ports:
|
||||
8555/tcp: 8555
|
||||
8555/udp: 8555
|
||||
8554/tcp: null
|
||||
5000/tcp: null
|
||||
1984/tcp: null
|
||||
1935/tcp: null
|
||||
ports_description:
|
||||
8555/tcp: WebRTC over tcp
|
||||
8555/udp: WebRTC over udp
|
||||
8554/tcp: RTSP Restream
|
||||
5000/tcp: Web interface (Not required for Hass.io Ingress)
|
||||
1984/tcp: go2rtc API
|
||||
1935/tcp: RTMP streams
|
||||
host_network: false
|
||||
video: true
|
||||
tmpfs: true
|
||||
host_ipc: true
|
||||
apparmor: true
|
||||
full_access: true
|
||||
privileged:
|
||||
- BPF
|
||||
- DAC_READ_SEARCH
|
||||
- IPC_LOCK
|
||||
- NET_ADMIN
|
||||
- NET_RAW
|
||||
- PERFMON
|
||||
- SYS_ADMIN
|
||||
- SYS_MODULE
|
||||
- SYS_NICE
|
||||
- SYS_PTRACE
|
||||
- SYS_RAWIO
|
||||
- SYS_RESOURCE
|
||||
- SYS_TIME
|
||||
environment:
|
||||
CONFIG_FILE: /config/frigate.yaml
|
||||
schema:
|
||||
plus_api_key: password?
|
||||
services:
|
||||
- "mqtt:want"
|
||||
BIN
frigate-rknn-old/icon.png
Normal file
BIN
frigate-rknn-old/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
BIN
frigate-rknn-old/logo.png
Normal file
BIN
frigate-rknn-old/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
Reference in New Issue
Block a user