We have an OAK-1 camera and first attempting to use it. After successfully installing depthai_sdk, we ran the example provided by luxonis here and it crashed when using the keyboard:
Closing OAK camera
Traceback (most recent call last):
 File "/home/alan/work/depthai/depthai_sdk/examples/CameraComponent/camera_control.py", line 11, in <module>
   color.control.exposure_time_down()
AttributeError: 'CameraComponent' object has no attribute 'control'

GPT powered Luxonis chat didn't help at all… Is the example outdated?

  • I don't know why I had depthai-sdk version 1.9.4… I had to upgrade it
    pip install depthai-sdk --upgrade
    And now have version 1.13.1, and the example works!

I don't know why I had depthai-sdk version 1.9.4… I had to upgrade it
pip install depthai-sdk --upgrade
And now have version 1.13.1, and the example works!