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 08:56]
sravan
products:sbc:vim3:npu:npu-prebuilt-demo-usage [2023/09/11 09:48]
hyphop
Line 25: Line 25:
 The NPU demo contains three examples: The NPU demo contains three examples:
  
-  - ''detect_demo''A collection of yolo series models for camera dynamic recognition. +  - ''detect_demo'' A collection of YOLO series models for camera dynamic recognition. 
-  - ''detect_demo_picture''A collection of yolo series models that identify pictures. +  - ''detect_demo_picture'' A collection of YOLO series models that identify pictures. 
-  - ''inceptionv3''Identify the inception model of the picture.+  - ''inceptionv3'' -  Identify the inception model of the picture.
  
 ===== Inception Model ===== ===== Inception Model =====
Line 74: Line 74:
 </WRAP> </WRAP>
  
-===== Yolo Series Model =====+===== YOLO Series Model =====
  
 ==== Install and uninstall libraries ==== ==== Install and uninstall libraries ====
  
-The yolo series models need to install the library into the system. Both the ''detect_demo'' and ''detect_demo_picture'' examples require this procedure.+The YOLO series models need to install the library into the system. Both the ''detect_demo'' and ''detect_demo_picture'' examples require this procedure.
  
 You can follow the steps to either install or uninstall the libraries. You can follow the steps to either install or uninstall the libraries.
Line 99: Line 99:
  
 <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 yolo series model.+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 YOLO series model.
 </WRAP> </WRAP>
  
Line 110: Line 110:
 ``` ```
    
-==== Operating Environment Description ====+==== Operating Environment for NPU demo ====
      
-NPU Demo can run in X11 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.
  
-=== X11 / Framebuffer ===+    - The demo with fb is running in framebuffer mode. 
 +    - The demo with x11 is running in X11 mode.
  
-  - The demo with fb is running in framebuffer mode. +==== Demo examples ==== 
-  - The demo with x11 is running in X11 mode. +=== detect_demo_picture ===
- +
-==== Illustrative Example ==== +
- +
-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 154: 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