diff --git a/python/rapidocr_onnxruntime/main.py b/python/rapidocr_onnxruntime/main.py index e967f20a4..0568036ea 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")