📄 Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
remove invalid files
SWHL422909f2317e
diff --git a/README.md b/README.mdindex e9b8f80..a83c434 100755--- a/README.md+++ b/README.md@@ -82,7 +82,7 @@## 整个框架<div align="center">- <img src="./assets/RapidOCR_system.png">+ <img src="./assets/RapidOCR_system.jpg"></div>## 常见问题 [FAQ](./docs/FAQ.md)diff --git a/assets/RapidOCR_system.jpg b/assets/RapidOCR_system.jpgnew file mode 100644index 0000000..892b2ddBinary files /dev/null and b/assets/RapidOCR_system.jpg differdiff --git a/assets/RapidOCR_system.png b/assets/RapidOCR_system.pngdeleted file mode 100644index 4f1c6b4..0000000Binary files a/assets/RapidOCR_system.png and /dev/null differdiff --git a/images/clear.cmd b/images/clear.cmddeleted file mode 100755index 6b1005e..0000000--- a/images/clear.cmd+++ /dev/null@@ -1,15 +0,0 @@-@ECHO OFF-echo Delete part img-DEL /Q *-part-*.jpg--echo Delete angle img-DEL /Q *-angle-*.jpg--echo Delete debug img-DEL /Q *-debug-*.jpg--echo Delete result img-DEL /Q *-result.jpg--echo Delete result txt-DEL /Q *-result.txtdiff --git a/images/clear.sh b/images/clear.shdeleted file mode 100755index b56b6e2..0000000--- a/images/clear.sh+++ /dev/null@@ -1,16 +0,0 @@-#!/bin/bash--echo Delete part img-rm -f *-part-*.jpg--echo Delete angle img-rm -f *-angle-*.jpg--echo Delete debug img-rm -f *-debug-*.jpg--echo Delete result img-rm -f *-result.jpg--echo Delete result txt-rm -f *-result.txtdiff --git a/images/long1.jpg b/images/long1.jpgdeleted file mode 100755index 4e0ca3c..0000000Binary files a/images/long1.jpg and /dev/null differdiff --git a/ocrweb/main.py b/ocrweb/main.pyindex a7f198c..e129b81 100644--- a/ocrweb/main.py+++ b/ocrweb/main.py@@ -36,7 +36,4 @@ def ocr():if __name__ == '__main__':- app.run(host='127.0.0.1',- port=9003,- debug=False,- processes=True)+ app.run(host='127.0.0.1', port=9003, debug=False, processes=True)diff --git a/ocrweb/static/css/main.css b/ocrweb/static/css/main.cssindex a02bc77..8182558 100644--- a/ocrweb/static/css/main.css+++ b/ocrweb/static/css/main.css@@ -56,7 +56,7 @@ body{color: #fff;display: inline-block;text-align: center;- font-size: 26px;+ font-size: 22px;transition: .3s;box-sizing: border-box;}diff --git a/ocrweb/task.py b/ocrweb/task.pyindex 1e6582d..05bfb92 100644--- a/ocrweb/task.py+++ b/ocrweb/task.py@@ -5,10 +5,10 @@# @Author: SWHL# @Contact: [email protected]import base64-from functools import reduce-import json-import timeimport copy+import json+from functools import reduce+from pathlib import Pathimport cv2import numpy as np@@ -81,4 +81,4 @@ def draw_text_det_res(dt_boxes, raw_im):thickness=1)cv2.putText(src_im, str(i), (int(box[0][0]), int(box[0][1])),cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 0, 0), 2)- return src_im\ No newline at end of file+ return src_imdiff --git a/ocrweb/templates/index.html b/ocrweb/templates/index.htmlindex 5bd4f25..0c8da83 100644--- a/ocrweb/templates/index.html+++ b/ocrweb/templates/index.html@@ -20,13 +20,13 @@<br/><div class="area"><div class="leftarea" id="detectDiv">- <span class="span_title">文本检测结果</span><br/><br/>+ <span class="span_title">文 本 检 测 结 果</span><br/><br/><div class="wrapper" id="wrapper" hidden></div><img id="detect_img" src=""/></div><div class="rightarea" id="recogDiv">- <span id="rec_res" class="span_title">文本识别结果</span>+ <span id="rec_res" class="span_title">文 本 识 别 结 果</span><br/><br/><table id="locTable" class="table" cellspacing="0" cellpadding="5"></table></div>@@ -89,7 +89,7 @@}if (data["total_elapse"]){- document.getElementById("rec_res").textContent = "文本识别结果(Total:" + String(data["total_elapse"]) + "s)"+ document.getElementById("rec_res").textContent = "文 本 检 测 结 果(Total:" + String(data["total_elapse"]) + "s)"$("#rec_res").show();}diff --git a/python/test_images/det_images/en_num.png b/python/test_images/det_images/en_num.pngdeleted file mode 100644index 6ef7767..0000000Binary files a/python/test_images/det_images/en_num.png and /dev/null differdiff --git a/python/test_images/det_images/japan.png b/python/test_images/det_images/japan.pngdeleted file mode 100644index 733c64e..0000000Binary files a/python/test_images/det_images/japan.png and /dev/null differdiff --git a/python/test_images/det_images/korean_1.jpg b/python/test_images/det_images/korean_1.jpgdeleted file mode 100644index 4259c04..0000000Binary files a/python/test_images/det_images/korean_1.jpg and /dev/null differ