Pipeline first steps
To get DepthAI up and running, you have to create a pipeline, populate it with nodes, configure the nodes and link them together. After that, the pipeline can be loaded onto the Device and be started.
pip install numpy opencv-python depthai blobconverter imutils
If you have setup OpenCV on the RaspberryPI then you should only need to install the following into your cv2 environment:
Use this script to install OpenCV along with image libraries.
pip install depthai blobconverter
If you get an error like:
RuntimeError: Failed to find device (ma2480), error message: X_LINK_DEVICE_NOT_FOUND
See this troubleshooting guide
-
Unplug OAK Device
-
Run the following:
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules
sudo udevadm control --reload-rules && sudo udevadm trigger
- Plug the OAK device back into USB3 slot
If your system still does not work, run the folllowing:
sudo curl -fL https://docs.luxonis.com/install_dependencies.sh | bash
From Luxonis RaspberryPI Setup
Inside of the simple-camera-feed
directory, there is a script called, videostream.py
.
This was the basis for the Gitrepo below, and the Medium Post
[Source Code]https://github.com/youngsoul/depthai-video-stream