1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-04-26 15:27:14 +08:00

Merge pull request #467 from noname94/patch1

Fix: [JP] Katakana "pe" may be OCRed as Hiragana
This commit is contained in:
LmeSzinc
2021-06-09 09:02:03 +08:00
committed by GitHub

View File

@@ -57,7 +57,8 @@ class OSMapOperation(MapOperation, MissionHandler, PortHandler):
name = ocr.ocr(self.device.image)
# Use '安' to split because there's no char '-' in jp ocr.
# Kanji '一' and '力' are not used, while Katakana 'ー' and 'カ' are misread as Kanji sometimes.
name = name.split('')[0].rstrip('安全海域').replace('', '').replace('', '')
# Katakana 'ペ' may be misread as Hiragana 'ぺ'.
name = name.split('')[0].rstrip('安全海域').replace('', '').replace('', '').replace('', '')
return name
@Config.when(SERVER=None)