From 7fa16dfe511d6c0803061cba29965b6be2e3d953 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 06 八月 2024 16:34:34 +0800
Subject: [PATCH] 页面修改

---
 utils/ocr_util.py |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/utils/ocr_util.py b/utils/ocr_util.py
index a0bbeda..db04a49 100644
--- a/utils/ocr_util.py
+++ b/utils/ocr_util.py
@@ -1,10 +1,6 @@
-import json
 import re
-import time
-
 import easyocr
 
-# import kpl_util
 
 reader = easyocr.Reader(['ch_sim', 'en'], gpu=True, model_storage_directory="res/ocr_model/model",
                         download_enabled=False)
@@ -50,7 +46,6 @@
                 res_final.append((text, [(int(ps[0][0]), int(ps[0][1])), (int(ps[1][0]), int(ps[1][1])),
                                          (int(ps[2][0]), int(ps[2][1])), (int(ps[3][0]), int(ps[3][1]))]))
     return res_final
-
 
 if __name__ == '__main__':
     img = "C:\\Users\\Administrator\\Desktop\\ocr\\codes\\000021_23850.png"

--
Gitblit v1.8.0