From 399592225374e3646a3de5c86c3cd89de83e0520 Mon Sep 17 00:00:00 2001 From: guoh064 <50830808+guoh064@users.noreply.github.com> Date: Sun, 12 Jan 2025 13:06:06 +0800 Subject: [PATCH] Add: azur_lane_jp model injection interface --- module/ocr/ocr.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/ocr/ocr.py b/module/ocr/ocr.py index d245df754..9dfd4f00c 100644 --- a/module/ocr/ocr.py +++ b/module/ocr/ocr.py @@ -2,6 +2,7 @@ import time from datetime import timedelta from typing import TYPE_CHECKING +import module.config.server as server from module.base.button import Button from module.base.decorator import cached_property from module.base.utils import * @@ -38,6 +39,8 @@ class Ocr: self.threshold = threshold self.alphabet = alphabet self.lang = lang + if lang == 'azur_lane' and server.server in ['jp']: + self.lang = 'azur_lane_' + server.server @property def cnocr(self) -> "AlOcr":