NameError: name 'Picamera2' is not defined

I’ve just purchased a Hailo 8 for Pi, AI Hat+ . I’ve followed the instructions,

though I have installed this version

sudo apt install hailo-all=4.19.0

Option B: If Option A is not available, use this alternative command:

sudo apt install hailo-tappas-core=3.30.0-1 hailo-dkms=4.19.0-1 hailort=4.19.0-3

Wasnt sure if the issue was going to apply to me.

I’ve tested my device is present using

hailortcli fw-control identify

It works fine.

I’ve followed the setup guide

hailo-rpi5-examples/doc/basic-pipelines.md at 0c70ac577677d997c0c0b38290670466ed3fe9a2 · hailo-ai/hailo-rpi5-examples

However, when i run

python detection.py --input rpi


NameError: name 'Picamera2' is not defined


what am i doing wrong? If you need more info , please let me know

Hey @Dan_C,

Welcome to the Hailo Community!

I’m pleased to inform you that we’ve released Hailo Package version 4.20 with all previous bugs resolved. You can now update to the latest version, and everything should work smoothly.

Thank you for your patience while we addressed these issues.

Best regards,
Omria

Yep, you’re right

Your exmaples all work now. Though I’m struggling to output to a webpage using gstreamer. I’ll scratch my head a bit more

1 Like