rdk-x5-ai-detect

在 RDK X5 的 10TOPS BPU 上运行单个 AI 推理算法:YOLO 目标检测、图像分类、语义分割、人脸识别、手势识别、人体关键点、开放词汇检测(DOSOD/YOLO-World)、双目深度估计、语音识别、端侧轻量 LLM(≤2B 参数量化模型)。Use when the user wants to run a single AI algorithm, deploy pre-built .bin models to BPU, or ask what AI models/LLMs RDK X5 can run (能力咨询). Do NOT use for camera hardware setup (use rdk-x5-camera), multimedia encoding (use rdk-x5-media), running /app demo scripts (use rdk-x5-app), integrated camera+AI+output pipeline (use rdk-x5-tros), model conversion/quantization/export (use Horizon toolchain on PC), large generative models like Stable Diffusion (insufficient VRAM), or custom code that bridges AI results to external services like MQTT.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "rdk-x5-ai-detect" with this command: npx skills add katherineedwards2475/rdk-x5-ai-detect

RDK X5 AI Detect — BPU AI 推理

RDK X5 搭载 10 TOPS BPU,所有 AI 算法通过 TogetheROS.Bot (tros.b) 框架运行。

前置准备

# 每个终端都需要 source
source /opt/tros/humble/setup.bash

# 安装 Python 推理库(可选,用于自定义推理脚本)
pip3 install hobot-dnn-rdkx5 hobot-vio-rdkx5

操作步骤

1. YOLO 目标检测(摄像头实时)

source /opt/tros/humble/setup.bash
ros2 launch dnn_node_example dnn_node_example.launch.py \
  dnn_example_config_file:=config/yolov5sworkconfig.json \
  dnn_example_image_width:=640 dnn_example_image_height:=480

浏览器 http://<RDK_IP>:8000 查看检测结果。

可选模型配置文件:

模型config 文件
YOLOv5sconfig/yolov5sworkconfig.json
MobileNetV2 分类config/mobilenetv2workconfig.json

2. 图像分类

source /opt/tros/humble/setup.bash
ros2 launch dnn_node_example dnn_node_example.launch.py \
  dnn_example_config_file:=config/mobilenetv2workconfig.json

3. 开放词汇检测(DOSOD / YOLO-World)

source /opt/tros/humble/setup.bash

# DOSOD(地瓜自研,支持语音指令指定检测目标)
ros2 launch hobot_dosod dosod.launch.py

# YOLO-World
ros2 launch hobot_yolo_world hobot_yolo_world.launch.py

4. 双目深度估计

source /opt/tros/humble/setup.bash
# 需配合双目摄像头(SC230ai / SC132gs / ZED)
ros2 launch hobot_stereonet stereonet_model.launch.py

5. 语音识别 (ASR)

source /opt/tros/humble/setup.bash
ros2 launch hobot_asr hobot_asr.launch.py

需配合音频子板(微雪 WM8960 Audio HAT 或幻尔载板)。

6. 端侧 LLM 大模型

source /opt/tros/humble/setup.bash
ros2 launch hobot_llamacpp hobot_llamacpp.launch.py

7. Web 可视化

source /opt/tros/humble/setup.bash
ros2 launch websocket websocket.launch.py

所有算法结果叠加实时画面,浏览器 http://<RDK_IP>:8000 查看。

8. RTSP 拉流 + AI 推理(智能盒子方案)

source /opt/tros/humble/setup.bash
ros2 launch hobot_rtsp_client hobot_rtsp_client.launch.py \
  rtsp_url:="rtsp://admin:password@192.168.1.64:554/stream1"

性能监控

# BPU 使用率
cat /sys/devices/system/bpu/bpu0/ratio

# 推理帧率
ros2 topic hz /ai_msg

排查故障

现象原因解决
Load model failed模型文件不存在或格式错误检查 .bin 文件路径;模型需经 hb_mapper 转换为 NV12 格式
BPU ratio 始终 0推理节点未启动或模型未加载ros2 node list 确认 dnn_node 正在运行
Web 无 AI 结果叠加websocket 未连接 AI topic确认 websocket 订阅的 topic 名称正确
帧率极低 (<5fps)模型过大或分辨率过高降低输入分辨率;使用轻量模型(如 YOLOv5s 替代 YOLOv5x)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Rdk X5 App

运行 RDK X5 /app 目录下的预装示例程序:12 个 Python AI 推理 demo(YOLO/分类/分割/Web展示)、40pin GPIO 示例、C++ 多媒体示例(编解码/RTSP/VIO)、查看 34 个预装 BPU 模型。Use when the user wants to run pre-...

Registry SourceRecently Updated
1040Profile unavailable
Automation

Rdk X5 Tros

使用 RDK X5 上的 TogetheROS.Bot (tros.b) Humble 框架:启动 43 个预装 ROS2 算法包、管理 ROS2 话题/节点/服务、构建摄像头+AI+输出(Web/语音/HDMI)集成 pipeline、创建自定义 ROS2 工作空间。Use when the user ment...

Registry SourceRecently Updated
820Profile unavailable
Automation

Rdk X5 System

修改和管理 RDK X5 系统配置:查看系统版本/硬件信息/系统日志、rdk-backup 一键备份与恢复、apt OTA 升级、miniboot 固件更新、CPU/BPU 频率调节与温度阈值设置、config.txt 配置修改、实时内核切换、systemd 开机自启动、存储扩容。Use when the use...

Registry SourceRecently Updated
780Profile unavailable
Automation

Rdk X5 Network

管理 RDK X5 的 WiFi 连接、有线网络静态IP、蓝牙配对、WiFi 热点创建、SSH 远程访问配置、VNC 远程连接故障排查。Use when the user wants to connect WiFi, create hotspot, pair Bluetooth, configure SSH, t...

Registry SourceRecently Updated
870Profile unavailable