Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4:npu:npu-applications

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:vim4:npu:npu-applications [2023/06/07 02:04]
nick
products:sbc:vim4:npu:npu-applications [2023/09/15 03:05] (current)
hyphop
Line 1: Line 1:
-====== VIM4 NPU Applications ======+~~tags>VIM4 NPU~~ 
 +  
 +====== NPU Applications ====== 
 + 
 +{{indexmenu_n>1}}
  
 <WRAP important > <WRAP important >
Line 8: Line 12:
  
 <WRAP important > <WRAP important >
-Only supports OpenCV4+Only supports OpenCV4.
 </WRAP> </WRAP>
  
-==== Install Dependencies ==== +==== Get source code ====
- +
-```shell +
-$ sudo apt update +
-$ sudo apt install libopencv-dev python3-opencv cmake +
-``` +
- +
-==== Source Code for Applications ====+
  
 You need to download the source code to your VIM4 board and compile on it. You need to download the source code to your VIM4 board and compile on it.
Line 32: Line 29:
 mobilenet_v2  nn_sdk  yolov3  yolov3_cap  yolov7_tiny  yolov7_tiny_cap  yolov8n  yolov8n_cap mobilenet_v2  nn_sdk  yolov3  yolov3_cap  yolov7_tiny  yolov7_tiny_cap  yolov8n  yolov8n_cap
 ``` ```
-  * ''mobilenet_v2''/''yolov3''/''yolov3_cap''/''yolov7_tiny''/''yolov8n''Different demo for VIM4 NPU. +  * ''mobilenet_v2''''yolov3''''yolov3_cap''''yolov7_tiny''''yolov8n'' Different demo for VIM4 NPU. 
-  * ''nn_sdk''Dependencies required for compilation.+  * ''nn_sdk'' Dependencies required for compilation.
  
 +==== Install dependences ====
 +
 +```shell
 +$ sudo apt update
 +$ sudo apt install libopencv-dev python3-opencv cmake
 +```
  
 ==== Compile ==== ==== Compile ====
Line 69: Line 72:
  
 <WRAP tip > <WRAP tip >
-Before running, please complie the source code. The method of compliation is same as ''Mobilenet V2''. +Before running, please compile the source code. The compilation method is same as ''Mobilenet V2''.
 </WRAP> </WRAP>
- 
  
 Detect picture: Detect picture:
Line 90: Line 91:
 ``` ```
 **x**: the number for you camera device. such as ''/dev/video0'', ''x'' is ''0''. **x**: the number for you camera device. such as ''/dev/video0'', ''x'' is ''0''.
- 
-=== Yolov7_tiny === 
- 
-Detect picture: 
- 
-```shell 
-$ cd yolov7_tiny/build 
-$ sudo ./yolov7_tiny -p ../data/horses.jpg  -m ../data/yolov7_tiny_int8.adla 
-``` 
- 
-Detection with camera: 
- 
-```shell 
-$ cd yolov7_tiny_cap/build 
-$ sudo ./yolov7_tiny_cap -m ../data/yolov7_tiny_int8.adla -d X -w 1920 -h 1080 
-``` 
- 
-=== Yolov8n === 
- 
-Detect picture: 
- 
-```shell 
-$ cd yolov8n/build 
-$ sudo ./yolov8n -p ../data/horses.jpg  -m ../data/yolov8n_int8.adla 
-``` 
- 
-Detection with camera: 
- 
-```shell 
-$ cd yolov8n_cap/build 
-$ sudo ./yolov8n_cap -m ../data/yolov8n_int8.adla -d X -w 1920 -h 1080 
-``` 
  
 ===== Android ===== ===== Android =====
  
 WIP: WIP:
- 
  
Last modified: 2023/06/07 02:04 by nick