0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

openvino/RaspberryPi

Last updated at Posted at 2021-03-12

#RaspberryPiでopenvino

参考記事
https://jellyware.jp/kurage/openvino/c03_setting.html
https://docs.openvinotoolkit.org/latest/openvino_docs_install_guides_installing_openvino_raspbian.html

https://download.01.org/opencv/
よりツールキットをインストール(最新版推奨)

インストール先ディレクトリ

sudo mkdir -p /opt/intel/openvino

解凍

sudo tar -xf さっきダウンロードしたファイル --strip 1 -C /opt/intel/openvino

サンプルコードをビルドするためのソフトをインストール

sudo apt install cmake

環境変数を反映

source /opt/intel/openvino/bin/setupvars.sh

起動時に上を実行させるためにbashに書き込み

echo "source /opt/intel/openvino/bin/setupvars.sh" >> ~/.bashrc

USBルールに追加

sudo usermod -a -G users "$(whoami)"
sh /opt/intel/openvino/install_dependencies/install_NCS_udev_rules.sh

##サンプルコードを実行
作業フォルダ作成

mkdir build && cd build

ビルド

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a" /opt/intel/openvino/deployment_tools/inference_engine/samples/cpp
make -j2 object_detection_sample_ssd

動物認識プログラムをダウンロード

git clone https://github.com/openvinotoolkit/open_model_zoo
cd open_model_zoo/tools/downloader
python3 downloader.py --name face-detection-adas-0001
cd ~/build

画像を~/buildに置く

実行

 ./armv7l/Release/object_detection_sample_ssd -m ./open_model_zoo/tools/downloader/intel/face-detection-adas-0001/FP16/face-detection-adas-0001.xml -d MYRIAD -i 画像.jpg

~/buildに画像ファイルが出力されているので確認できる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?