By Kevin McAleer, 3 Minutes
Page last updated November 24, 2026

Time to give the robot eyes. The camera apps from Raspberry Pi can hand each frame to the HAT, and a JSON post-processing file tells them which model to use and how to draw the results.
The docs give this pattern: run rpicam-hello with -t 0 (run until stopped) and a post-process file.
rpicam-hello -t 0 --post-process-file /usr/share/rpi-camera-assets/hailo_yolov8_inference.json
You should see the camera preview with boxes drawn round the things the model recognises. Point it at a person, a cup or a chair. Press Ctrl+C in the terminal to stop.
The docs list these object detection files, all in /usr/share/rpi-camera-assets/:
| Model | Post-process file | Notes from the docs |
|---|---|---|
| YOLOv6 | hailo_yolov6_inference.json |
Object detection |
| YOLOv8 | hailo_yolov8_inference.json |
Object detection |
| YOLOX | hailo_yolox_inference.json |
Lightweight, fast |
| YOLOv5 | hailo_yolov5_inference.json |
People and face detection |
Real robot example: for a robot that follows people, hailo_yolov5_inference.json is the one the docs point to for people and faces. For a robot that has to notice many kinds of object, start with the YOLOv8 file. If the robotβs frame rate feels sluggish, try YOLOX, which the docs call lightweight and fast.
The docs mention two flags worth knowing:
-n turns off the viewfinder window, which is what you want on a robot with no screen-v 2 shows text output onlyrpicam-hello -t 0 -n -v 2 --post-process-file /usr/share/rpi-camera-assets/hailo_yolov8_inference.json
The docs also note that other rpicam-apps such as rpicam-vid and rpicam-still may need option changes.
Everything in the camera pipeline, the capture, the model and the drawing, is already wired up. You havenβt written any AI code, and you have a working detector. Later lessons build on this rather than replacing it.
Problem: No preview window appears.
Solution: Check rpicam-hello alone works. If you are connected over SSH, use -n and -v 2, because there is no display to draw on.
Why: The preview needs a screen. The text-only mode does not.
Problem: The file path is not found.
Solution: Check you installed rpicam-apps and that the Pi OS is up to date, then list the folder with ls /usr/share/rpi-camera-assets/.
Why: The JSON files ship with the camera software packages.
Quick quiz 1 of 2
What does the --post-process-file option do?
/usr/share/rpi-camera-assets/ describe the model and the output.Quick quiz 2 of 2
Which flag turns off the viewfinder, handy for a robot with no screen?
-n turns off the viewfinder. -v 2 shows text output only.
Comments