Step 3 - Installing the Vitis-AI runtime packages
ทำการเตรียมความพร้อมที่จะใช้งาน Vitis-AI บนบอร์ด FPGA
Last updated
Was this helpful?
Was this helpful?
$ cp /media/sd-mmcblk0p1/dpu.xclbin /usr/lib/.$ cd ~/install/vitis-ai-runtime-1.4.0
$ source ./setup.sh$ xdputil query$ cd ~/dpu_sw_optimize/zynqmp
$ source ./zynqmp_dpu_optimize.sh$ export DISPLAY=:0.0$ xrandr --output DP-1 --mode 800x600$ dmesg -D$ cd ~/Vitis-AI/demo/Vitis-AI-Library/samples/facedetect
$ ./test_jpeg_facedetect densebox_640_360 sample_facedetect.jpg
# ถ้ามีกล้องสามารถทดสอบกล้องได้ด้วยคำสั่ง
# $ ./test_video_facedetect densebox_320_320 0# Secure copy file Point Pillar detection
$ scp -r /mnt/c/User/[Name of your user]/Downloads/pp_3d_detect.tar.gz root@[IP board]:~/.
# Secure shell to the Ultra96v2 board
$ ssh root@[IP board]# cd to the home and extract file
$ cd ~
# Exatrac tar file
$ tar -zxvf pp_3d_detect.tar.gz
# Go to Extracted directory
$ cd ~/ppdemo1216# Open text editer
$ sudo vim demo.cpp//#include <iostream>
#include <fstream># กดปุ่ม Esc แล้วพิมคำสั่งข้างล่าง
:wq! $ vim build.sh
#g++ -std=c++11 -I. -o demo demo.cpp -lopencv_core -lopencv_video -lopencv_videoio -lopencv_imgproc -lopencv_imgcodecs -lopencv_highgui -lvitis_ai_library-pointpillars -lvart-util -pthread -lglog
result=0 && pkg-config --list-all | grep opencv4 && result=1
if [ $result -eq 1 ]; then
OPENCV_FLAGS=$(pkg-config --cflags --libs-only-L opencv4)
else
OPENCV_FLAGS=$(pkg-config --cflags --libs-only-L opencv)
fi
g++ -std=c++17 -I. ${OPENCV_FLAGS} -o demo demo.cpp -lopencv_core -lopencv_video -lopencv_videoio -lopencv_imgproc -lopencv_imgcodecs -lopencv_highgui -lvitis_ai_library-pointpillars -lvart-util -pthread -lglog# กดปุ่ม Esc แล้วพิมคำสั่งข้างล่าง
:wq! # Build the application
$ source ./build.sh./demo ./ppd/vlist.txt ./ppd/ 1./demo ./ppd/vlist.txt ./ppd/ 2./demo ./ppd/vlist.txt ./ppd/ 3