在Raspberry Pi 3上安裝與執行Intel OpenVINO Toolkit

本文是參照” Install the Intel® Distribution of OpenVINO™ Toolkit for Raspbian* OS”,進行OpenVINO Toolkit安裝與展示程式編譯與執行。硬體部份為Raspberry Pi 3搭配Intel® Neural Compute Stick 2,作業系統為Raspbian;整體組態如下所示:

首先,先在Raspbian OS上安裝cmake套件:

sudo apt-get install cmake

下載OpenVINO Toolkit後進行解壓縮:

cd ~/Downloads/

tar -xf l_openvino_toolkit_ie_p_2018.5.445.tgz

修改 inference_engine_vpu_arm/bin/setupvars.sh 如下所示:

INSTALLDIR=~/Downloads/inference_engine_vpu_arm/

完成後進行環境設定:

source ~/Downloads/inference_engine_vpu_arm/bin/setupvars.sh

添加USB規則:

sudo usermod -a -G users "$(whoami)"

sh inference_engine_vpu_arm/install_dependencies/install_NCS_udev_rules.sh

至此,OpenVINO Toolkit安裝完畢。以下是展示程式編譯程序:

cd inference_engine_vpu_arm/deployment_tools/inference_engine/samples

mkdir build && cd build

cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a"

make -j2 object_detection_sample_ssd

編譯完成後,參考以下方式執行展示程式(人臉檢測):

wget --no-check-certificate https://download.01.org/openvinotoolkit/2018_R4/open_model_zoo/face-detection-adas-0001/FP16/face-detection-adas-0001.bin

wget --no-check-certificate https://download.01.org/openvinotoolkit/2018_R4/open_model_zoo/face-detection-adas-0001/FP16/face-detection-adas-0001.xml

./armv7l/Release/object_detection_sample_ssd -m face-detection-adas-0001.xml -d MYRIAD -i /home/pi/photos

執行結果如下所示:

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *