mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: [CN] Handle ocr error between 未 and 末
This commit is contained in:
parent
87023c77e6
commit
004e1f03ee
@ -25,6 +25,10 @@ class OcrItemName(Ocr):
|
||||
result = re.sub('工造机$', '工造机杼', result)
|
||||
result = re.sub('工造迥?轮', '工造迴轮', result)
|
||||
result = re.sub('月狂[療撩]?牙', '月狂獠牙', result)
|
||||
# 毁灭者的未路 思绪末屑
|
||||
result = result.replace('未路', '末路')
|
||||
result = result.replace('未屑', '末屑')
|
||||
result = result.replace('粉未', '粉末')
|
||||
# Error words on blank background
|
||||
result = re.sub('^[國東]', '', result)
|
||||
result = re.sub('時$', '', result)
|
||||
|
@ -88,6 +88,8 @@ class RogueBuffOcr(Ocr):
|
||||
"回馈底护": "回馈庇护",
|
||||
"[范茫]+白夜": "茫茫白夜",
|
||||
"阅下": "阈下",
|
||||
'未日': '末日',
|
||||
'尚末': '尚未',
|
||||
}
|
||||
elif self.lang == 'en':
|
||||
replace_pattern_dict = {
|
||||
|
Loading…
Reference in New Issue
Block a user