RuanMei OCR postprocess in CN (#358)

* RuanMei OCR  postprocess in CN

* dont match dot between ruanmei when ocr postprocess

* RuanMei OCR postprocess in CN

update: used a wildcard for the dot between Ruan and Mei
This commit is contained in:
Asxcvbn 2024-03-06 15:47:21 +08:00 committed by GitHub
parent dbb5658103
commit 58e054a008
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,6 +23,8 @@ class OcrCharacterName(OcrWhiteLetterOnComplexBackground):
# Dan Heng o.ImbibitorLunae
result = re.sub(r'[0Oo\-. ]{1,3}Imbi', 'Imbi', result)
result = re.sub(r'院.?梅', '阮•梅', result)
return super().after_process(result)