From 8535f56dbf6e410b4a09f02f95d4d49bcc8753f2 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 27 三月 2023 18:58:54 +0800 Subject: [PATCH] 看盘页面数据调整 --- ocr/ocr_util.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/ocr/ocr_util.py b/ocr/ocr_util.py index 8f02f3c..2070c56 100644 --- a/ocr/ocr_util.py +++ b/ocr/ocr_util.py @@ -16,6 +16,11 @@ res = cls.__ocr.ocr(mat) return res + @classmethod + def easy_ocr(cls, mat): + res = cls.reader.readtext(mat, detail=1) + return res + # 杩斿洖(璇嗗埆鍐呭,浣嶇疆淇℃伅) @classmethod def ocr_with_key(cls, mat, key): -- Gitblit v1.8.0