Skip to content

Commit b0592f8

Browse files
Webcam: only supported resolutions
1 parent 01f7a1f commit b0592f8

File tree

1 file changed

+5
-6
lines changed
  • internal_filesystem/apps/com.micropythonos.camera/assets

1 file changed

+5
-6
lines changed

internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -439,13 +439,12 @@ class CameraSettingsActivity(Activity):
439439
# Resolution options for desktop/webcam
440440
WEBCAM_RESOLUTIONS = [
441441
("160x120", "160x120"),
442-
("240x240", "240x240"), # Default
442+
("320x180", "320x180"),
443443
("320x240", "320x240"),
444-
("480x320", "480x320"),
445-
("640x480", "640x480"),
446-
("800x600", "800x600"),
447-
("1024x768", "1024x768"),
448-
("1280x720", "1280x720"),
444+
("640x360", "640x360"),
445+
("640x480 (30 fps)", "640x480"),
446+
("1280x720 (10 fps)", "1280x720"),
447+
("1920x1080 (5 fps)", "1920x1080"),
449448
]
450449

451450
# Resolution options for internal camera (ESP32) - all available FrameSize options

0 commit comments

Comments
 (0)