From 68464c679ae5e1ae35e7e67e3b339ba0f939cbd3 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 15 三月 2023 14:46:03 +0800 Subject: [PATCH] 选股宝板块优化 --- ocr/ocr_util.py | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ocr/ocr_util.py b/ocr/ocr_util.py index 3658e9f..8f02f3c 100644 --- a/ocr/ocr_util.py +++ b/ocr/ocr_util.py @@ -9,7 +9,7 @@ # 鍥惧儚璇嗗埆绫� class OcrUtil: __ocr = CnOcr() - reader = easyocr.Reader(['en'], gpu=False) + reader = easyocr.Reader(['ch_sim','en'], gpu=False) @classmethod def ocr(cls, mat): @@ -48,5 +48,4 @@ if __name__ == "__main__": - result = OcrUtil.ocr_num("D:/test1.png", "000977") - print(result) + print(re.match("棣�..娉�", "棣栫増鍏虫敞")) -- Gitblit v1.8.0