π Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
Optim ocrweb/api part.
SWHL354ffd7c8068
diff --git a/ocrweb/api.py b/ocrweb/api.pyindex e9a9009..0b9a4df 100644--- a/ocrweb/api.py+++ b/ocrweb/api.py@@ -6,7 +6,7 @@ from wsgiref.simple_server import make_serverimport cv2import numpy as np-from flask import Flask, render_template, request+from flask import Flask, requestfrom task import detect_recognize@@ -14,11 +14,6 @@ app = Flask(__name__)app.config['MAX_CONTENT_LENGTH'] = 3 * 1024 * 1024[email protected]('/')-def index():- return render_template('index.html')--@app.route('/ocr', methods=['POST'])def ocr():if request.method == 'POST':