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/06 06:42] nick |
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 OpenCV4 | + | ==== Get source code ==== |
- | ```shell | + | You need to download the source code to your VIM4 board and compile on it. |
- | $ sudo apt update | + | |
- | $ sudo apt install libopencv-dev python3-opencv | + | |
- | ``` | + | |
- | + | ||
- | ==== Source Code for Applications ==== | + | |
Clone the NPU demo applications to somewhere, e.g. '' | Clone the NPU demo applications to somewhere, e.g. '' | ||
Line 30: | Line 29: | ||
mobilenet_v2 | mobilenet_v2 | ||
``` | ``` | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
- | + | ==== Install dependences | |
- | ==== Compile | + | |
- | + | ||
- | All demos are made based on the '' | + | |
```shell | ```shell | ||
- | $ sudo apt install cmake | + | $ sudo apt update |
+ | $ sudo apt install | ||
``` | ``` | ||
+ | |||
+ | ==== Compile ==== | ||
Take '' | Take '' | ||
Line 69: | Line 68: | ||
<WRAP important > | <WRAP important > | ||
- | The demos of the Yolo series only support running | + | The demos of the Yolo series only support running |
</ | </ | ||
- | It needs to be edited before | + | <WRAP tip > |
+ | Before | ||
+ | </ | ||
- | Detect | + | Detect |
```shell | ```shell | ||
Line 81: | Line 82: | ||
``` | ``` | ||
- | https:// | + | {{:products:sbc:vim4:npu: |
- | {{:local:dev: | + | |
- | Detection | + | Detection |
```shell | ```shell | ||
Line 90: | Line 90: | ||
$ sudo ./ | $ sudo ./ | ||
``` | ``` | ||
- | **x**: the number for you camera device. such as `/dev/video0`, `x` is `0`. | + | **x**: the number for you camera device. such as '' |
+ | ===== Android ===== | ||
+ | WIP: | ||