视频流解析

硬件环境

开发板:RK356X

系统:Debian11

获取源码

  • 程序源码内置SDK目录
$ ls external/rknpu2/examples/rknn_yolov5_video_demo/
	build  build-android_RK356X.sh  build-android_RK3588.sh  build-linux_RK356X.sh  build-linux_RK3588.sh  
	CMakeLists.txt  convert_rknn_demo  include  install  model  README.md  src
  • 网盘获取测试视频文件
1-SDK Source 软件源码/demo/
	rknn_yolov5_demo_test.mp4

编译源码

  • 指定交叉编译工具链路径
$ export GCC_COMPILER=SDK目录/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-rockchip1031-linux-gnu
  • 编译源码
$ cd external/rknpu2/examples/rknn_yolov5_video_demo/
$ ./build-linux_RK356X.sh
  • 拷贝程序到开发板
$ ls install/rknn_yolov5_demo_Linux/
	lib/              model/            rknn_yolov5_demo

程序运行

  • 程序运行命令
$ cd rknn_yolov5_demo_Linux/
$ ./rknn_yolov5_demo model/RK356X/yolov5s-640-640.rknn model/test.mp4
  • 程序运行界面

RK3568 NPU YOLOV5S 目标检测DEMO-LMLPHP

07-02 14:16