OskarSonc
Hello, I didn't follow the guide for Raspi. Should I download OAKCM4V1164bt.img.xz ?
I', using PoE switch which was shipped with the camera together to me.
Also, I used DepthAi 2 not 3.
I tried to follow this: luxonis/depthai-pythonblob/main/utilities/README.md. but has a lot of issue on the code always give me error .
For example: (venv) paal@raspberrypi:~/depthai-python/utilities $ pyinstaller -w cam_test.py --hidden-import PyQt5.sip
126 INFO: PyInstaller: 6.16.0, contrib hooks: 2025.9
126 INFO: Python: 3.11.9
127 INFO: Platform: Linux-6.12.47+rpt-rpi-2712-aarch64-with-glibc2.41
127 INFO: Python environment: /home/paal/depthai-python/utilities/venv
128 INFO: wrote /home/paal/depthai-python/utilities/cam_test.spec
130 INFO: Module search paths (PYTHONPATH):
['/usr/local/lib/python311.zip',
'/usr/local/lib/python3.11',
'/usr/local/lib/python3.11/lib-dynload',
'/home/paal/depthai-python/utilities/venv/lib/python3.11/site-packages',
'/home/paal/depthai-python/utilities']
497 INFO: checking Analysis
497 INFO: Building Analysis because Analysis-00.toc is non existent
497 INFO: Looking for Python shared library...
ERROR: Python was built without a shared library, which is required by PyInstaller. If you built Python from source, rebuild it with the `--enable-shared` option.
(venv) paal@raspberrypi:~/depthai-python/utilities $ python3 cam_test.py
DepthAI version: 3.1.0
DepthAI path: /home/paal/depthai-python/utilities/venv/lib/python3.11/site-packages/depthai.cpython-311-aarch64-linux-gnu.so
Traceback (most recent call last):
File "/home/paal/depthai-python/utilities/cam_test.py", line 253, in <module>
success, device = dai.Device.getDeviceByMxId(args.device)
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'depthai.Device' has no attribute 'getDeviceByMxId'. Did you mean: 'getDeviceById'?
I'm using the code from https://discuss.luxonis.com/blog/5021-box-measurement-with-ai-and-tof; It works fine which can capture RGB, depth, IR image. Also, I can calculate the distance, and I think it's great. However, it only works on my windows personal PC but raspi5. I have no idea which method should I follow…….. should I keep trying on pi5? or i have to change to depthAI V3?
Thanks a lot for helping.