LoginSignup
1
1

More than 3 years have passed since last update.

ラズパイ上でMediaPipeを動作させる

Posted at

Desktop PCやiOS、Androidへのビルドドキュメントはあるのにラズパイ用はない...非推奨??
一個一個のnodeはtfliteなので、EdgeTPU利用でアプリケーション動作しそうなものだけど。

bazelのinstall

buildにbazelが必要。aptでさらっと入れれないためビルドする。細かい入れ方はPINTOさんの記事そのものなので以下を参考に。
- https://qiita.com/PINTO/items/ecdab78dda6868221aee
- 記事中でも入れてるがzramなどメモリ対策しておかないとビルド中にOut Of Memoryして終わる...

OpenCV、ffmpegのinstall

ここはMediaPipeのInstalling MediaPipeに記載のとおりに入れれるので入れる。

$ sudo apt-get install libopencv-core-dev libopencv-highgui-dev \
                       libopencv-imgproc-dev libopencv-video-dev

MediaPipeのビルド

$ export GLOG_logtostderr=1
$ bazel run --define MEDIAPIPE_DISABLE_GPU=1 \
    mediapipe/examples/desktop/hello_world:hello_world

Hellow Worldと出ればOK

Hand Trackingを動作させる

次ここを動かしたいが、ビルド途中で止まる...
ここはラズパイならではの処理が色々と必要そうなので簡単にはいかなさそう。

1
1
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
1
1