Inside AI
← Build & Hack
Manufacturer demo / Edge AI

Detect a bottle on your workbench

Point the camera at a bottle. The supplied detector can draw a box around it and show its predicted class.

Device profile · Raspberry Pi AI HAT+ ↗

What you need

Use a Raspberry Pi 5, the original 13 or 26 TOPS AI HAT+, a supported camera and a display. Follow the linked Raspberry Pi AI software guide for the 64-bit OS and hailo-all setup. Check the camera preview before starting.

Run the supplied demo

Place a bottle against a plain background. Start the 30-second preview, move the bottle to one side, and see whether the box follows it.

rpicam-hello -t 30000 --post-process-file /usr/share/rpi-camera-assets/hailo_yolov8_inference.json

Build on it · proposed extension

Build a bottle counter. Track each detection across frames and increment once when its center crosses a marked line. Pass ten bottles through and compare your total with ten.

Primary sources

Raspberry Pi · AI software guide