Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim3:npu:npu-app

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:vim3:npu:npu-app [2023/09/12 06:04]
sravan [Run inference]
products:sbc:vim3:npu:npu-app [2024/03/12 05:26] (current)
louis
Line 165: Line 165:
 $ ls $ ls
 bin_r_cv4  build_vx.sh  detect.h  linux_build_sample.log  main.cpp  makefile.linux  makefile.linux.def  makefile.target_name  nn_detect_common.h  nn_detect.h  nn_detect_utils.h bin_r_cv4  build_vx.sh  detect.h  linux_build_sample.log  main.cpp  makefile.linux  makefile.linux.def  makefile.target_name  nn_detect_common.h  nn_detect.h  nn_detect_utils.h
 +```
 +
 +<WRAP important >
 +If you use kernel are using version 5.15 or above, please remove the red lines in ''makefile.linux'' before running ''build_vx.sh''.
 +</WRAP>
 +
 +```diff
 +LIBS += -L$(VIVANTE_SDK_LIB) -lOpenVX -lOpenVXU -lGAL -lovxlib -lArchModelSw -lNNArchPerf
 +
 +LIBS += -L../source_code/bin_r -lnn_detect
 +
 +-#LIBS +=-L$(LIB_DIR) -lstdc++
 +-LIBS += -lvpcodec -lamcodec -lamadec -lamvdec -lamavutils -lrt -lpthread -lge2d -lion
 +
 +#############################################################################
 +# Macros.
 +PROGRAM = 1
 +CUR_SOURCE = ${wildcard *.c}
 +#############################################################################
 ``` ```
  
Line 181: Line 200:
 $ ./detect_demo_x11_usb -m 2 -d /dev/video1 $ ./detect_demo_x11_usb -m 2 -d /dev/video1
 ``` ```
-==== Run-time parameters ==== +==== Application setup parameters ==== 
-=== Selecting the model ===+=== Parameter to select the detection model ===
  
 The parameter ''-m'' is for selecting the inference model, Here are the all the available models and their respective serial numbers. The parameter ''-m'' is for selecting the inference model, Here are the all the available models and their respective serial numbers.
Line 200: Line 219:
 For the above example, we used the serial number ''2'' which corresponds to the ''yolov3'' model. For the above example, we used the serial number ''2'' which corresponds to the ''yolov3'' model.
  
-=== Providing picture as input ===+=== Parameter to set the input as picture ===
  
 If you use the model that takes input as a picture, change ''-d'' to ''-p''. Here is an example with ''densenet_ctc''. If you use the model that takes input as a picture, change ''-d'' to ''-p''. Here is an example with ''densenet_ctc''.
Last modified: 2023/09/12 06:04 by sravan