Project overview
Hardware required for the project
Hardware Setup Final Result
Ctrl + Shift + X
and add your login credentials, enable the wireless LAN by adding your WiFi credentials and verify that the SSH connection is enabled in the Services settings.
Raspberry Pi image settings
Device IP Address
SSH Connection through Putty
Akida driver verification
You can clone the public Edge Impulse project if you’d like, from this link.
New project creation
Dataset creating source
Raw image and labeled image
Taking at least +95 pictures of the piece class will let you create a robust enough model
Final impulse design
Confusion matrix results
It is recommended that you install Edge Impulse for Linux following this link or the steps below:
If you want to test the model as it is without any modification, jump to the Run Inferencing section.Once the project is cloned locally on the Raspberry Pi, you can download the project model from Edge Impulse Studio by navigating to the Dashboard section and downloading the MetaTF
.fbz
file.
Downloading the project model
scp
command as follows:
You will be asked for your Raspberry Pi login password.
Copying the model to the Raspberry Pi
(/home/raspberrypi)
, and you can verify it by listing the directory content using ls
.
Move the model to the project directory with the following command (from /home/raspberrypi)
:
Project directory
inventory.py
: is the original program, it uses a MIPI camera feed to run the inference.stock.py
: is an optimized version of the original program, also uses a MIPI camera but the object markers are bigger.low-power.py
: is a lower-power program with half of energy consumption, and also uses a MIPI camera.usb-inference.py
: is a version that uses a USB camera instead of a MIPI camera (no Matrix control).mipi_inference.py
: this program runs the FOMO model without controlling the LED Matrix.matrix_test.py
: this program tests the LED matrix displaying colors and patterns.The .fbz model is hard coded in the script, so if you want to use the custom one you downloaded, update the “model_file” variable in the python script.The project will start running and streaming a live view of the camera feed plus showing you in the LED matrix the location of detected objects alongside the FOMO inference results, object count, frames per second and energy consumption. To watch a preview of the camera feed, open your favorite browser and enter
http://<Raspberry Pi IP>:8080
.
Project running | Inference results