From c034a105958a1c6541f99d3f3ce4c494d8352de8 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Wed, 11 Sep 2024 00:00:34 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20[CN]=20Ocr=20result=20on=20word=20?= =?UTF-8?q?=E9=85=A9=E9=85=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/planner/scan.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/planner/scan.py b/tasks/planner/scan.py index 76b1212a6..7919f72c2 100644 --- a/tasks/planner/scan.py +++ b/tasks/planner/scan.py @@ -37,6 +37,8 @@ class OcrItemName(Ocr): # Error words on blank background result = re.sub('^[國東]', '', result) result = re.sub('時$', '', result) + # 一杯酩酊的时代 + result = re.sub('一杯[酪酩酊酐]*的', '一杯酩酊的', result) return result