Get Started
Prerequisites
A supported ESP-IDF environment with its export script sourced so that
idf.pyis onPATH; see the project README for the maintained branch compatibility.A board listed in Chip and Board Support for the selected chip.
Build, Flash, and Monitor
Clone the repository with submodules, then use the board-aware idf.py extension from the repository root:
git clone --recursive https://github.com/espressif/esp-vision.git esp-vision
cd esp-vision
idf.py --board ESP32_P4X_EYE -p /dev/ttyACM0 build flash monitor
The command first runs prepare-micropython: it verifies that lib/micropython is checked out at the pinned MicroPython v1.28.0 commit, exports a clean MicroPython build copy under build/micropython/, applies overlay/micropython/ to that copy, then projects each boards/<BOARD>/port/ onto the copy’s ports/esp32/boards/<BOARD>/. lib/micropython is never dirtied.
Common idf.py Commands
Command |
Description |
|---|---|
|
Build firmware for a board. |
|
Build and flash firmware. |
|
Open the serial monitor. |
|
Open menuconfig. |
|
Erase flash. |
|
Clean board build output. |
|
Remove the complete build directory for the selected board. |
Run Your First Script
After flashing, connect over the REPL and try the camera. Each API Reference module page links the runnable example/ scripts for that API.