学员优秀案例-100ASK-V853-PRO开发板-YOLOV5实时预览

0.前言

默认支持GC2053摄像头和MIPI显示屏
体验镜像:v853_linux_100ask_uart0.img
可执行程序:yolov5-camera.zip (600.0 KB)
执行命令:./yolov5-camera /etc/models/yolov5_model.nb

源码:100ask_yolov5_opencv_gc2053.tar.gz (1.3 MB)

硬件要求:
1.4寸MIPI显示屏
2.GC2053摄像头
3.100ASK_V853-PRO开发板

1.编译步骤

1.1 解压压缩包

解压压缩包yolov5_opencv_gc2053.tar.gz,输入

tar -xzvf yolov5_opencv_gc2053.tar.gz

解压完成后会得到yolov5_opencv_gc2053文件夹,进入该文件夹

cd yolov5_opencv_gc2053/

1.2 修改Makefile

修改Makfile文件中以下路径为你SDK中实际的路径。

CC:=~/workspaces/tina-v853-open/prebuilt/rootfsbuilt/arm/toolchain-sunxi-musl-gcc-830/toolchain/bin/arm-openwrt-linux-gcc
CXX:=~/workspaces/tina-v853-open/prebuilt/rootfsbuilt/arm/toolchain-sunxi-musl-gcc-830/toolchain/bin/arm-openwrt-linux-g++

INCLUDES += -I /home/book/workspaces/tina-v854-open/out/v853/100ask/openwrt/staging_dir/target/usr/include/
INCLUDES += -I /home/book/workspaces/tina-v853-open/out/v853/100ask/openwrt/staging_dir/target/usr/include/opencv4
INCLUDES += -I /home/book/workspaces/tina-v853-open/out/v853/100ask/openwrt/staging_dir/target/usr/include/opencv4/opencv2
INCLUDES += -I $(shell pwd)/include -I $(shell pwd)/isp/ -I $(shell pwd)/isp/include -I $(shell pwd)/isp/include/device

LIB_PATH := /home/book/workspaces/tina-v853-open/out/v853/100ask/openwrt/staging_dir/target/usr/lib/

注意:需要先配置opencv包,可按照如下链接操作。

1.3 导入STAGING_DIR路径

导入STAGING_DIR路径,需要根据你自己实际的路径修改:

export STAGING_DIR=/home/book/workspaces/tina-v853-open/prebuilt/rootfsbuilt/arm/toolchain-sunxi-musl-gcc-830/toolchain/arm-openwrt-linux-muslgnueabi

1.4 编译程序

编译程序

make


请问大佬可以帮我看看,在make后面的报错吗?

1.工具链和opencv库没有找到,修改Makefile文件中的路径。
2.opencv库编译参考资料汇总中的文章:100ASK_V853-PRO 资料汇总


利用提供的镜像和可执行文件运行是这个结果,可以帮忙看一下吗?

1.检查一下硬件是否连接正常(MIPI显示屏/摄像头)
2.根据打印信息定位程序在哪里结束再找问题
3.下载提供的镜像测试