• DepthAIHardware
  • Having problems accessing camera sensor data on the Oak D Wide

Hi,

I recently purchased the Oak D Wide and followed the instructions here: https://docs.luxonis.com/en/latest/pages/tutorials/first_steps/

I tried launching depthai_demo.py from the depthai repo and got the following terminal output

[framework:~/depthai][main] > python3 depthai_demo.py 
Using depthai module from:  /home/chutsu/.local/lib/python3.10/site-packages/depthai.cpython-310-x86_64-linux-gnu.so
Depthai version installed:  2.21.2.0
QSocketNotifier: Can only be used with threads started with QThread
Setting up demo...
Available devices:
[0] 19443010C1A3722700 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.SUPER
Disabling depth...
Disabling depth preview...
Disabling depthRaw preview...
Disabling left preview...
Disabling rectifiedLeft preview...
Disabling right preview...
Disabling rectifiedRight preview...
[19443010C1A3722700] [1.4] [1.550] [ColorCamera(0)] [error] Camera not detected on socket: 0
Stopping demo...
=== TOTAL FPS ===

I have tried to run different code examples to access the camera data to no avail.

Running

[framework:~/depthai][main] > python3
Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import depthai as dai
>>> with dai.Device() as device:
...     print(device.getMxId())
... 

Gives me the Mx ID of 19443010C1A3722700

    chutsu changed the title to Having problems accessing camera sensor data on the Oak D Wide .

    Hi chutsu
    Could you try running the cam_test.py script from depthai-python/utilities. You should get three outputs as well as host side and device side FPS for all three cameras. Please paste the terminal output.

    Thanks,
    Jaka

    I got the following screenshot when I use depthai-python/utilities/cam_test.py and hitting the "connect" button:

    I had to uncomment L162 and L164 in cam_test.py because those two sensor resolutions seems to be deprecated:

    This seems to resolve the issue a little bit, but this time when I press "connect" I get the same issues where depthai library seems to have problems accessing the sensor data, see terminal output on the left:

    where it fails to detect the cameras on socket 0 to 3.

      Hi chutsu
      Please update the depthai-python repo using git pull --recurse-submodules (main branch) and make sure you are using the latest depthai version pip install depthai -U. That should fix the resolution issues.
      Could you retry the cam test then? Maybe if you could run it with DEPTHAI_LEVEL=DEBUG python3 cam_test.py

      Thanks,
      Jaka

      Just coming back to report that updating the depthai to the latest via pip install depthai -U worked. Thanks for the help

      The version I had installed previously was 2.21.2.0 upgraded to 2.23.0.0 (11th Nov 2023).