You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/04.pro/boards/portenta-x8/tutorials/16.edge-ai-docker-container/content.md
+7-21
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: 'Edge Impulse on Portenta X8 with Docker'
2
+
title: '15. Edge AI Flow Monitoring on Portenta X8 with Docker'
3
3
difficulty: intermediate
4
4
description: 'Learn how to create and deploy an Edge Impulse model on Portenta X8 using Docker containers and a flow sensor for real time anomaly detection.'
5
5
tags:
@@ -40,6 +40,8 @@ The application note has the following objectives:
40
40
41
41
## Hardware and Software Requirements
42
42
43
+

44
+
43
45
### Hardware Requirements
44
46
45
47
This application note uses the Portenta X8, integrating a flow sensor for real time fluid monitoring. The required hardware includes:
@@ -66,7 +68,8 @@ To develop and deploy the flow monitoring system, the following software tools a
66
68
-[Arduino IDE 2.0+](https://www.arduino.cc/en/software) or [Arduino Web Editor](https://create.arduino.cc/editor)
67
69
- The [Arduino Create Agent](https://cloud.arduino.cc/download-agent/)
68
70
- The [Arduino Cloud](https://cloud.arduino.cc/). If you do not have an account, you can create one for free inside [cloud.arduino.cc](https://cloud.arduino.cc/home/?get-started=true).
-[Edge Impulse project example](https://studio.edgeimpulse.com/public/208861/live). This is a ready-to-use public Edge Impulse project for this application. You can clone it to explore the dataset, model architecture and training pipeline.
70
73
71
74
### Download the Project Code
72
75
@@ -129,7 +132,7 @@ The system wiring follows a straightforward configuration:
129
132
130
133

131
134
132
-
-**Portenta X8**: mounted on the **Portenta Mid/Hat Carrier**, which provides access to pinout interfaces. Any other Portenta family can also be used for this step. It is also used to connect to **Wi-Fi** or **Ethernet** for cloud communication.
135
+
-**Portenta X8**: mounted on the **Portenta Mid/Hat Carrier**, provides access to pinout interfaces and **Wi-Fi** or **Ethernet** connection management for cloud communication.
133
136
-**Flow sensor**: connected to the corresponding pins on the **Portenta Mid/Hat Carrier**.
134
137
-**USB-C cable**: used for initial setup, debugging and Edge Impulse data collection.
135
138
@@ -474,24 +477,7 @@ The inference workflow consists of the following steps:
474
477
-**Model Prediction:** The trained model classifies the current flow condition.
475
478
-**Response Actions:** If an anomaly is detected, the system takes corresponding action.
476
479
477
-
By running inference directly on the Portenta X8, this approach can provide latency reduction and autonomous anomaly detection.
478
-
479
-
#### Running the Model as a Docker Container (Optional)
480
-
481
-
When docker container is selected as the deployment option, the system generates a Docker command to pull and run the model:
This command pulls the latest model from the Edge Impulse container registry and runs an HTTP server on port `1337`, allowing external applications to send sensor data and receive model predictions. It uses an API key to authenticate requests.
493
-
494
-
This method provides an alternative way to run the model on a general purpose Docker environment, which can be used for quick testing and validation.
480
+
By running inference directly on the Portenta X8, this approach can provide latency reduction and autonomous anomaly detection. With the Docker container ready, the next step is to compose and integrate the necessary components for deployment on the Portenta X8.
495
481
496
482
***For additional details on Docker based inference, refer to the [official Edge Impulse Docker Deployment documentation](https://docs.edgeimpulse.com/docs/run-inference/docker).***
0 commit comments