ESP-EYE tensorflow lite microcontrollers examples/person_detection

ESP-EYE の esp-idf で、tensorflow lite microcontrollers  examples/person_deetection を試してみました。

https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/micro/examples/person_detection

今回は、Build 、 Run の時のトラブルとその対処方を纏めてみました。
手順は、ESP-EYE tensorflow lite microcontrollers examples/micro_speech とほとんど同じです。

開発環境
Windows 10
esp-idf.py v4.0  Getting Started Guide for ESP-IDF v4.0
python3.7
MSYS2: make のみ利用
Git: Windows版とMSYS2 版を適宜に使用

あったら便利なツール
eclipse C/C++ 2020-06
(open java 64bit : OpenJDK11U-jdk_x64_windows_hotspot_11.0.8_10)
idf-eclipse-plugin : https://github.com/espressif/idf-eclipse-plugin

前提、
esp-idf v4.x 、 python3.7、 MSYS2 、Git はインストール済とします。

要領は、、ESP-EYE tensorflow lite microcontrollers examples/micro_speech とほとんど同じです。

1. tensorflow の clone も同じです。

2. Generate the examples も同じです。
 MSYS2 ターミナルから (/e/local/tensorflow) で、
$ make -f tensorflow/lite/micro/tools/make/Makefile TARGET=esp generate_person_detection_esp_project

3. tensorflow/lite/micro/tools/make/gen/esp_xtensa-esp32/prj/person_detection/esp-idf ディレクトリを、もっと浅い場所にコピーします。
今回は、 e:\local\esp-2\micro_person_detectionへコピーします。
esp-idf ディレクトリーは取り除きます。

3. esp32-camera コンポーネントのダウンロード。
MYSY2 ターミナルで、
$cd /e/loca/esp-2/micor_person_detection
$git clone https://github.com/espressif/esp32-camera components/esp32-camera

4. idf.py でビルドします。
idf.py の Winddows ターミナルで、ビルドします。

注) もし build ディレクトリーを作ってしまっていたら、削除します。

>e:
>cd \local\esp-2\micor_person_detection
>idf.py build

5. 修正。
1) components\tfmicor\CMakeLists.txt から、
-DTF_LITE_STATIC_MEMORY を削除します。

このブログ記事について

このページは、おんちゃんが2020年9月 4日 14:08に書いたブログ記事です。

ひとつ前のブログ記事は「ESP-EYE ESP-WHO detection_with_web(cat face detection)」です。

次のブログ記事は「Browser Based ESP32-EYE Spectrum Analyzer の試し。」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。

カテゴリ

ウェブページ

サイトナビ