Skip to content

Instantly share code, notes, and snippets.

@jonasrosland
Last active January 23, 2018 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonasrosland/5af540d90be6fda63025c79a79675391 to your computer and use it in GitHub Desktop.
Save jonasrosland/5af540d90be6fda63025c79a79675391 to your computer and use it in GitHub Desktop.
Getting started with Movidius on RPi3

Getting started with Movidius on RPi3

Get Raspbian Stretch (Movidius doesn't support Jessie): https://www.raspberrypi.org/downloads/raspbian/

Use "Etcher" to put Raspbian on your SD card: https://etcher.io

Create an empty file called ssh in /boot Create a wpa_supplicant.conf file in /boot containing:

ctrl_interface=/var/run/wpa_supplicant
network={
        ssid="your-network"
        psk="your-pass"
        key_mgmt=WPA-PSK
}

Put the SD card in your RPi

SSH into it using pi/raspberry

TFT screen install

Run:

sudo apt install git
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
sudo ./LCD35-show

The RPi will now reboot, and your TFT screen will work.

Movidius install

Run:

git clone https://github.com/movidius/ncsdk
cd ncsdk
sudo make install

This might fail due to missing packages. If so, run sudo apt --fix-broken install and then run sudo make install again. (This may take a while. Go get some runts.)

Finally, install gstreamer1.0 and the "bad" plugins:

sudo apt install gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-tools python-gst-1.0 gir1.2-gtk-3.0

Now it's time to get the stream_infer app. Instead of downloading a 361MB Git repo (crazy!) let's just pull the files we need:

git init ncappzoo
cd ncappzoo
git remote add origin https://github.com/movidius/ncappzoo
git config core.sparsecheckout true
echo "apps/stream_infer" >> .git/info/sparse-checkout
git pull --depth=2 origin master 

Install PIXEL, and set up the TFT screen for HIGH REZ GRAFIX

Install Pixel and set to boot automatically to graphical interface and auto-login pi

sudo apt install raspberrypi-ui-mods
sudo raspi-config

Set up the TFT screen again

cd ~/LCD-how
sudo ./LDC35-show

After reboot, it should show you the nice graphical interface

Edit line 324 in stream_infer to this:

        videoscale ! video/x-raw, width=%s, height=%s , framerate = 5/1 ! \

Now run it!

python3 stream_infer.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment