Raspberry Pi學習筆記(十三):使用 第一代Intel® Movidius™ NCS運算棒

分為1、2代,差別在運算棒的外觀(第二代有寫2)

編譯需時約 2~3小時

在開始之前,請先在Pi上面安裝TensorflowOpenCV、scikit-image

pip3 install scikit-image

1.安裝套件

sudo apt-get updatesudo apt-get install -y libusb-1.0-0-dev libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler libatlas-base-dev git automake byacc lsb-release cmake libgflags-dev libgoogle-glog-dev liblmdb-dev swig3.0 graphviz libxslt-dev libxml2-dev gfortran python3-dev python-pip python3-pip python3-setuptools python3-markdown python3-pillow python3-yaml python3-pygraphviz python3-h5py python3-nose python3-lxml python3-matplotlib python3-numpy python3-protobuf python3-dateutil python3-skimage python3-scipy python3-six python3-networkx

2.下載NCSDK

git clone -b ncsdk2 https://github.com/movidius/ncsdk.gitcd ncsdk/sudo make install  #需輸入帳密,預設帳密是pi/raspberry,編譯需較長時間,約2~3小時cd ..

3.將 Intel Movidius神經運算棒插上USB接頭

插到USB插槽

3.1測試NCSDK

cd examples/apps/hello_ncs_py/
make run

4.下載NCAppZoo github並執行

git clone https://github.com/movidius/ncappzoo
cd ncappzoo
cd ncappzoo/apps/hello_ncs_py
python3 hello_ncs.py
Image for post
Image for post

5.備份安裝完NCSDK的Raspbian系統

[Raspberry Pi] 不再備份整張SD卡,縮小RaspberryPi備份容量

入門

實作

第一代

第二代

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store