跳到主要内容

事件编码器

gst-ai-event-encoder 对视频流执行目标检测,并将检测到的事件(目标出现/移动等)编码输出。适合安防监控、视频分析等需要输出结构化事件信息的场景。

前提条件

步骤

1. 确认模型

ls -l /etc/models/yolox_quantized.tflite

2. 查看配置

cat /etc/configs/config-event-encoder.json

3. 运行

radxa@airbox$
gst-ai-event-encoder --config-file=/etc/configs/config-event-encoder.json

Ctrl + C 停止。

预期输出

终端输出:

Running app with model: /etc/models/yolox_quantized.tflite and labels: /etc/labels/yolox.json
Using DSP delegate
VERBOSE: Replacing 329 out of 329 node(s) with delegate (TfLiteQnnDelegate) node
Pipeline state changed from PAUSED to PLAYING

显示器上播放检测画面,同时终端输出检测到的事件元数据。

验证

  • YOLOX 模型(329 节点)在 DSP 上运行
  • Pipeline 进入 PLAYING 状态
  • 终端持续输出事件编码数据

    您需要登录 GitHub 才能发表评论。如果您已登录,请忽略此消息。

    Radxa-docs © 2026 by Radxa Computer (Shenzhen) Co.,Ltd. is licensed under CC BY 4.0