Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6403 Discussions

Procedure for installing NCSDK v2.05.00.02 to RaspberryPi3(Raspbian Stretch)

idata
Employee
996 Views

Share procedures that NCSDK 2.05.00.02 was successfully installed to RaspberryPi3.

 

I am glad if everyone's help.

 

■ Prerequisites for this procedure

 

  1. Clean install of Raspbian.

 

  2. MicroSDCard 16GB

 

■ Notes

 

 Intel's informal procedures.

 

 No responsibility can be incurred no matter what happens.

 

 Please take responsibility for your actions.

 

 The NCSDK version to be installed is "v2.05.00.02".

 

 Successful July 11, 2018

 

■ Installation sequence

 

$ sudo passwd root (Enter new password for su) (Enter new password for su)

 

$ sudo apt update $ sudo apt upgrade

 

$ sudo nano /etc/dphys-swapfile CONF_SWAPSIZE=100 ↓ CONF_SWAPSIZE=2048 $ sudo /etc/init.d/dphys-swapfile restart swapon -s

 

$ sudo apt install python-pip python3-pip $ cd ~ $ git clone -b ncsdk2 http://github.com/Movidius/ncsdk $ cd ncsdk $ nano ncsdk.conf #MAKE_NJOBS=1 ↓ MAKE_NJOBS=1

 

$ sudo apt install cython $ sudo -H pip3 install cython $ sudo -H pip3 install numpy $ sudo -H pip3 install pillow $ sudo pip3 uninstall tensorflow $ wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.7.0/tensorflow-1.7.0-cp35-none-linux_armv7l.whl $ sudo pip3 install tensorflow-1.7.0-cp35-none-linux_armv7l.whl $ rm tensorflow-1.7.0-cp35-none-linux_armv7l.whl $ make install

 

$ sudo apt install libjasper1 libcanberra-gtk0 $ wget https://github.com/PINTO0309/OpenCVonARMv7/raw/master/libopencv3_3.4.1-20180304.1_armhf.deb $ sudo dpkg -i libopencv3_3.4.1-20180304.1_armhf.deb $ rm libopencv3_3.4.1-20180304.1_armhf.deb

 

$ sudo nano /etc/dphys-swapfile CONF_SWAPSIZE=2048 ↓ CONF_SWAPSIZE=100 $ sudo /etc/init.d/dphys-swapfile restart swapon -s

 

Finally, restart the terminal.

 

It will be OK if it is displayed as below.

 

$ echo $PYTHONPATH :/opt/movidius/caffe/python

 

 

 

When installing packages manually individually, search package names appropriately on the following site.

 

https://packages.debian.org/index

 

If an error is displayed during "make install" and it stops, execute "make install" several times.

 

 

 

■ Problems with the official installation script

 

 1. "cython" for Python3 is not installed properly.

 

 2. "numpy" for Python3 is not installed properly.

 

 3. Mistaking the type of Tensorflow to be installed. (【Mistake】tensorflow-1.7.0-cp34-none-linux_armv7l → 【Correct】tensorflow-1.7.0-cp35-none-linux_armv7l)

 

 4. Parameters of the "make" command hangs due to insufficient RAM and SWAP space unless it is set to "-j1".

 

 5. OpenCV is not installed automatically.
0 Kudos
5 Replies
idata
Employee
559 Views

@PINTO Thanks for posting this!

0 Kudos
idata
Employee
559 Views

don't need setup caffe?

0 Kudos
idata
Employee
559 Views

@luna

 

Intel's installation script automatically installed "Caffe".

 

If you seem to be having trouble, it is probably a matter of communication.

 

For example, China seems to have intense communication restrictions.

 

https://github.com/PINTO0309/MobileNet-SSD/issues/2
0 Kudos
idata
Employee
559 Views

@PINTO thanks very much

0 Kudos
idata
Employee
559 Views

Raspbian does not load V4L2 drivers for CSI camera modules by default

 

Add the below line to /etc/modules and hit Ctrl-x to save and exit.

 

bcm2835-v4l2

 

sudo reboot

0 Kudos
Reply