Fix: [CN] Handle ocr error between 未 and 末

This commit is contained in:
LmeSzinc 2024-06-04 16:13:52 +08:00
parent 87023c77e6
commit 004e1f03ee
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -88,6 +88,8 @@ class RogueBuffOcr(Ocr):
"回馈底护": "回馈庇护",
"[范茫]+白夜": "茫茫白夜",
"阅下": "阈下",
'未日': '末日',
'尚末': '尚未',
}
elif self.lang == 'en':
replace_pattern_dict = {