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:npu-prebuilt-demo-usage [2023/09/11 09:03] sravan [Illustrative Example] |
products:sbc:vim3:npu:npu-prebuilt-demo-usage [2023/09/11 09:58] (current) hyphop |
||
---|---|---|---|
Line 13: | Line 13: | ||
===== Get NPU Demo ===== | ===== Get NPU Demo ===== | ||
+ | /* | ||
<WRAP important > | <WRAP important > | ||
The NPU Demo is not installed on the board by default. You need to download it from GitHub first. | The NPU Demo is not installed on the board by default. You need to download it from GitHub first. | ||
</ | </ | ||
+ | */ | ||
Get the demo source: [[gh> | Get the demo source: [[gh> | ||
Line 25: | Line 27: | ||
The NPU demo contains three examples: | The NPU demo contains three examples: | ||
- | - '' | + | - '' |
- | - '' | + | - '' |
- | - '' | + | - '' |
===== Inception Model ===== | ===== Inception Model ===== | ||
Line 70: | Line 72: | ||
<WRAP Info> | <WRAP Info> | ||
| | ||
- | By querying '' | + | By querying '' |
</ | </ | ||
Line 99: | Line 101: | ||
<WRAP important > | <WRAP important > | ||
- | The type parameter is an input parameter that must be selected whether it is to use camera dynamic recognition or to recognize pictures. This parameter is mainly used to specify the running | + | The type parameter is an input parameter that must be selected whether it is to use camera dynamic recognition or to recognize pictures. This parameter is mainly used to specify the running |
</ | </ | ||
Line 117: | Line 119: | ||
- The demo with x11 is running in X11 mode. | - The demo with x11 is running in X11 mode. | ||
- | ==== Illustrative Example | + | ==== Demo examples |
- | + | === detect_demo_picture | |
- | Here is an example of detect_demo_picture, | + | |
```shell | ```shell | ||
- | $ cd {workspace}/ | + | $ cd aml_npu_demo_binaries/ |
$ ls | $ ls | ||
1080p.bmp | 1080p.bmp | ||
``` | ``` | ||
- | ==== Run ==== | + | == Run == |
- | Identify the command | + | Command |
```shell | ```shell | ||
- | $ cd {workspace}/ | + | $ cd aml_npu_demo_binaries/ |
- | $ ./ | + | $ ./ |
``` | ``` | ||
- | Here is an example of using Opencv4 | + | Here is an example of using OpenCV4 |
```shell | ```shell | ||
- | $ cd {workspace}/ | + | $ cd aml_npu_demo_binaries/ |
- | $ ./detect_demo_fb | + | $ ./detect_demo_x11 |
``` | ``` | ||
Line 146: | Line 147: | ||
{{: | {{: | ||
+ | === detect_demo === | ||
- | < | + | < |
You should use the demo of usb to use the USB camera, and the demo of mipi to use the mipi camera. | You should use the demo of usb to use the USB camera, and the demo of mipi to use the mipi camera. | ||
</ | </ | ||
+ | == Run == | ||
Command format for camera dynamic recognition. | Command format for camera dynamic recognition. | ||
```shell | ```shell | ||
- | $ cd {workspace}/ | + | $ cd aml_npu_demo_binaries/ |
- | $ ./ | + | $ ./ |
``` | ``` | ||
- | Here is an example of using opencv4 | + | Here is an example of using OpenCV4 |
```shell | ```shell | ||
- | $ cd {workspace}/ | + | $ cd aml_npu_demo_binaries/ |
$ ./ | $ ./ | ||
``` | ``` | ||
- | < | + | < |
After turning on the camera, the recognition result will be displayed on the screen. | After turning on the camera, the recognition result will be displayed on the screen. | ||
</ | </ | ||
{{: | {{: |