Skip to content

Commit aa66d86

Browse files
committed
Be more generaous wioth PSRAM now FaceDetect is removed
1 parent f6f71cd commit aa66d86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

esp32-cam-webserver.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,11 @@ void setup() {
485485
// originally: config.xclk_freq_hz = 20000000;
486486
config.xclk_freq_hz = 16500000; // See https://github.com/espressif/esp32-camera/issues/150#issuecomment-726473652 et al.
487487
config.pixel_format = PIXFORMAT_JPEG;
488-
//init with highest supported specs to pre-allocate large buffers
488+
// Pre-allocate large buffers
489489
if(psramFound()){
490490
config.frame_size = FRAMESIZE_UXGA;
491491
config.jpeg_quality = 10;
492-
config.fb_count = 2;
492+
config.fb_count = 6; // We can be generous since we are not using facedetect anymore, allows for bigger jpeg frame size (data)
493493
} else {
494494
config.frame_size = FRAMESIZE_SVGA;
495495
config.jpeg_quality = 12;

0 commit comments

Comments
 (0)