https://www.tensorflow.org/lite/microcontrollers/overview
https://github.com/espressif/tflite-micro-esp-examples
This library is no longer recommended, and its version is outdated.
The official Arduino ESP32 Core now bundles the official library esp-tflite-micro. This library was originally ported before an official version existed, and its contents remain old. The official version is optimized (faster) and lets you use the latest release, so using it is now the best choice. Note, however, that there are almost no usage examples for the official version.
このライブラリの利用は推奨しません。バージョンも古いままです。
公式の Arduino ESP32 Core には、公式ライブラリ esp-tflite-micro が組み込まれています。本ライブラリは公式版がまだ存在しなかった頃に移植したもので、 中身は古いままです。現在は公式版のほうが最適化されていて高速であり、最新バージョンも 利用できるため、公式版を使うのが最適です。ただし、公式版の利用例はほぼありません。
This library runs TensorFlow machine learning models on microcontrollers, allowing you to build AI/ML applications powered by deep learning and neural networks.
With the included examples, you can recognize speech, detect people using a camera, and recognise "magic wand" gestures using an accelerometer.
The examples work best with the M5StickC(ESP32) board, which has a microphone and accelerometer.
Outputs sine waves to serial outputs and build-in LEDs.
This is a sample of speech recognition. The audio_provider and command_responder must be modified according to the environment in which they are used.
It is a person detection using a camera. The image_provider and detection_responder must be modified according to the environment in which they are used.
This is a sample for older versions. It will not work as it is.
This is gesture recognition using acceleration. The accelerometer_handler and output_handler must be modified according to the environment in which they are used.
A sketch customized to look like a specific board.
- M5StickC
- M5StackFire
A sketch customized to look like a specific board.
- ESP-EYE
- M5StickC
- M5StackFire
- ATOM Echo
It is a person detection using a camera. This is a sample of using the ESP32 camera driver. Please configure the device you want to use in config.h.
================================================
==========================+=====================
==================++-+++++++++=**--++++++++++++=
===++++++++++++++++HH#-------=HH*-++++++++++++++
+++++++++++++++---+HHH------+HH#-----#H+++++++++
++++++++++++++-----HHH+---- HHHH----HHH-++++++++
++++++++++++-------HHHH----HHH* ---HHH*-++++++++
++++++++++---------HHHH ---***=---=*HH---+++++++
++++++++++---------H***= +***---H*H* ----++++++
++++++++++--------- ****=-***H ***H+------+++++
++++++HHHH*+------- *************** -----#H#-+++
+++++++ ###HH------**H**********H* --+HHHHHH*+=+
+++++++++M##HH----+H*HHHHHHHHHHHHHHH#H#HHHHH*+=+
+++++++++++#HHHHH=HHHHHHH#H#HHHHHHHH#H####H##+=+
+++++++++++ HHHHHHHHHHHH####H##HH#HH=+++++++++=+
++++++++*=+++#####################HH**********=+
=++++++##M*++ ######H#############H-++++++++++++
===++++#H*=M=++M#################H+++++++++++===
======+++==M++++*###############H +++++++++++===
======H*MHMH=+++++##############++++++++++++====
==============+++=*###########H++++====*++==+==H
==================###########H++++-+============
*================+##########H###H=*+======*==+=*
H**==============###########*===-HH+===+======**
Person score:89 No person score:226
=======================+++======================
====================+=+++++++++=================
=================++++++++==++-----++++++++++++++
=+++++++++++++++------*H*H#H#H=+----++++++++++++
++++++++++++++------*H#HH##HHH*H-------+++++++++
+++++++++++-------- ##HHHHHHH*H##-------++++++++
++++++++++---------H#*H#HHHH#H*#H --------++++++
+++++++++---------- #*HHH***H**+H ---------+++++
+++++++++---------- H=***==***=++----------+++++
+++++++++-----------==*******==*-------------+++
+++++++++----------- -*HH**H*== --------++
+++++++++------------H******** --HHHHHHH*+=+
+++++++++------+=+++=*HHHHH**+#H*H=--#HHHHHHH+=+
++++++++++=+========H##HH##HHH#H***--M#HHHH##+=+
++++++++=*H#**======*HH#HHHH###H*H*H**++++++++=+
+++++++=HHHHH**=====*HH#HHH*#HHH*HHHHHH******==+
++++++HHHHH##******=*HHH#H*HHHHHHH#*###H++++++++
=++++HHH####*#H*******H##H#HHHHHH##MH##HH+++++==
===+HH#H##MMH**HH****HH#H#H##H##HHH*#H#H#H++++==
==*HH#####MM#HHH*HHH####HHHH#####HHHH##*##=++===
=HHH######MM##H#HH###MH*HH##H#####HHM##H##H=+==H
==+M####MMM########M=H###HH#######H#MMH#####====
====###MMM########H########MH##H###MMM######H+=*
===##H#MMM#####H###M#HHHHHHH####HH#MMMMM####H-**
Person score:251 No person score:42
A sketch customized to look like a specific board.
- M5CameraModelB
- T-CameraV05
cd scripts
bash ./sync_from_tflite_micro.sh