Example Code for Arduino - Image Recognition Based on EdgeImpulse
This example uses the Person_Detection_inferencing model trained on EdgeImpulse for human detection. The recognition results can be viewed via the serial port, and the camera feed can be accessed through a web video stream.
Hardware Preparation
Software Preparation
- Download Arduino IDE: Click to download Arduino IDE
- Add ESP32 board to Arduino IDE
Other Preparation Work
-
Place the Person_Detection_inferencing folder into the libraries directory of your Arduino IDE installation.
-
Launch Arduino IDE, select File > Examples > Person_Detection_inferencing > edge_camera, and burn the code to your device.
Sample Code
Result
-
Open the Serial Monitor (baud rate: 115200), enter your WiFi SSID and Password as prompted to connect to WiFi.
-
After successful connection, access the IP address displayed in the Serial Monitor via a web browser to view the backend interface. Click "Start Stream" to obtain the live video feed.
Was this article helpful?
