1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Fix: handle island project name ocr error

This commit is contained in:
sui-feng-cb
2025-11-08 02:25:26 +08:00
parent 385c54d6ed
commit fe9e76736b

View File

@@ -19,6 +19,7 @@ from module.ocr.ocr import Duration, Ocr
class ProjectNameOcr(Ocr):
def after_process(self, result):
result = super().after_process(result)
result = result.replace('', '')
result = re.sub(r'[^\u4e00-\u9fff]', '', result)
return result