This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
products:sbc:vim3:npu:npu-prebuilt-demo-usage [2023/09/11 09:02] sravan [Operating Environment Description] |
products:sbc:vim3:npu:npu-prebuilt-demo-usage [2023/09/11 09:20] sravan [Demo examples] |
||
---|---|---|---|
Line 114: | Line 114: | ||
NPU Demo can run in X11 Desktop or framebuffer mode, just select the corresponding demo to run. | NPU Demo can run in X11 Desktop or framebuffer mode, just select the corresponding demo to run. | ||
- | - The demo with xfb is running in framebuffer mode. | + | - The demo with fb is running in framebuffer mode. |
- 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 == | |
- | <WRAP tip > | + | |
- | - '' | + | |
- | - '' | + | |
- | </ | + | |
- | + | ||
- | ==== Run ==== | + | |
Identify the command format of the picture. | Identify the command format of the picture. | ||
```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 152: | Line 145: | ||
{{: | {{: | ||
+ | === 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. | ||
</ | </ | ||
- | Command format for camera | + | == Run == |
+ | Command format for dynamic | ||
```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. | ||
</ | </ | ||
{{: | {{: |