This tutorial is suitable for building a Raspberry Pi 5 image by yourself. If you directly use the YAHBOOM version of the image, you can ignore the tutorial.
git clone https://github.com/hailo-ai/hailo-rpi5-examples.git
Enter the source directory:
xxxxxxxxxx
cd hailo-rpi5-examples
To run these examples, you should make sure your environment is setup correctly. We use the hailo-tappas-core pkgconfig file to get the Hailo dependencies.
You can set everything up by sourcing the following script. This script will set the required environment variables and activate the Hailo virtual environment (it will create it if it doesn't exist).
xxxxxxxxxx
source setup_env.sh
Make sure you are in a virtual environment and run the following command:
xxxxxxxxxx
pip install -r requirements.txt
sudo apt-get install python3 python3-pip ninja-build
pip3 install --user meson
xxxxxxxxxx
./download_resources.sh
The picture below is because I have successfully downloaded it before.
To support using retrained models, you need to compile postprocessing locally. This postprocessing will be merged into Hailo TAPPAS in the next release. To compile postprocessing, run the following script:
xxxxxxxxxx
./compile_postprocess.sh