From 3a18b08fc5735a7735f0119cdd385884ad95a6c6 Mon Sep 17 00:00:00 2001 From: littletomatodonkey Date: Wed, 23 Sep 2020 07:25:55 +0000 Subject: [PATCH] fix warn --- ppocr/data/rec/img_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppocr/data/rec/img_tools.py b/ppocr/data/rec/img_tools.py index 4d51f7ee..0eeb2c4d 100755 --- a/ppocr/data/rec/img_tools.py +++ b/ppocr/data/rec/img_tools.py @@ -364,7 +364,7 @@ def process_image(img, text = char_ops.encode(label) if len(text) == 0 or len(text) > max_text_length: logger.info( - "Warning in ppocr/data/rec/img_tools.py:line362: Wrong data type." + "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)) -- GitLab