π Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
fix(python): Add the default value of maxsize in lru_cache under python3.7 for compatibility
SWHLf98585952bab
diff --git a/python/rapidocr_onnxruntime/utils/logger.py b/python/rapidocr_onnxruntime/utils/logger.pyindex eb557ea..3592817 100644--- a/python/rapidocr_onnxruntime/utils/logger.py+++ b/python/rapidocr_onnxruntime/utils/logger.py@@ -5,7 +5,7 @@ import loggingfrom functools import lru_cache-@lru_cache+@lru_cache(maxsize=32)def get_logger(name: str):logger = logging.getLogger(name)logger.setLevel(logging.DEBUG)diff --git a/python/rapidocr_openvino/utils/logger.py b/python/rapidocr_openvino/utils/logger.pyindex ffd1cd0..3592817 100644--- a/python/rapidocr_openvino/utils/logger.py+++ b/python/rapidocr_openvino/utils/logger.py@@ -2,8 +2,10 @@# @Author: SWHL# @Contact: [email protected]import logging+from functools import lru_cache+@lru_cache(maxsize=32)def get_logger(name: str):logger = logging.getLogger(name)logger.setLevel(logging.DEBUG)diff --git a/python/rapidocr_paddle/utils/logger.py b/python/rapidocr_paddle/utils/logger.pyindex ffd1cd0..3592817 100644--- a/python/rapidocr_paddle/utils/logger.py+++ b/python/rapidocr_paddle/utils/logger.py@@ -2,8 +2,10 @@# @Author: SWHL# @Contact: [email protected]import logging+from functools import lru_cache+@lru_cache(maxsize=32)def get_logger(name: str):logger = logging.getLogger(name)logger.setLevel(logging.DEBUG)