Fix: ocr scan chinese '方相果实' to replace '万相果实' (#572)

Co-authored-by: LmeSzinc <lmeszincsales@gmail.com>
This commit is contained in:
Lo Mu 2024-07-11 21:52:14 +08:00 committed by GitHub
parent 91f1a8e605
commit df22d61aaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,6 +23,7 @@ DETAIL_TITLE.load_search(RESULT_CHECK.search)
class OcrItemName(Ocr): class OcrItemName(Ocr):
def after_process(self, result): 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) result = re.sub('工造机$', '工造机杼', result)