From 2bd50d0b52bc375945abce28876396de119df256 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 1 Jul 2021 16:04:27 +0800 Subject: [PATCH] bugfix --- kivyblocks/custom_camera.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/kivyblocks/custom_camera.py b/kivyblocks/custom_camera.py index e395c05..2926c75 100644 --- a/kivyblocks/custom_camera.py +++ b/kivyblocks/custom_camera.py @@ -94,14 +94,11 @@ class QrReader(CustomCamera): print('data=',d) def on_tex(self, camera): - print('QrReader().on_tex() ....') super(QrReader, self).on_tex(camera) image = np.frombuffer(self.texture.pixels, dtype='uint8') image = image.reshape(self.texture.height, self.texture.width, -1) image = cv2.cvtColor(image, cv2.COLOR_RGBA2BGR) self.qr_result, bbox,_ = self.qr_reader.detectAndDecode(image) if self.qr_result: - print('qr read done') - self.dismiss() self.dispatch('on_data',self.qr_result)