Skip to content

πŸ“„ Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

chore(rapidocr_onnxruntime): fix error of getting version number

SWHLf16bd1628361
diff --git a/python/setup_onnxruntime.py b/python/setup_onnxruntime.py
index e8443a5..e9572e9 100644
--- a/python/setup_onnxruntime.py
+++ b/python/setup_onnxruntime.py
@@ -28,7 +28,7 @@ MODULE_NAME = "rapidocr_onnxruntime"
obtainer = GetPyPiLatestVersion()
latest_version = obtainer(MODULE_NAME)
-VERSION_NUM = obtainer.version_add_one(latest_version)
+VERSION_NUM = obtainer.version_add_one(latest_version, add_patch=True)
if len(sys.argv) > 2:
match_str = " ".join(sys.argv[2:])