From ae18273a1abed0c413b57782ebe85aaad0e2e749 Mon Sep 17 00:00:00 2001 From: tink2123 Date: Tue, 23 Jun 2020 16:31:35 +0800 Subject: [PATCH] polish warning --- ppocr/data/rec/img_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ppocr/data/rec/img_tools.py b/ppocr/data/rec/img_tools.py index d6e273cba2..e8ac4622f6 100755 --- a/ppocr/data/rec/img_tools.py +++ b/ppocr/data/rec/img_tools.py @@ -108,8 +108,8 @@ def process_image(img, if len(text) == 0 or len(text) > max_text_length: logger.info( "Warning in ppocr/data/rec/img_tools.py:line106: Wrong data type." - "Excepted string with length between 0 and {}, but " - "got '{}' ".format(max_text_length, label)) + "Excepted string with length between 1 and {}, but " + "got '{}'. Label is '{}'".format(max_text_length, len(text),label)) return None else: if loss_type == "ctc":