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

树莓派ubuntu mate安装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>  修改为 INSTALLDIR=’/opt/intel/openvino’
在51行后面添加
if [ $OS_NAME = “Ubuntu” ] && [ $OS_VERSION = “16” ]; then
system_type=‘armv7l’
fi
在这里插入图片描述
保存退出
执行下面命令

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

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值