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
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.
 </WRAP> </WRAP>
 +*/
  
 Get the demo source: [[gh>khadas/aml_npu_demo_binaries]] Get the demo source: [[gh>khadas/aml_npu_demo_binaries]]
Line 25: Line 27:
 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 70: Line 72:
 <WRAP Info>   <WRAP Info>  
      
-By querying ''imagenet_slim_labels.txt'', the result is a goldfish, which is also correctly identified.You can use the method above to identify other images.+By querying ''imagenet_slim_labels.txt'', the result is a goldfish, which is also correctly identified. You can use the method above to identify other images.
  
 </WRAP> </WRAP>
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 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 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}/aml_npu_demo_binaries/detect_demo_picture+$ cd aml_npu_demo_binaries/detect_demo_picture
 $ ls  $ ls 
 1080p.bmp  detect_demo_x11  detect_demo_fb  INSTALL  lib  nn_data  README.md  UNINSTALL 1080p.bmp  detect_demo_x11  detect_demo_fb  INSTALL  lib  nn_data  README.md  UNINSTALL
 ``` ```
-==== Run ====+== Run ==
  
-Identify the command format of the picture.+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 146: Line 147:
 {{: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:03 by sravan