This tutorial is for self-built Raspberry Pi 5 images. If you use the YAHBOOM version of the image directly, you can ignore the tutorial.
xxxxxxxxxxgit clone https://github.com/hailo-ai/hailo-rpi5-examples.git
Enter the source code directory:
xxxxxxxxxxcd hailo-rpi5-examples
To run these examples, you should make sure the environment is set up correctly. We use the hailo-tappas-core pkgconfig file to get the Hailo dependencies.
You can set everything up by getting the following script. This script will set the required environment variables and activate the Hailo virtual environment (if it does not exist, it will create it).
xxxxxxxxxxsource setup_env.sh

Make sure you are in a virtual environment and run the following command:
xxxxxxxxxxpip install -r requirements.txtsudo apt-get install python3 python3-pip ninja-buildpip3 install --user meson

xxxxxxxxxx./download_resources.sh
The following picture is because I have successfully downloaded it before.

To support using the retrained model, you need to compile the postprocessing locally. This postprocessing will be merged into Hailo TAPPAS in the next release. To compile the postprocessing, run the following script:
xxxxxxxxxx./compile_postprocess.sh
