π Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
chore(rapidocr_onnxruntime): Add logger cache to reduce print nums
SWHL5891ba21424f
diff --git a/python/rapidocr_onnxruntime/utils/logger.py b/python/rapidocr_onnxruntime/utils/logger.pyindex ffd1cd0..eb557ea 100644--- a/python/rapidocr_onnxruntime/utils/logger.py+++ b/python/rapidocr_onnxruntime/utils/logger.py@@ -2,8 +2,10 @@# @Author: SWHL# @Contact: [email protected]import logging+from functools import lru_cache+@lru_cachedef get_logger(name: str):logger = logging.getLogger(name)logger.setLevel(logging.DEBUG)