AI Hat + RPi5 environment construction

1. Instructions before use

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.

2. Start building

2.1 Download relevant source code

Enter the source directory:

2.2 Environment Configuration

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).

image-20240809173249121

2.3 Dependency Installation

Make sure you are in a virtual environment and run the following command:

image-20240809173345089

2.4 Resource Download

The picture below is because I have successfully downloaded it before.

image-20240809173426285

2.5 Postprocessing Compilation

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:

image-20240809173523668