Merge pull request #260 from tink2123/polish_warning

polish warning
This commit is contained in:
Double_V 2020-06-23 16:41:59 +08:00 committed by GitHub
commit 514fd0d1ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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":