📄 Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
Update README
SWHL0a9254723d61
diff --git a/docs/doc_whl_rapidocr_ort.md b/docs/doc_whl_rapidocr_ort.mdindex 3b61d3c..144c7f4 100644--- a/docs/doc_whl_rapidocr_ort.md+++ b/docs/doc_whl_rapidocr_ort.md@@ -20,25 +20,26 @@ $ pip install rapidocr-onnxruntimeimg_path = 'tests/test_files/ch_en_num.jpg'+ # Support:Union[str, np.ndarray, bytes, Path]# str- result = rapid_ocr(img_path)+ result, elapse = rapid_ocr(img_path)# np.ndarrayimg = cv2.imread('tests/test_files/ch_en_num.jpg')- result = rapid_ocr(img)+ result, elapse = rapid_ocr(img)# byteswith open(img_path, 'rb') as f:- result = rapid_ocr(f.read())+ result, elapse = rapid_ocr(f.read())# Path- result = rapid_ocr(Path(img_path))+ result, elapse = rapid_ocr(Path(img_path))print(result)# result: [[dt_boxes], txt, score]- # 示例:[[左上, 右上, 右下, 左下], '小明', '0.99']+ # e.g.:[[left-top, right-top, right-down, left-top], '小明', '0.99']- # elapse_list: [det_elapse, cls_elapse, rec_elapse]+ # elapse: [det_elapse, cls_elapse, rec_elapse]# all_elapse = det_elapse + cls_elapse + rec_elapse# If without valid texts, result: (None, None )diff --git a/docs/doc_whl_rapidocr_vino.md b/docs/doc_whl_rapidocr_vino.mdindex 9f09b9b..a977757 100644--- a/docs/doc_whl_rapidocr_vino.md+++ b/docs/doc_whl_rapidocr_vino.md@@ -21,28 +21,29 @@ $ pip install rapidocr-openvinoimg_path = 'tests/test_files/ch_en_num.jpg'+ # Support:Union[str, np.ndarray, bytes, Path]# str- result = rapid_ocr(img_path)+ result, elapse = rapid_ocr(img_path)# np.ndarrayimg = cv2.imread('tests/test_files/ch_en_num.jpg')- result = rapid_ocr(img)+ result, elapse = rapid_ocr(img)# byteswith open(img_path, 'rb') as f:- result = rapid_ocr(f.read())+ result, elapse = rapid_ocr(f.read())# Path- result = rapid_ocr(Path(img_path))+ result, elapse = rapid_ocr(Path(img_path))print(result)# result: [[dt_boxes], txt, score]- # 示例:[[左上, 右上, 右下, 左下], '小明', '0.99']+ # e.g.:[[left-top, right-top, right-down, left-top], '小明', '0.99']- # elapse_list: [det_elapse, cls_elapse, rec_elapse]+ # elapse: [det_elapse, cls_elapse, rec_elapse]# all_elapse = det_elapse + cls_elapse + rec_elapse- # If without valid texts, result: (None, None)+ # If without valid texts, result: (None, None )```- Run by command line.diff --git a/python/README.md b/python/README.mdindex 6c13213..068d046 100755--- a/python/README.md+++ b/python/README.md@@ -69,23 +69,26 @@# 支持四种格式的输入:Union[str, np.ndarray, bytes, Path]# str- result = rapid_ocr(img_path)+ result, elapse = rapid_ocr(img_path)# np.ndarrayimg = cv2.imread('tests/test_files/ch_en_num.jpg')- result = rapid_ocr(img)+ result, elapse = rapid_ocr(img)# byteswith open(img_path, 'rb') as f:- result = rapid_ocr(f.read())+ result, elapse = rapid_ocr(f.read())# Path- result = rapid_ocr(Path(img_path))+ result, elapse = rapid_ocr(Path(img_path))print(result)# result: [[文本框坐标], 文本内容, 置信度]# 示例:[[左上, 右上, 右下, 左下], '小明', '0.99']+ # elapse: [det_elapse, cls_elapse, rec_elapse]+ # all_elapse = det_elapse + cls_elapse + rec_elapse+# 如果没有有效文本,则result: (None, None)```- 命令行使用: