TMIC: App Inventor Extension for the Deployment of Image Classification Models Exported from Teachable Machine

TMIC: App Inventor Extension for the Deployment of Image Classification Models Exported from Teachable Machine
Version: 1.0
Released: August, 25 2022
Tested Android 9, 12, 13, companion and compiled

TMIC is an App Inventor extension for the deployment of ML models for image classification developed with Google Teachable Machine in educational settings.
Google Teachable Machine is an intuitive visual tool that provides workflow-oriented support for the development of ML models for image classification. Aiming at the usage of models developed with Google Teachable Machine, the extension TMIC enables the deployment of the trained models as part of App Inventor, one of the most popular block-based programming environments for teaching computing in K-12.

The extension TMIC enables the import of ML models created with Google Teachable Machine and exported as Tensorflow.js uploaded on Google Cloud. It allows running the trained models on Google Cloud into the App Inventor app, and capturing images with the device’s rear-facing camera.

The extension is based on the PIC extension, which enables the deployment of ML models created with the PIC web application. It includes the following properties and blocks:

The extension was created with the App Inventor extension framework and is available under the BSD 3 license and it is included with a LICENSE file.

Available material:

The extension is being developed by the initiative Computação na Escola of the Department of Informatics and Statistics of the Federal University of Santa Catarina/Brazil as part of a research effort aiming at introducing AI education in K-12.

F. Pereira de Oliveira, C. Gresse von Wangenheim, J. C. R. Hauck. TMIC: App Inventor Extension for the Deployment of Image Classification Models Exported from Teachable Machine. arXiv, 2022.

We would love to see the apps you create with this extension! Share the apps using the hashtag #cneufsc


What a beautiful extension. I can foresee many people using it for Appathon 2023.

1 Like

thank you for your contribution
one minor issue concerning the naming conventions...

the correct name for the URL_Model property would be UrlModel, please adjust it accordingly, thank you


Hello, thanks for pointing this out. We will be working on the correction of this problem.

Available material:

\ 162x300 \ 162x300

Hello, I have tried the extension in android emulators, studio and genymotion, and it doesn't work. It is important in the classroom to be able to use these emulators with our students, due to the variety of mobiles they have.
It would be very useful if the extension were adapted.
Thank you for your work.

Welcome @garridoferfer .

Did you load the provided aia Fernando and use it with Companion and a real device?

Of course the example does not work in an emulator. It does work on a cell phone.
To use the example that is provided with the extension you must use a camera. I am not aware of any emulator that has camera hardware.

Hello, in Companion and in android emulators it doesn't work, but it does in real device.

Is there a way to use mobile front camera to capture image ?

At the moment with this version of the extension there is no possibility to capture images with the mobile front camera.

ok , I will look forward for this update in future.