This document mainly describes how to compile executable files from application source code.
Only support local compile on VIM3/3L Only support OpenCV4
$ sudo apt update $ sudo apt install libopencv-dev python3-opencv
$ mkdir{workspace} && cd {workspace} $ git clone https://github.com/khadas/aml_npu_app
$ cd {workspace}/aml_npu_app $ ls DDK_6.3.2 DDK_6.3.2.3 DDK_6.3.2.5 DDK_6.3.3.4 DDK_6.4.0.3 DDK_6.4.3 detect_library LICENSE NN_SLT
Enter the directory of the library source code, which is the directory of the DDK.
$ cd {workspace}/aml_npu_app/detect_library/model_code $ ls detect_mtcnn detect_yoloface detect_yolo_v2 detect_yolo_v3 detect_yolo_v3_tiny detect_yolo_v4 facenet
Except for detect_mtcnn
, each directory represents a different model, and each model will be compiled into a library.
Take detect_yolo_v3
as an example to illustrate the structure of each directory.
$ cd {workspace}/aml_npu_app/detect_library/model_code/detect_yolo_v3 $ ls build_vx.sh include Makefile makefile.linux vnn_yolov3.c yolo_v3.c yolov3_process.c
Main content description: