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:41] sravan [Compile the application] |
products:sbc:vim3:npu:npu-app [2024/03/12 05:26] (current) louis |
||
---|---|---|---|
Line 135: | Line 135: | ||
``` | ``` | ||
- | 2. The compiled library '' | + | 2. The compiled library '' |
```shell | ```shell | ||
Line 165: | Line 165: | ||
$ ls | $ ls | ||
bin_r_cv4 | bin_r_cv4 | ||
+ | ``` | ||
+ | |||
+ | <WRAP important > | ||
+ | If you use kernel are using version 5.15 or above, please remove the red lines in '' | ||
+ | </ | ||
+ | |||
+ | ```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} | ||
+ | ############################################################################# | ||
``` | ``` | ||
Line 175: | Line 194: | ||
detect_demo_x11_usb | detect_demo_x11_usb | ||
``` | ``` | ||
- | ===== Run inference | + | ===== Run the application |
Now you can run inference on captured video data using the model. | Now you can run inference on captured video data using the model. | ||
Line 181: | Line 200: | ||
$ ./ | $ ./ | ||
``` | ``` | ||
- | ==== Run-time | + | ==== Application setup parameters ==== |
- | === Selecting | + | === Parameter to select |
The parameter '' | The parameter '' | ||
Line 198: | 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 | ||
$ ./ | $ ./ | ||
``` | ``` |