• DepthAI-v2
  • OAK-D on Raspberry Pi Zero: Version not Satisfied open3d==0.10.0.0

5M1Sec Thanks. That looks very similar to what I used. Very strange. I'll try replicating this on my Pi Zero this week.

Quick question though: Can you run other python3 things? I'm wondering if there is something wrong with the python install perhaps, or perhaps the SD-card.

Hi 5M1Sec ,

Sorry about the delay. I think we know what this is now. Can you try running the following?

python3 -c "import cv2; import numpy as np; blank_image = np.zeros((500,500,3), np.uint8); cv2.imshow('s', blank_image); cv2.waitKey(0)"

I think the OpenCV install either didn't go through or was corrupted.

If this does not show a window, please run this command:

sudo curl -fL http://docs.luxonis.com/_static/install_dependencies.sh | bash

Thanks,
Brandon

    Brandon
    I ran the first command via ssh both with and without connecting a HDMI monitor.
    The first command throws an error:
    ">>> import cv2

    import numpy as np
    blank_image = np.zeros((500,500,3), np.uint8)
    cv2.imshow('s', blank_image); cv2.waitKey(0)
    Unable to init server: Could not connect: Connection refused

    (s:960): Gtk-WARNING **: 21:22:34.771: cannot open display:"

    Importing CV2 doesn't throw an error. After running the second command, I still receive the same error.

    I'm wondering if there is something wrong with the python install perhaps, or perhaps the SD-card.

    Invoking Python3 seems no problem.

    Ah! So over SSH a different version of OpenCV is required I think. Or you would need to ssh in with X-Forward enabled.

    Otherwise OpenCV will not know how to open the display.

    So opencv-headless I think is what enables straight-up SSH use, but I'm not 100% sure actually. You could also do X-Forwarding instead (with your current OpenCV install), but I also don't immediately know.

    The sure-fire way to test is to hook a mouse/keyboard and see if that example OpenCV is working directly on the display, not over SSH, but just from mouse/keyboard control to start.

    Thoughts?

    Thanks,
    Brandon

      Brandon Sorry for the late reply.
      The Pi zero only has two micro-usb ports. I used one for power source and anther for OAK-D. So I did a VNC control over the HDMI monitor. I still recive the same error. Since I can not diagnose where is the problem. I think a script printing the detection objects in OAK-D to the terminal would be great for eliminating the factor.

        Hi 5M1Sec ,

        I have been able to reproduce this on the Pi Zero. It is specific to the Pi Zero. We have since been trying to figure out what exactly is going wrong on the Pi Zero, specifically. We have several of the team now having ordered Pi Zero and waiting for them to arrive.

        Sorry about the delay - more details here: https://github.com/luxonis/depthai/issues/324

        Thanks,
        Brandon

        4 days later

        5M1Sec
        After git clone, you have to do:
        git checkout origin/pi_zero_wheel

        It's not yet merged into main. Awaiting confirmation.

        Open3d is optional, and not installed on raspberry pis.

          Thank you for circling back!