Fix: [CN] Remove "|" in ocr results

This commit is contained in:
LmeSzinc 2024-05-13 15:53:08 +08:00
parent 45a6cb668f
commit f7b48efc7a

View File

@ -7,7 +7,7 @@ import module.config.server as server
from module.exception import ScriptError from module.exception import ScriptError
# ord('') = 65294 # ord('') = 65294
REGEX_PUNCTUATION = re.compile(r'[ ,.\'"“”,。…:;!??·・•●〇°*※\-—–-/\\\n\t()\[\]()「」『』【】《》[]]') REGEX_PUNCTUATION = re.compile(r'[ ,.\'"“”,。…:;!??·・•●〇°*※\-—–-/\\|丨\n\t()\[\]()「」『』【】《》[]]')
def parse_name(n): def parse_name(n):