Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim3:npu:opencv-dnn

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:opencv-dnn [2023/05/10 00:22]
hyphop [OpenCV DNN Usage]
products:sbc:vim3:npu:opencv-dnn [2023/09/10 04:46]
hyphop
Line 1: Line 1:
 +~~tag> VIM3 OpenCV~~
 +
 ====== OpenCV DNN Usage ====== ====== OpenCV DNN Usage ======
  
Line 25: Line 27:
 ===== Run Test ===== ===== Run Test =====
  
-==== Get Demo Source ====+==== Get demo source ====
  
-Get the example repository from Github.+Get the example repository from [[kg>OpenCV_NPU_Demo]].
  
 ```shell ```shell
Line 51: Line 53:
 ```shell ```shell
 cd ~/OpenCV_NPU_Demo/cpp_demo/build cd ~/OpenCV_NPU_Demo/cpp_demo/build
-./detect-camera 1 ../../model/yunet_int8.onnx # My cam is /dev/video1, so there is 1+./detect-camera 1 ../../model/yunet_int8.onnx
 ``` ```
-{{products:sbc:vim3:npu:opencv-c.jpeg}} 
  
 +<WRAP tip >
 +For example my cam device node is ''/dev/video1'', 2nd argument must be ''1''
 +</WRAP>
 +
 +{{products:sbc:vim3:npu:opencv-c.jpeg}}
  
 +===== Quantize Model =====
  
 +We suggest that quantize your model before running on VIM3. If your model performs bad after quantizing, without quantification is okay. Get [[https://github.com/opencv/opencv_zoo/tree/main/tools/quantize|quantized model]]
Last modified: 2023/12/25 03:59 by nick