Download Arduino IDE and continue with the setup.
// Select your board. The AI-Thinker ESP32-CAM is the common black board
// with the silver shield and a microSD slot on the underside.
#define CAMERA_MODEL_AI_THINKER // Has PSRAM
// Comment out every other CAMERA_MODEL_* line in this block. Leaving two
// defined gives "Camera probe failed with error 0x105" at boot, because the
// pin map compiled in does not match the board you actually flashed.
// #define CAMERA_MODEL_ESP_EYE
// #define CAMERA_MODEL_M5STACK_PSRAM
// #define CAMERA_MODEL_WROVER_KIT// Near the top of the sketch, Edge Impulse gates the camera example behind a
// board check. If the sketch refuses to compile with
// "This example is for ESP32 only", confirm the board selected in
// Tools > Board is an ESP32 variant before changing anything here.
// Frame size must stay at or below what the model expects. FOMO models are
// trained at 96x96; the example captures larger and downscales.
#define EI_CAMERA_FRAME_SIZE FRAMESIZE_QVGA // 320x240
// Raise this only if inference is starving the watchdog. Default is fine for
// FOMO on a 240 MHz ESP32.
#define EI_CLASSIFIER_SLICES_PER_MODEL_WINDOW 3
// Confidence floor for drawing a detection. Start at 0.5, then tune using the
// numbers your own model reports in the serial monitor.
#define EI_DETECTION_THRESHOLD 0.5fEdge Impulse Inferencing Demo
Camera initialised
Starting continuous inference in 2 seconds...
Predictions (DSP: 4 ms., Classification: 187 ms., Anomaly: 0 ms.):
resistor (0.882031) [ x: 24, y: 32, width: 8, height: 8 ]
capacitor (0.714844) [ x: 56, y: 16, width: 8, height: 8 ]
Predictions (DSP: 4 ms., Classification: 186 ms., Anomaly: 0 ms.):
No objects found