You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,17 @@ class CameraApp(Activity):
15
15
16
16
DEFAULT_WIDTH=320# 240 would be better but webcam doesn't support this (yet)
17
17
DEFAULT_HEIGHT=240
18
+
APPNAME="com.micropythonos.camera"
19
+
#DEFAULT_CONFIG = "config.json"
20
+
#QRCODE_CONFIG = "config_qrmode.json"
18
21
19
22
button_width=60
20
23
button_height=45
21
24
colormode=False
22
25
23
26
status_label_text="No camera found."
24
-
status_label_text_searching="Searching QR codes...\n\nHold still and try varying scan distance (10-25cm) and QR size (4-12cm). Ensure proper lighting."
25
-
status_label_text_found="Decoding QR..."
27
+
status_label_text_searching="Searching QR codes...\n\nHold still and try varying scan distance (10-25cm) and make the QR code big (4-12cm). Ensure proper lighting."
28
+
status_label_text_found="Found QR, trying to decode... hold still..."
26
29
27
30
cam=None
28
31
current_cam_buffer=None# Holds the current memoryview to prevent garbage collection
@@ -167,7 +170,7 @@ def onPause(self, screen):
167
170
168
171
defload_resolution_preference(self):
169
172
"""Load resolution preference from SharedPreferences and update width/height."""
0 commit comments