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:opencv-dnn [2023/05/09 23:24] nick [Install Dependencies] |
products:sbc:vim3:npu:opencv-dnn [2023/12/25 03:59] (current) nick |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~tag> VIM3 OpenCV~~ | ||
+ | |||
====== OpenCV DNN Usage ====== | ====== OpenCV DNN Usage ====== | ||
<WRAP important > | <WRAP important > | ||
- | Just use for VIM3, not in VIM3L. | + | For [[:VIM3]] only, not for [[:VIM3L]]. |
</ | </ | ||
Line 11: | Line 13: | ||
```shell | ```shell | ||
sudo apt update | sudo apt update | ||
- | sudo apt install python3 python3-numpy libgtk2.0-dev | + | sudo apt install python3 |
``` | ``` | ||
+ | |||
===== Install OpenCV ===== | ===== Install OpenCV ===== | ||
Line 18: | Line 21: | ||
```shell | ```shell | ||
- | $ wget https:// | + | wget https:// |
- | $ sudo dpkg -i opencv-4.7-2.deb | + | sudo dpkg -i opencv_4.8.1.deb |
``` | ``` | ||
===== Run Test ===== | ===== Run Test ===== | ||
- | ==== Get Demo Source | + | ==== Get demo source |
- | Get the example repository from Github. | + | Get the example repository from [[kg> |
```shell | ```shell | ||
- | $ cd ~ | + | cd ~ |
- | $ git clone https:// | + | git clone https:// |
``` | ``` | ||
Line 38: | Line 41: | ||
```shell | ```shell | ||
- | $ cd ~/ | + | cd ~/ |
- | $ mkdir build && cd build | + | mkdir build && cd build |
- | $ cmake .. | + | cmake .. |
- | $ make | + | make |
``` | ``` | ||
Line 49: | Line 52: | ||
```shell | ```shell | ||
- | $ cd ~/ | + | cd ~/ |
- | $ ./ | + | ./ |
``` | ``` | ||
- | {{products: | ||
+ | <WRAP tip > | ||
+ | For example my cam device node is ''/ | ||
+ | </ | ||
+ | |||
+ | {{products: | ||
+ | ===== Quantize Model ===== | ||
+ | We suggest that quantize your model before running on VIM3. If your model performs bad after quantizing, without quantification is okay. Get [[https:// |