Welcome to the Hailo Community. Let me clarify the difference between the two examples you’re referring to:
rpicam-hello: This is a simple “hello world” equivalent for cameras. It primarily focuses on starting a camera preview stream and displaying it on the screen. It’s a basic demonstration of camera functionality.
Basic Pipeline repository: This contains more complex examples of pipelines for Hailo’s RPi5 platform. These examples showcase advanced computer vision tasks such as:
Object detection
Human pose estimation
Instance segmentation
The repository is designed to provide you with a foundation for building your own projects using these sophisticated vision capabilities.
Given the complexity of the tasks, the detection.py script will indeed place a heavier load on the CPU compared to the simple camera preview. This is due to the additional processing required for detection and analysis tasks.
Let me know if you need any further explanation or have questions about implementing these examples in your projects.
Let’s look at it this way:
The rpicam app is a C++ application optimized for the RPi5, resulting in lower CPU load. It efficiently uses the Hailo8L and Hailo library. In contrast, the detection.py script is a GStreamer and Python-based example, which naturally has a heavier CPU load and runs slightly slower due to Python’s nature. However, this Python script offers more features and is easier to adapt for real-world applications.