OAK-D Camera Setup — Raspberry Pi 5
Last updated: February 2026
/opt/oak-shared/venv/ (shared, read-only for students)
/opt/depthai-cache/ (777 permissions, all users can write)
These versions are confirmed working together for OAK-D camera detection with GUI display on Raspberry Pi 5.
| Package | Version | Role |
|---|---|---|
depthai |
3.3.0 | OAK-D camera SDK (v3 API) |
depthai-nodes |
0.3.7 | Neural network parsing nodes |
opencv-contrib-python |
4.10.0.84 | Computer vision + GUI support |
numpy |
1.26.4 | Array math (must be < 2.0) |
scipy |
1.17.0 | Scientific computing |
matplotlib |
3.10.8 | Plotting & visualization |
Works
Doesn't Work
1. System Dependencies
2. Create Virtual Environment
3. Install Packages (order matters!)
module 'cv2' has no attribute 'COLORMAP_JET'opencv-contrib-python==4.10.0.84 (not 4.5.5)
Rebuild the library with GTK+ 2.x supportsudo apt-get install -y libgtk-3-dev libgtk2.0-dev pkg-config
module 'depthai' has no attribute 'Color'depthai==3.3.0 (not 2.30.0)
Could not find the Qt platform plugin "wayland"1. Verify OpenCV GUI Support
source /opt/oak-shared/venv/bin/activate
python3 -c "import cv2; cv2.namedWindow('test'); cv2.destroyWindow('test'); print('GUI works')"
Expected: GUI works (no errors)
2. Verify DepthAI Camera Connection
source /opt/oak-shared/venv/bin/activate
python3 -c "import depthai as dai; print(dai.Device.getAllAvailableDevices())"
Expected: Device info with mxid (camera serial number)
3. Test Detection with Display
source /opt/oak-shared/venv/bin/activate
cd ~/oak-projects
python3 person_detector_with_display.py --display
Expected: Live camera window with green bounding boxes around detected people. Press q to quit.
Raspberry Pi 5
| Model | Raspberry Pi 5 (16 GB RAM) |
| OS | Raspberry Pi OS (Bookworm) 64-bit |
| USB | Use USB 3.0 (blue) ports for OAK-D |
| Power | 27 W official adapter or powered USB hub |
OAK-D Camera
| Connection | USB 3.0 (USB-C on camera side) |
| Platform | RVC2 (Luxonis Myriad X VPU) |
| Power | High draw during AI inference — use quality cable |
Display Options