Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

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

This is an old revision of the document!


NPU Prebuilt Demo Usage

  1. Please follow this docs to upgrade the system to latest version before run any NPU demos.
  2. Just support Opencv4

install OpenCV4

Install-OpenCV4.sh
sudo apt install libopencv-dev python3-opencv

Get NPU Demo

 NPU Demo is not installed on the board by default. You need to download it from github first

Clone to the board through the git command.

get-npu-demo-from-demo.sh
 cd {workspace}
 git clone --recursive https://github.com/khadas/aml_npu_demo_binaries

Or download the compressed package directly, and then unzip it to the board.

There are three directories in NPU Demo:

detect_demo

detect_demo: A collection of yolo series models for camera dynamic recognition.

detect_demo

detect_demo_picture: A collection of yolo series models that identify pictures.

Serial Mode

  1. Connect VIM4 to PC with a USB-C cable.
  2. Refer to Setup Serial Tool to setup your Serial Tool for VIM4.
  3. Once again, make sure you’ve done the correct connections and setup.
  4. Hit SPACE on your keyboard at the moment of bootup to stop autoboot. This step will let VIM4 boot into U-Boot command line.
  5. Type run update in the terminal of U-Boot then the board will enter Upgrade Mode.

Bootable TF Card

  1. Insert a Bootable TF card into the slot.
  2. Refer to this guide to setup your serial tool for VIM4.
  3. Connect VIM4 to PC with a USB-C cable.
  4. Hit SPACE key at the moment of bootup to stop autoboot. This step will let VIM4 boot into U-Boot.
  5. Type run update in the U-Boot terminal.
Last modified: 2022/09/15 23:38 by ivan