This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:vim3:npu:npu-app [2023/09/12 03:25] sravan [Source Description] |
products:sbc:vim3:npu:npu-app [2024/03/12 05:26] (current) louis |
||
|---|---|---|---|
| Line 122: | Line 122: | ||
| | **makefile.target_name** | The name of the compiled executable. | | | **makefile.target_name** | The name of the compiled executable. | | ||
| - | ===== Compile | + | ===== Compile |
| 1. Compile the model you want to use from the '' | 1. Compile the model you want to use from the '' | ||
| Line 135: | Line 135: | ||
| ``` | ``` | ||
| - | 2. The compiled library '' | + | 2. The compiled library '' |
| ```shell | ```shell | ||
| - | $ sudo cp -r bin_r/ | + | $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH: |
| ``` | ``` | ||
| - | 3. You will also need to build the contents of the '' | + | 3. You will also need to build the contents of the '' |
| ```shell | ```shell | ||
| $ cd aml_npu_app/ | $ cd aml_npu_app/ | ||
| Line 149: | Line 149: | ||
| $ ls | $ ls | ||
| bin_r build_vx.sh | bin_r build_vx.sh | ||
| - | $ sudo cp -r bin_r/ | ||
| ``` | ``` | ||
| - | 4. Now, Build the example application | + | 4. The compiled library '' |
| + | |||
| + | ```shell | ||
| + | $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH: | ||
| + | ``` | ||
| + | |||
| + | 5. Now, Build the example application. | ||
| ```shell | ```shell | ||
| $ cd aml_npu_app/ | $ cd aml_npu_app/ | ||
| Line 162: | Line 167: | ||
| ``` | ``` | ||
| - | 5. Create a folder named '' | + | <WRAP important > |
| + | If you use kernel are using version | ||
| + | </ | ||
| + | |||
| + | ```diff | ||
| + | LIBS += -L$(VIVANTE_SDK_LIB) -lOpenVX -lOpenVXU -lGAL -lovxlib -lArchModelSw -lNNArchPerf | ||
| + | |||
| + | LIBS += -L../ | ||
| + | |||
| + | -#LIBS +=-L$(LIB_DIR) -lstdc++ | ||
| + | -LIBS += -lvpcodec -lamcodec -lamadec -lamvdec -lamavutils -lrt -lpthread -lge2d -lion | ||
| + | |||
| + | ############################################################################# | ||
| + | # Macros. | ||
| + | PROGRAM = 1 | ||
| + | CUR_SOURCE = ${wildcard *.c} | ||
| + | ############################################################################# | ||
| + | ``` | ||
| + | |||
| + | 6. Create a folder named '' | ||
| ```shell | ```shell | ||
| $ cd bin_r_cv4 | $ cd bin_r_cv4 | ||
| Line 170: | Line 194: | ||
| detect_demo_x11_usb | detect_demo_x11_usb | ||
| ``` | ``` | ||
| + | ===== Run the application ===== | ||
| - | 6. Finally | + | Now you can run inference on captured video data using the model. |
| ```shell | ```shell | ||
| $ ./ | $ ./ | ||
| ``` | ``` | ||
| - | ==== Run-time | + | ==== Application setup parameters ==== |
| - | === Selecting | + | === Parameter to select |
| The parameter '' | The parameter '' | ||
| Line 192: | Line 217: | ||
| - | For the above example, we used the serial number '' | + | For the above example, we used the serial number '' |
| - | === Providing picture as input === | + | === Parameter to set the input as picture |
| - | If you use the model that takes input as a picture, change '' | + | If you use the model that takes input as a picture, change '' |
| ```shell | ```shell | ||
| $ ./ | $ ./ | ||
| ``` | ``` | ||