This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:vim4:npu:npu-applications [2023/06/14 09:34] hyphop [Run] |
products:sbc:vim4:npu:npu-applications [2023/09/15 03:05] (current) hyphop |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ~~tags> |
+ | |||
+ | ====== NPU Applications ====== | ||
+ | |||
+ | {{indexmenu_n> | ||
<WRAP important > | <WRAP important > | ||
Line 8: | Line 12: | ||
<WRAP important > | <WRAP important > | ||
- | Only supports OpenCV4 | + | Only supports OpenCV4. |
</ | </ | ||
- | ==== 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 | mobilenet_v2 | ||
``` | ``` | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
+ | ==== Install dependences ==== | ||
+ | |||
+ | ```shell | ||
+ | $ sudo apt update | ||
+ | $ sudo apt install libopencv-dev python3-opencv cmake | ||
+ | ``` | ||
==== Compile ==== | ==== Compile ==== | ||
Line 70: | Line 73: | ||
<WRAP tip > | <WRAP tip > | ||
Before running, please compile the source code. The compilation method is same as '' | Before running, please compile the source code. The compilation method is same as '' | ||
- | |||
</ | </ | ||
- | |||
Detect picture: | Detect picture: | ||
Line 90: | Line 91: | ||
``` | ``` | ||
**x**: the number for you camera device. such as ''/ | **x**: the number for you camera device. such as ''/ | ||
- | |||
- | === Yolov7_tiny === | ||
- | |||
- | Detect picture: | ||
- | |||
- | ```shell | ||
- | $ cd yolov7_tiny/ | ||
- | $ sudo ./ | ||
- | ``` | ||
- | |||
- | Detection with camera: | ||
- | |||
- | ```shell | ||
- | $ cd yolov7_tiny_cap/ | ||
- | $ sudo ./ | ||
- | ``` | ||
- | |||
- | === Yolov8n === | ||
- | |||
- | Detect picture: | ||
- | |||
- | ```shell | ||
- | $ cd yolov8n/ | ||
- | $ sudo ./yolov8n -p ../ | ||
- | ``` | ||
- | |||
- | Detection with camera: | ||
- | |||
- | ```shell | ||
- | $ cd yolov8n_cap/ | ||
- | $ sudo ./ | ||
- | ``` | ||
===== Android ===== | ===== Android ===== | ||
WIP: | WIP: | ||
- | |||