From b0592f8e221f8cc2a7a950db0e9b1e95a66ae316 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Tue, 25 Nov 2025 09:30:55 +0100 Subject: [PATCH] Webcam: only supported resolutions --- .../com.micropythonos.camera/assets/camera_app.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py b/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py index 62847664..a30d30c2 100644 --- a/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py +++ b/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py @@ -439,13 +439,12 @@ class CameraSettingsActivity(Activity): # Resolution options for desktop/webcam WEBCAM_RESOLUTIONS = [ ("160x120", "160x120"), - ("240x240", "240x240"), # Default + ("320x180", "320x180"), ("320x240", "320x240"), - ("480x320", "480x320"), - ("640x480", "640x480"), - ("800x600", "800x600"), - ("1024x768", "1024x768"), - ("1280x720", "1280x720"), + ("640x360", "640x360"), + ("640x480 (30 fps)", "640x480"), + ("1280x720 (10 fps)", "1280x720"), + ("1920x1080 (5 fps)", "1920x1080"), ] # Resolution options for internal camera (ESP32) - all available FrameSize options