File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
internal_filesystem/apps/com.micropythonos.camera/assets Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 } " )
You can’t perform that action at this time.
0 commit comments