Hi Received the error below. I believe that my camera my not be working. Originally, I was trying to get the demo working on a raspberry pi. Then, I plugged in the camera to my Mac. Would the OAK show up normally as a camera (e.g., in zoom or teams) because my Mac isn't seeing it.

Thanks for any advice.

(ai-kit-venv) pi@raspberrypi:/ai-kit/depthai-python/examples $ python3 ColorCamera/rgb_preview.py
Traceback (most recent call last):
File "ColorCamera/rgb_preview.py", line 24, in <module>
with dai.Device(pipeline) as device:
RuntimeError: Failed to find device (ma2480), error message: X_LINK_DEVICE_NOT_FOUND
(ai-kit-venv) pi@raspberrypi:/ai-kit/depthai-python/examples $ raspistill -o test.jpg
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly

  • erik replied to this.

    Hello carl0395 , sorry for the trouble. The OAK won't show up as webcam by default, you would need to enable UVC mode first (docs here). On the RPI, did you use USB3 cable? If yes, could you try using different USB3 cable? As that's usually the cause of such errors.
    Thanks, Erik

    Thanks Eric, I swapped USB3 cables and that did the trick. But, now I have a new issue. I run the depth_demo and it seems to hang, i.e. no popup window. This is on a headless Raspberry Pi 3 B. Tried rebooting and rebuilding the virtual environment, but no luck. Thoughts?

    • erik replied to this.

      Hello carl0395 , did that work initially? I didn't know headless OS can still run UI and X11 forward (via ssh) it to a host to show it. Could you try with not hostless OS? It worked for me when I have been testing it. Also could you try running depthai_demo in cv2 mode? So python depthai_demo.py -gt cv, this should display opencv frames instead of whole QT GUI.
      Thanks, Erik