Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim3:npu:npu-prebuilt-demo-usage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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:23]
sravan
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}/aml_npu_demo_binaries/detect_demo_picture+$ cd aml_npu_demo_binaries/detect_demo_picture
 $ ls  $ ls 
-1080p.bmp  detect_demo_x11  detect_demo_xfb  INSTALL  lib  nn_data  README.md  UNINSTALL+1080p.bmp  detect_demo_x11  detect_demo_fb  INSTALL  lib  nn_data  README.md  UNINSTALL
 ``` ```
 +== Run ==
  
-<WRAP tip > +Command format of the picture.
-      - ''detect_demo_fb'' It is a demo that uses opencv4 recognition pictures running under ''framebuffer''+
-      - ''detect_demo_x11'' It is a demo that uses opencv4 recognition pictures running under ''X11''+
-</WRAP> +
- +
-==== Run ==== +
- +
-Identify the command format of the picture.+
  
 ```shell ```shell
-$ cd {workspace}/aml_npu_demo_binaries/detect_demo_picture +$ cd aml_npu_demo_binaries/detect_demo_picture 
-$ ./detect_demo_xx -m <type> -p <picture_path>+$ ./detect_demo_xx -m <type parameter> -p <picture_path>
 ``` ```
  
-Here is an example of using Opencv4 to call the yolov3 model to recognize pictures under ''x11''.+Here is an example of using OpenCV4 to call the yolov3 model to recognize pictures under ''x11''.
  
 ```shell ```shell
-$ cd {workspace}/aml_npu_demo_binaries/detect_demo_picture +$ cd aml_npu_demo_binaries/detect_demo_picture 
-$ ./detect_demo_fb -m 2 -p 1080p.bmp+$ ./detect_demo_x11 -m 2 -p 1080p.bmp
 ``` ```
  
Line 152: Line 145:
 {{:products:sbc:vim3:npu:detect-demo-picture-x11-cv4.png?1000|detect-picture}} {{:products:sbc:vim3:npu:detect-demo-picture-x11-cv4.png?1000|detect-picture}}
  
 +=== detect_demo ===
  
-<WRAP Info >+<WRAP tip >
 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.
 </WRAP> </WRAP>
  
 +== Run ==
 Command format for camera dynamic recognition. Command format for camera dynamic recognition.
  
 ```shell ```shell
-$ cd {workspace}/aml_npu_demo_binaries/detect_demo +$ cd aml_npu_demo_binaries/detect_demo 
-$ ./detect_xx_xx -d <video node> -m <type>+$ ./detect_xx_xx -d <video node> -m <type parameter>
 ``` ```
    
-Here is an example of using opencv4 to call yolov3 in the ''x11'' environment. +Here is an example of using OpenCV4 to call ''yolov3'' in the ''x11'' environment using a USB camera.
 ```shell ```shell
-$ cd {workspace}/aml_npu_demo_binaries/detect_demo+$ cd aml_npu_demo_binaries/detect_demo
 $ ./detect_demo_x11_usb -d /dev/video1 -m 2 $ ./detect_demo_x11_usb -d /dev/video1 -m 2
 ``` ```
  
-<WRAP tip >+<WRAP info >
 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.
 </WRAP> </WRAP>
  
 {{:products:sbc:vim3:npu:start:detect-demo-picture-x11-cv4.webp?1000 |detect}} {{:products:sbc:vim3:npu:start:detect-demo-picture-x11-cv4.webp?1000 |detect}}
Last modified: 2023/09/11 09:58 by hyphop