π Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
Optim code.
SWHL4b29a7651d0c
diff --git a/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_rec/utils.py b/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_rec/utils.pyindex 0a11e42..1938404 100644--- a/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_rec/utils.py+++ b/ocrweb/rapidocr_onnxruntime/ch_ppocr_v3_rec/utils.py@@ -139,5 +139,5 @@ class CTCLabelDecode(object):else:conf_list.append(1)text = ''.join(char_list)- result_list.append((text, np.mean(conf_list + [1e-50] )))+ result_list.append((text, np.mean(conf_list + [1e-50])))return result_listdiff --git a/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/utils.py b/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/utils.pyindex 0a11e42..1938404 100644--- a/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/utils.py+++ b/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/utils.py@@ -139,5 +139,5 @@ class CTCLabelDecode(object):else:conf_list.append(1)text = ''.join(char_list)- result_list.append((text, np.mean(conf_list + [1e-50] )))+ result_list.append((text, np.mean(conf_list + [1e-50])))return result_listdiff --git a/python/rapidocr_openvino/ch_ppocr_v3_rec/utils.py b/python/rapidocr_openvino/ch_ppocr_v3_rec/utils.pyindex c53c224..e671f6e 100644--- a/python/rapidocr_openvino/ch_ppocr_v3_rec/utils.py+++ b/python/rapidocr_openvino/ch_ppocr_v3_rec/utils.py@@ -93,5 +93,5 @@ class CTCLabelDecode(object):else:conf_list.append(1)text = ''.join(char_list)- result_list.append((text, np.mean(conf_list + [1e-50] )))+ result_list.append((text, np.mean(conf_list + [1e-50])))return result_list