mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-03 09:25:19 +00:00
修复中英文翻译
GPU版本自动开启OCR
This commit is contained in:
parent
c94c9b9b82
commit
81b867f99f
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
@ -41,7 +41,7 @@ class BaseWWTask(BaseTask, FindFeature, OCR):
|
|||||||
return True, None
|
return True, None
|
||||||
|
|
||||||
def absorb_echo_text(self, ignore_config=False):
|
def absorb_echo_text(self, ignore_config=False):
|
||||||
if (self.pick_echo_config.get('Use OCR') or ignore_config) and (
|
if (self.pick_echo_config.get('Use OCR') or self.ocr_lib == 'paddleocr' or ignore_config) and (
|
||||||
self.game_lang == 'zh_CN' or self.game_lang == 'en_US'):
|
self.game_lang == 'zh_CN' or self.game_lang == 'en_US'):
|
||||||
return re.compile(r'(吸收|Absorb)')
|
return re.compile(r'(吸收|Absorb)')
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user