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

Other Preparation Work

  1. Place the Person_Detection_inferencing folder into the libraries directory of your Arduino IDE installation.

  2. Launch Arduino IDE, select File > Examples > Person_Detection_inferencing > edge_camera, and burn the code to your device.

Sample Code

Result

  1. Open the Serial Monitor (baud rate: 115200), enter your WiFi SSID and Password as prompted to connect to WiFi.

  2. 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?

TOP