π Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
ζ·»ε θΎε ₯εζ°ζ£ζ₯
AutumnSun199632ade87f972a
diff --git a/ocrweb_multi/main.py b/ocrweb_multi/main.pyindex 694572e..05f7736 100644--- a/ocrweb_multi/main.py+++ b/ocrweb_multi/main.py@@ -50,6 +50,8 @@ def ocr():classify = parse_bool(request.values.get('classify') or 'true')image_file = request.files.get('image')+ if not image_file:+ return json_response({'msg': 'no image'}, 400)nparr = np.frombuffer(image_file.stream.read(), np.uint8)image = cv2.imdecode(nparr, cv2.IMREAD_COLOR)log.info('Input: image %s, lang=%s, detect=%s, classify=%s', image.shape, lang, detect, classify)