Ecto-Trigger 1.0
|
This guide explains how to run a trained Ecto-Trigger model on real devices in the field. We provide instructions for two supported platforms:
To execute the models on Raspberry Pi systems, you can choose to use the Tensorflow or TFLite runtime (reccomended). To use the TFLite runtime, check out the guidance here. Basic steps:
(On RPi)
Using Python, you can execute a quantised inference:
Using this example, you can load images into the input_image_array
, by replacing the part using numpy, e.g. you could use PiCamera to take images, and then process them with the model. output[0]
will always contain the prediction from a given image, which is just given as an integer number.
Deploying models onto microcontroller platforms is a little more complicated, as these don't usually support python, so we have to compile code from scratch to execute on each device. To make things as easy as possible, we have provided an example project which uses our models on ESP32s3 chipset with the Platformio extension for VSCode.
We have made a separate repository for this, which includes full guidance and further details.
If you have not yet trained or quantised a model first, use one of ours developed for insect detection, or follow the our usage guidance to train your own.