树莓派ubuntu mate安装openvino(神经网络棒2)开发环境

树莓派ubuntu mate安装openvino

    • 下载openvino
    • 安装openvino
    • 测试openvino
    • 官网教程

下载openvino

到 https://download.01.org/opencv/2019/openvinotoolkit/ 下载安装包l_openvino_toolkit_runtime_raspbian_p_2019.2.242.tgz

安装openvino

跳转到下载目录,打开终端,执行以下命令。

sudo mkdir -p /opt/intel/openvino
sudo tar -xf l_openvino_toolkit_runtime_raspbian_p_2019.2.242.tgz --strip 1 -C /opt/intel/openvino
cd /opt/intel/openvino/bin
sudo vim setupvars.sh

修改
第17行 INSTALLDIR=  修改为 INSTALLDIR=’/opt/intel/openvino’
在51行后面添加
if [ $OS_NAME = “Ubuntu” ] && [ $OS_VERSION = “16” ]; then
system_type=‘armv7l’
fi
树莓派ubuntu mate安装openvino(神经网络棒2)开发环境_第1张图片
保存退出
执行下面命令

source /opt/intel/openvino/bin/setupvars.sh
echo "source /opt/intel/openvino/bin/setupvars.sh" >> ~/.bashrc
sudo usermod -a -G users "$(whoami)"
sh /opt/intel/openvino/install_dependencies/install_NCS_udev_rules.sh

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install libstdc++6
sudo apt install cmake

测试openvino

cd ~
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a" /opt/intel/openvino/deployment_tools/inference_engine/samples
make -j2 object_detection_sample_ssd
wget --no-check-certificate https://download.01.org/opencv/2019/open_model_zoo/R1/models_bin/face-detection-adas-0001/FP16/face-detection-adas-0001.bin
wget --no-check-certificate https://download.01.org/opencv/2019/open_model_zoo/R1/models_bin/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 <图片路径>

官网教程

官网教程
https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_raspbian.html

你可能感兴趣的:(笔记)