@@ -108,14 +108,14 @@ def onResume(self, screen):
108108 if self .cam :
109109 self .image .set_rotation (900 ) # internal camera is rotated 90 degrees
110110 else :
111- print ("camera.py : no internal camera found, trying webcam on /dev/video0" )
111+ print ("camera app : no internal camera found, trying webcam on /dev/video0" )
112112 try :
113113 self .cam = webcam .init ("/dev/video0" )
114114 self .use_webcam = True
115115 except Exception as e :
116- print (f"camera.py : webcam exception: { e } " )
116+ print (f"camera app : webcam exception: { e } " )
117117 if self .cam :
118- print ("Camera initialized, continuing..." )
118+ print ("Camera app initialized, continuing..." )
119119 self .capture_timer = lv .timer_create (self .try_capture , 100 , None )
120120 self .status_label_cont .add_flag (lv .obj .FLAG .HIDDEN )
121121 if self .scanqr_mode :
@@ -124,20 +124,20 @@ def onResume(self, screen):
124124 self .qr_button .remove_flag (lv .obj .FLAG .HIDDEN )
125125 self .snap_button .remove_flag (lv .obj .FLAG .HIDDEN )
126126 else :
127- print ("No camera found, stopping camera.py " )
127+ print ("No camera found, stopping camera app " )
128128 if self .scanqr_mode :
129129 self .finish ()
130130
131131
132132 def onStop (self , screen ):
133- print ("camera.py backgrounded, cleaning up..." )
133+ print ("camera app backgrounded, cleaning up..." )
134134 if self .capture_timer :
135135 self .capture_timer .delete ()
136136 if self .use_webcam :
137137 webcam .deinit (self .cam )
138138 elif self .cam :
139139 self .cam .deinit ()
140- print ("camera.py cleanup done." )
140+ print ("camera app cleanup done." )
141141
142142 def qrdecode_one (self ):
143143 try :
@@ -225,7 +225,6 @@ def try_capture(self, event):
225225 print (f"Camera capture exception: { e } " )
226226
227227
228-
229228# Non-class functions:
230229def init_internal_cam ():
231230 try :
0 commit comments