Skip to content

brianignacio5/opencv-test

Repository files navigation

ESP-IDF OpenCV Image Debug Project

This project demonstrates how to load a JPEG image on an ESP32 using ESP-IDF, decode it to RGB565 format, convert it to BGR888, and wrap it in an OpenCV cv::Mat object for debugging and inspection.

Tested with ESP-IDF v5.5.1.

It might be necessary to configure Optimization Level in Compiler Options to Debug without optimization so GDB doesn't optimize out (variables not shown during debug session) desired variables.

Key features:

  • Uses the Espressif JPEG decoder to decode a binary-included JPEG image.
  • Converts the decoded RGB565 image to BGR888 format compatible with OpenCV.
  • Creates an OpenCV cv::Mat object from the image data, allowing inspection of image variables during a GDB debug session.
  • Includes code and variables that are easy to inspect in GDB, such as image dimensions, channels, and raw buffer pointers.

This is useful for embedded vision development, debugging image processing algorithms, and verifying image data on ESP32 hardware.

About

Test loading image in open cv using esp32

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published