From c3504c2f7d3a95a338e961ef7e0815aa54919124 Mon Sep 17 00:00:00 2001 From: SWHL Date: Thu, 17 Oct 2024 22:51:03 +0800 Subject: [PATCH] chore: Compatible with python 3.7 --- python/rapidocr_onnxruntime/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/rapidocr_onnxruntime/main.py b/python/rapidocr_onnxruntime/main.py index e967f20a..0568036e 100644 --- a/python/rapidocr_onnxruntime/main.py +++ b/python/rapidocr_onnxruntime/main.py @@ -238,7 +238,7 @@ def _get_origin_points( raw_w: int, ) -> np.ndarray: dt_boxes_array = np.array(dt_boxes) - for op in list(reversed(op_record.keys())): + for op in reversed(list(op_record.keys())): v = op_record[op] if "padding" in op: top, left = v.get("top"), v.get("left")