low settings
This commit is contained in:
parent
75c2fbde55
commit
c730b8fca4
12
src/main.cpp
12
src/main.cpp
@ -220,6 +220,7 @@ void setup() {
|
||||
|
||||
WiFi.mode(WIFI_STA);
|
||||
WiFi.begin(WIFI_SSID, WIFI_PASS);
|
||||
WiFi.setSleep(false);
|
||||
Serial.print("Connecting to Wi-Fi");
|
||||
|
||||
while (WiFi.status() != WL_CONNECTED) {
|
||||
@ -254,17 +255,14 @@ void setup() {
|
||||
config.pixel_format = PIXFORMAT_JPEG;
|
||||
config.grab_mode = CAMERA_GRAB_LATEST;
|
||||
|
||||
// FPS preset: smaller frame + higher JPEG quality value (more compression).
|
||||
// Low-latency preset: smallest frame + heavier compression + single buffer.
|
||||
// Note: lower "quality" number = better quality but slower.
|
||||
config.frame_size = FRAMESIZE_QQVGA;
|
||||
config.jpeg_quality = 25;
|
||||
config.fb_count = 1;
|
||||
if (psramFound()) {
|
||||
config.frame_size = FRAMESIZE_QVGA;
|
||||
config.jpeg_quality = 20;
|
||||
config.fb_count = 2;
|
||||
config.fb_location = CAMERA_FB_IN_PSRAM;
|
||||
} else {
|
||||
config.frame_size = FRAMESIZE_QVGA;
|
||||
config.jpeg_quality = 20;
|
||||
config.fb_count = 1;
|
||||
config.fb_location = CAMERA_FB_IN_DRAM;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user