How nimnaw/esp-vision works
ESP-VISION is a MicroPython-based edge vision framework for Espressif boards. A Python application enters the firmware runtime, which initializes camera, display, preview, and storage services; camera frames can then be used through the Python image API for processing and recognition. The README also documents media streaming, video codecs, and ESP-DL inference as product capabilities. Some of those implementation paths are present in the tree but were not sampled, so those capability links are documented rather than source-verified.
Main entry points: main.c MicroPython runtime · py_image.c Python image API · storage.c Storage service · camera.h Camera API
Components 20
Firmware runtime
- MicroPython runtime
platform/main.c
Capture and presentation
- Camera API
platform/camera.h - Board camera driver
boards/ESP32_S31_MOSAICO/camera.c - Display
platform/display.c - Preview
platform/preview.c
Vision processing
- Python image API
modules/py_image.c - Image processing
components/imlib/upstream/imlib.c - Barcode recognition
components/zxing/esp_vision_zxing.cpp - Image file I/O
modules/py_imageio.c
Media and AI
- JPEG codec
platform/jpeg.c - H.264 codec
platform/h264.c - RTSP streaming
modules/py_rtsp.c - Network APIs
overlay/micropython/extmod/modnetwork.c - ESP-DL inference
modules/py_espdl.cpp - TensorFlow Lite
modules/py_tflite.cpp
Device storage
- Storage service
platform/storage.c - Python filesystem
platform/storage_vfs.c - Flash partition
- SD card
Other components
- Python application
Connections 20
- Python application → MicroPython runtime: runs application
README.md - MicroPython runtime → Camera API: initializes
platform/main.c - MicroPython runtime → Display: initializes
platform/main.c - MicroPython runtime → Preview: initializes
platform/main.c - MicroPython runtime → Storage service: mounts
platform/main.c - Board camera driver → Camera API: implements
boards/ESP32_S31_MOSAICO/camera.c - Python image API → Camera API: captures frames
- Python image API → Image processing: calls image routines
modules/py_image.c - Python image API → Barcode recognition: uses recognition
modules/py_image.c - Python image API → Image file I/O: uses image I/O
modules/py_image.c - Python application → Display: displays images
README.md - Python application → JPEG codec: encodes media
README.md - Python application → H.264 codec: encodes video
README.md - Python application → RTSP streaming: streams media
README.md - RTSP streaming → Network APIs: uses networking
- Python application → ESP-DL inference: runs inference
README.md - Python application → TensorFlow Lite: runs models
README.md - Storage service → Python filesystem: mounts filesystem
- Storage service → Flash partition: reads and writes
platform/storage.c - Storage service → SD card: reads and writes
platform/storage.c