Skip to content

Instantly share code, notes, and snippets.

@edwios
Last active November 1, 2017 02:51
Show Gist options
  • Save edwios/19fce0d088a1933b7a61dd1428590422 to your computer and use it in GitHub Desktop.
Save edwios/19fce0d088a1933b7a61dd1428590422 to your computer and use it in GitHub Desktop.
Notes on installing Movidius NCS onto Raspberry Pi 3
# Instructions on how to install Movidius NCS on the Raspberry Pi 3
# To do on Host computer
## Install Toolkit and API on Host computer
Follow the instructions here https://developer.movidius.com/start
## Move files to RPi3
Copy the directory ncapi/ from Host computer to RPi3
# To do on RPi3
## Create a python3 virtual environment inside ncapi
cd ~
python3 -m venv ncapi
## Install debian packages from NCS
cd ~/ncapi/redist/pi_jessie
dpkg -i ./*.deb
## Link python3.4 dist-packages to 3.5. Without this, import mvnc will report error.
ln -s /usr/local/lib/python3.4/dist-packages/ ~/ncapi/lib/python3.5
## Copy cv2.so into python dist-packages
cp opencv3.3.0/build/cv2.so ~/ncapi/lib/python3.5/dist-packages/
## Install gir
sudo apt install gir1.2-gtk-3.0
## Perform an upgrade to sync the virtual environment
python -m venv --upgrade
## Edit the file pyvenv.cfg inside the virtual environment, change include-system-site-packages to true
nano ~/ncapi/pyvenv.cfg
## Install gstreamer and glimagesink
apt install gstreamer1.0-tools gstreamer1.0-plugins-bad
## Make the examples
cd ncapi/c_examples
make clean
make
## Check installation if successful
./ncs-check -1
##Results shall be like:
OpenDevice 1.4 succeeded
Press q <ENTER> to quit without closing, otherwise just <ENTER>
Device closed, rc=0
## Run examples
cd ncapi/py_examples/stream_infer
python ncs_camera.py --opengl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment