From 71d23545a0c350f987dae76992fe8ee4639da29b Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sun, 12 May 2024 02:30:30 +0800 Subject: [PATCH] Refactor: Use cooresponding model in Digit and DigitCounter --- module/ocr/ocr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/ocr/ocr.py b/module/ocr/ocr.py index 82fb32d39..f22d2ff72 100644 --- a/module/ocr/ocr.py +++ b/module/ocr/ocr.py @@ -325,7 +325,7 @@ class Ocr: class Digit(Ocr): - def __init__(self, button: ButtonWrapper, lang='en', name=None): + def __init__(self, button: ButtonWrapper, lang=None, name=None): super().__init__(button, lang=lang, name=name) def format_result(self, result) -> int: @@ -345,7 +345,7 @@ class Digit(Ocr): class DigitCounter(Ocr): - def __init__(self, button: ButtonWrapper, lang='en', name=None): + def __init__(self, button: ButtonWrapper, lang=None, name=None): super().__init__(button, lang=lang, name=name) @classmethod