From 98088eeaf07ba3ce3916d62663cd252397e9c96a Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Mon, 6 Jul 2026 23:18:44 +0800 Subject: [PATCH] fix: revert to en model in ocr for stability --- 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 6626b96..80bcc2f 100644 --- a/module/ocr/ocr.py +++ b/module/ocr/ocr.py @@ -360,7 +360,7 @@ class Ocr: class Digit(Ocr): - def __init__(self, button: ButtonWrapper, lang=None, name=None): + def __init__(self, button: ButtonWrapper, lang='en', name=None): super().__init__(button, lang=lang, name=name) def format_result(self, result) -> int: @@ -380,7 +380,7 @@ class Digit(Ocr): class DigitCounter(Ocr): - def __init__(self, button: ButtonWrapper, lang=None, name=None): + def __init__(self, button: ButtonWrapper, lang='en', name=None): super().__init__(button, lang=lang, name=name) @classmethod