EasyManuals Logo

Espressif Systems ESP User Manual

Default Icon
191 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #48 background imageLoading...
Page #48 background image
Chapter 3. application solution
3.6.15 Is there any reference for ESP32/ESP32-S2/ESP32-S3 to recognize the QR code
through the camera?
Yes, please refer to the code recognition in ESP-WHO.
3.6.16 When adding the SD-card interface and camera interface for OV5640 sensor, we
found that some pins of dierent ESP32 drivers conicted with each other. Please
suggest pins for the camera interface and SD-card interface.
ESP-WROVER-KIT development board includes the camera and SD card circuits, so you can refer to
pins con󰝘guration of ESP-WROVER-KIT V3 Getting Started Guide.
3.6.17 Can a driver for a specic camera model be added if the currently supported cam-
era sensors do not meet my requirements?
Yes. Please con󰝘rm your requirements and select the camera sensor model with our engineers through
technical support. We can then provide the corresponding driver for your camera sensor.
3.6.18 How to add a custom resolution?
Suppose you need a resolution of 640x240. You can add the custom resolution in two ways:
Con󰝘gure the sensor to work at the typical resolution of 640x480 and only use the upper half of
the data (640x240).
Add the identi󰝘er FRAMESIZE_640*240 in esp32-camera/driver/include/sensor.h,
and de󰝘ne the length and width of that resolution in esp32-camera/driver/sensor.c
<https://github.com/espressif/esp32-camera/blob/master/driver/sensor.c#L31>`__ as {640,
240, ASPECT_RATIO_16X9}. This method requires support for custom resolutions in the
sensors driver to work properly.
3.6.19 How to modify the register conguration of a camera sensor?
Suppose you want to change the register con󰝘guration of the OV5640 sensor. This can be achieved in
two ways:
Directly con󰝘gure the relevant registers using write_reg() in the reset() function of esp32-
camera/sensors/ov5640.c.
Con󰝘gure the relevant registers using set_reg() at the application level:
//Initialize the camera
esp_err_t ret = esp_camera_init(&camera_config);
sensor_t *s = esp_camera_sensor_get();
s->set_reg(s, 0xFFFA, 0xFF, 0xA1);
Espressif Systems 31
Submit Document Feedback
Release master

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Espressif Systems ESP and is the answer not in the manual?

Espressif Systems ESP Specifications

General IconGeneral
BrandEspressif Systems
ModelESP
CategoryMotherboard
LanguageEnglish