Coral AcceleratorとRaspberry Pi3でビデオストリームから物体認識

はてなブックマーク - Coral AcceleratorとRaspberry Pi3でビデオストリームから物体認識
LINEで送る
Pocket

昨日の続きをやります。

Coralのセットアップは昨日の記事を参考してください。

Coral AcceleratorとRaspberryPi 3で鳥の画像の分類まで

必要な学習済みモデルのダウンロード

curl -O https://dl.google.com/coral/canned_models/mobilenet_v2_1.0_224_quant_edgetpu.tflite \
-O https://dl.google.com/coral/canned_models/imagenet_labels.txt

次は、demoのディレクトリに移動します。

cd /usr/local/lib/python3.5/dist-packages/edgetpu/demo

次は、picameraのPythonモジュールをインストールします。すでにインストール済みの場合は、このステップスキップして良いです。

pip3 install picamera

次はPythonプログラムを起動します。

python3 classify_capture.py \
--model ~/workspace/mobilenet_v2_1.0_224_quant_edgetpu.tflite \
--label ~/workspace/imagenet_labels.txt

結果はこちらです。

 

 

View this post on Instagram

 

Coral Accelerator 物体認識

賢 川島さん(@kawashimaken)がシェアした投稿 –

画面が縦になって、すみません。

認識のスピードがとても早いです。応用によっては十分なパーフォマンスができるかと思われます。

まとめ

短い記事となりましたが、実際に、ハードウェアもソフトウェアも用意されていれば、やることは本当にこれしかないです。

もちろん、何か物体を認識したら、〇〇アクションをするという部分は自分の応用に合わせて開発する必要があるかと思います。

また、今までは学習済みのもデールをそのまま使いましたが、自分の応用では独自の認識させたいものがあるかもしれません

その場合、移転学習の手段が可能なので、次回の記事はそれをトピックにしてみたいと思います。

以前も物体認識の類の記事がありますので、合わせてお読みください。

Google AIY Vision Kit Raspberry Pi Zero WH簡単人工知能体験!(Python)

RaspberryPi 3B+とIntel Movidius Compute Stickで、サンプルコードを動かす

raspberry pi opencv ビデオで顔認識(コンパイルなし!)

はてなブックマーク - Coral AcceleratorとRaspberry Pi3でビデオストリームから物体認識
LINEで送る
Pocket

Add a Comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close