Skip to content

Latest commit

 

History

History
154 lines (122 loc) · 4.07 KB

VVAS-Demo.md

File metadata and controls

154 lines (122 loc) · 4.07 KB

TOC

Overview

This tutorial tells to run the innodisk VVAS demo.

For runnning the innodisk VVAS demo, you will need three parts:

  • VVAS
    Vitis Video Analytics SDK.
  • Xilinx smartcam
    We will use the library of Xilinx smartcam to draw the result of AI inference.
  • Innodisk demo
    Contains example files for innodisk VVAS demo.

How to Install

VVAS

  • VVAS 2.0 is default built-in with the system, check out this page if user needs to build VVAS manually.

Xilinx smartcam & aibox-reid

  • This demo will use the library of Xilinx smartcam and aibox-reid to draw the result of AI inference and using the preprocessing IP.
  • Following process is using smartcam as example, remember to install aibox-reid as well.

Build & Install

  • Preparation Petalinux sdk including Vitis ai, opencv (over 4.4), jansson.
  1. Download source code.

    git clone https://github.com/Xilinx/smartcam.git
    cd smartcam
  2. Source petalinux sdk.

    unset LD_LIBRARY_PATH
    source <path-to-sdk>/environment-setup-aarch64-xilinx-linux
  3. Build the project.

    chmod 755 ./build.sh
    ./build.sh <path-to-sdk>

    vvas_smatrcam_build If shows error message as below:

    ERROR: missing libcorrespondence.a
    

    Follow this post of xilinx forum will fix the issue.

  4. Copy the .rpm file from x86 host to the rootfs of k26.

  5. Install the .rpm file on k26.

    rpm -ivh --force smartcam-1.0.1-1.aarch64.rpm

    vvas_smartcam_install

Innodisk demo

  • Preparation Install the VVAS and xilinx smartcam by following previous section.

Install by RPM

rpm -ivh --force vvas_demo-0.1-1.aarch64.rpm

FPGA FW (application)

How to run

Preparation

  • Plug the HDMI port of carrier board to a screen.
  • Disable the display in device-tree for video mixer on PL, avoiding video mixer initial fail that makes user still using DP on PS.
    display@fd4a0000 {
    status = "disabled";
    };
    
    &zynqmp_dp_snd_codec0 {
      status = "disabled";
    };
    
    &zynqmp_dp_snd_pcm0 {
      status = "disabled";
    };
    
    &zynqmp_dp_snd_pcm1 {
      status = "disabled";
    };
    
    &zynqmp_dp_snd_card {
      status = "disabled";
    };
    

run

  1. Update FPGA application.

    xmutil unloadapp
    xmutil loadapp kv260-aibox-reid
  2. Excute the script from Innodisk demo.

    cd ~/demo
    # basic VVAS demo
    sudo ./run_demo_vvas.sh
    # VVAS demo including uvc camera with face detection
    sudo ./run_demo_vvas_cam.sh

    The console will hang at New clock: ... as below: vvas_run

  3. The screen should shows result as below: vvas_demo

DEMO

Computex taipei, 2023

computex

Reference

Multichannel ML

GitHub - Xilinx/VVAS: Vitis Video Analytics SDK

GitHub - Xilinx/smartcam

GitHub - Xilinx/aibox-reid