File size: 2,338 Bytes
0000b86 cde4703 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | ---
license: mit
---
# AXERA Frigate
## 简介
此Docker镜像用于在axera平台一键部署Frigate
### 已支持芯片
- AX650N
- AX8850N
### 已支持 SDK 版本
- v3.6.2及以上的ubuntu版本(ubuntu_rootfs && ubuntu_rootfs_desktop)
### 已支持开发板
- AX650N DEMO Board
- Axera-Pi Pro
## 快速上手
### 安装
#### 导入docker镜像
```bash
docker load -i frigate-ax650-4dc1feb.tar
```
#### 准备config和media目录
```bash
root@ax650:~/frigate-runtime# tree -L 1
.
|-- config
|-- docker-compose.yml
`-- storage
2 directories, 1 file
```
> 请确认docker-compose.yml内配置的docker镜像和实际导入的一致
> 请确认docker-compose.yml内config目录和storage目录的映射位置和实际一致
#### 启动容器
```bash
docker compose up -d
```
### 访问
通过 **https://server_ip:8971** 访问Frigate
默认用户名 **admin** , 默认密码 **axera123456**
### 配置示例
```yaml
mqtt:
enabled: false
go2rtc:
streams:
#主码流
road1:
- rtsp://10.126.12.104:8554/road1.264
#子码流
road1_sub:
- rtsp://10.126.12.104:8554/road1_sub.264
cameras:
road1:
enabled: true
ffmpeg:
inputs:
#录制流的路径,这里使用go2rtc中设置的主码流
#调试阶段这里可以使用本地码流文件
- path: rtsp://127.0.0.1:8554/road1
roles:
- record
#检测流的路径,这里使用go2rtc中设置的辅码流
#调试阶段这里可以使用本地码流文件
- path: rtsp://127.0.0.1:8554/road1_sub
roles:
- detect
#使用axera对h264进行硬解码
#如果是h265码流,这里配置成preset-axera-h265
hwaccel_args: preset-axera-h264
record:
enabled: true
#打开检测功能
detect:
enabled: true
width: 1280
height: 720
fps: 5
#配置检测引擎使用axengine
detectors:
axengine:
type: axengine
#配置axengine的目标检测模型
model:
path: yolov5s_320
width: 320
height: 320
input_pixel_format: bgr
labelmap_path: /labelmap/coco-80.txt
#要跟踪的目标类型
objects:
track:
- person
- car
- bicycle
- motorcycle
version: 0.16-0
```
### 官方文档
- [英文文档](https://docs.frigate.video/)
- [中文文档](https://docs.frigate-cn.video/frigate/) |