Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Depending on which sample application you want to build, switch to the sample application directory and build it using the provided script . For example, in order to build the facedetect sample application:

...

build.sh.

Note

In releases of the repository prior to version 1.4, the paths for opencv4 in the build.sh script are incorrect. This will be fixed in Vitis AI 1.4.
For sample applications other than facedetect, be sure to update the build.sh script to include the necessary opencv4 include path

...

before building. This can be done quickly with the following command:

$

...

sed -i 's/-std=c++17/-std=c++17

...

-I\/usr\/include\/opencv4/g' build.sh

For example, in order to build the facedetect sample application:

Code Block
$ cd demo/Vitis-AI-Library/samples/facedetect
$ ./build.sh

Download a Model

The sample applications require a compatible machine learning model in order to run. Refer to the readme file in the application directory to determine which models are compatible with each sample application.

...