-
Ubuntu18.04/Ubuntu20.04
-
cmake, git, make等等,根据实际情况缺什么安装什么
见models/detect_yolov5_onnx/README.md
git clone https://github.com/jnulzl/YOLOV5_RK1126
cd YOLOV5_RK1126
mkdir build && cd build
export CROSS_COMPILER_ROOT = 'YOUR CROSS COMPILER ROOT'
cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=$CROSS_COMPILER_ROOT/bin/arm-none-linux-gnueabihf-g++ -DCMAKE_C_COMPILER=$CROSS_COMPILER_ROOT/bin/arm-none-linux-gnueabihf-gcc
输出产物在YOLOV5_RK1126/bin/Linux
下面,拷贝到板子跑即可。