Skip to content

Commit c69342b

Browse files
Comments and output
1 parent e1a97f6 commit c69342b

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def qrdecode_one(self):
245245
self.status_label.set_text(result) # in the future, the status_label text should be copy-paste-able
246246

247247
def snap_button_click(self, e):
248-
print("Picture taken!")
248+
print("Taking picture...")
249249
import os
250250
try:
251251
os.mkdir("data")
@@ -262,7 +262,7 @@ def snap_button_click(self, e):
262262
filename=f"data/images/camera_capture_{mpos.time.epoch_seconds()}_{self.width}x{self.height}_{colorname}.raw"
263263
try:
264264
with open(filename, 'wb') as f:
265-
f.write(self.current_cam_buffer)
265+
f.write(self.current_cam_buffer) # This takes around 17 seconds to store 921600 bytes, so ~50KB/s, so would be nice to show some progress bar
266266
print(f"Successfully wrote image to {filename}")
267267
except OSError as e:
268268
print(f"Error writing to file: {e}")

0 commit comments

Comments
 (0)