esp32cam library provides an object oriented API to use OV2640 camera on ESP32 microcontroller. It is a wrapper of esp32-camera library. This library has been tested with AI Thinker ESP32-CAM board and OV2640 camera.
$HOME/Arduino/libraries
directory.#include <esp32cam.h>
to your sketch.