Fix: ocr scan chinese '楚天之魔' to replace '焚天之魔' (#618)

This commit is contained in:
AkagiYui 2024-08-28 22:42:36 +08:00 committed by GitHub
parent c839732fd9
commit c91ec3cf2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,7 @@ class OcrItemName(Ocr):
def after_process(self, result):
result = result.replace('方相果实', '万相果实')
result = result.replace('念火之心', '忿火之心')
result = result.replace('楚天之魔', '焚天之魔')
result = re.sub('^火之心', '忿火之心', result)
result = re.sub('工造机$', '工造机杼', result)
result = re.sub('工造迥?轮', '工造迴轮', result)