There are some ready to use NPU demo binaries for VIM3/VIM3L
.
This documentation is about how to run these demos on VIM3/VIM3L
.
Prepare
You need to run Ubuntu image V20190830 on board, and update the system.
Note: If the image is V20191231 or newer, you don’t need to do this anymore.
khadas@Khadas:~$ sudo apt-get update
khadas@Khadas:~$ sudo apt-get upgrade
khadas@Khadas:~$ sudo apt-get install -y gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-alsa gstreamer1.0-plugins-good libconfig++9v5 libconfig9
khadas@Khadas:~$ sudo apt-get install -y aml-npu
khadas@Khadas:~$ sudo apt-get install -y gstreamer-aml libplayer-aml opencv3
khadas@Khadas:~$ sync
khadas@Khadas:~$ sudo reboot
Note: You can choose server image to run these demos. If you choose desktop image, you need to switch to the framebuffer console by Ctrl+Alt+F1
to run these demos.
Download NPU demo binaries
khadas@Khadas:~$ sudo -i
root@Khadas:~# git clone https://gitlab.com/khadas/aml_npu_demo_binaries --depth=1
Directory description:
-
detect_demo
- Yoloface/YoloV2/YoloV3 demo with video -
detect_demo_picture
- Yoloface/YoloV2/YoloV3 demo with picture -
inceptionv3
- Inceptionv3
Run Yolo demo with USB camera
Install the libraries:
root@Khadas:~# cd aml_npu_demo_binaries/detect_demo
root@Khadas:~/aml_npu_demo_binaries/detect_demo# ./INSTALL
Run UVC demo:
root@Khadas:~/aml_npu_demo_binaries/detect_demo# ./detect_demo_uvc /dev/videoX 1 > /dev/null
Note: Replace /dev/videoX to the correct node.
You can run ./detect_demo_uvc
to get help information and read README
to get more information.
Tested USB camera:
- Logitech C920 PRO
- Logitech C525
Run Yolo demo with MIPI camera
root@Khadas:~/aml_npu_demo_binaries/detect_demo# ./detect_demo_mipi /dev/videoX 1 > /dev/null
Note: MIPI camera for VIM3 has not launched yet.
Source Code
The source code of the demos:
In The End
The performance of the video display still need to improve.