From 848a9e24992566aabc566f55fe4afd7575e0190c Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Tue, 17 Oct 2023 12:45:12 +0800 Subject: [PATCH] Fix: [CN] OCR error on Stagnant_Shadow_Scorch (#165) --- tasks/dungeon/ui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/dungeon/ui.py b/tasks/dungeon/ui.py index 7ecdff49d..91da95fd1 100644 --- a/tasks/dungeon/ui.py +++ b/tasks/dungeon/ui.py @@ -1,3 +1,5 @@ +import re + import numpy as np from module.base.base import ModuleBase @@ -72,6 +74,7 @@ class OcrDungeonList(Ocr): result = result.replace('皖A0', '50').replace('皖', '') # 燔灼之形•凝滞虚影 result = result.replace('熠', '燔') + result = re.sub('^灼之形', '燔灼之形', result) return result