diff --git a/ppocr/data/rec/img_tools.py b/ppocr/data/rec/img_tools.py index 8b497e6b803ba0fffaefc3e12c366130504b9ce0..3c33cddb884ff2c1d93185914d9d3bf4bee24f89 100755 --- a/ppocr/data/rec/img_tools.py +++ b/ppocr/data/rec/img_tools.py @@ -339,6 +339,7 @@ def warp(img, ang): def process_image(img, + img_path, image_shape, label=None, char_ops=None, @@ -362,8 +363,8 @@ def process_image(img, logger.info( "Warning in ppocr/data/rec/img_tools.py: Wrong data type." "Excepted string with length between 1 and {}, but " - "got '{}'. Label is '{}'".format(max_text_length, - len(text), label)) + "got '{}'. The image path is '{}'. Label is '{}'".format(max_text_length, + len(text), img_path, label)) return None else: if loss_type == "ctc":