u/Consistent-Pickle

ESP32 CAM - resolution / aspect ratio modification?
▲ 2 r/esp32

ESP32 CAM - resolution / aspect ratio modification?

I recently got interested in the ESP32 CAM, and am playing around with the "ESP32-CAM-Video-Recorder-junior" firmware:

https://github.com/jameszah/ESP32-CAM-Video-Recorder-junior

I'm attempting to add additional resolution options, specifically 1024x1024 and 1200x1200 (wide-angle OV2640). The goal is to get the same angular resolution both vertically and horizontally and eliminate unneeded pixels to improve the framerate. I've added two more framesize options (shown in bold) to "static const frameSizeStruct frameSizeData" in the .ino file:

{{0x00, 0x0A}, {0x80, 0x07}}, // FRAMESIZE_QSXGA, // 2560x1920 23

{{0x00, 0x04}, {0x00, 0x04}}, // FRAMESIZE_SQXGA, // 1024x1024 24

{{0xB0, 0x04}, {0xB0, 0x04}} // FRAMESIZE_SQXGA12, // 1200x1200 25

And added the options (bold) to the "sensor.h" library file:

FRAMESIZE_5MP, // 2592x1944

FRAMESIZE_SQXGA, // 1024x1024

FRAMESIZE_SQXGA12, // 1200x1200

FRAMESIZE_INVALID

Surprisingly it compiled and uploaded with the latest Arduino IDE, but the streaming image seems to default to 96x96 (same as framesize=1) and video on the SD card is MIA. I imagine there's a lot more to this modification (maybe buried in some library files) and wondering if anyone has attempted this before?

Thanks in advance!

u/Consistent-Pickle — 2 days ago