提交 3a18b08f 编写于 作者: littletomatodonkey's avatar littletomatodonkey

fix warn

上级 896e5739
...@@ -364,7 +364,7 @@ def process_image(img, ...@@ -364,7 +364,7 @@ def process_image(img,
text = char_ops.encode(label) text = char_ops.encode(label)
if len(text) == 0 or len(text) > max_text_length: if len(text) == 0 or len(text) > max_text_length:
logger.info( 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 " "Excepted string with length between 1 and {}, but "
"got '{}'. Label is '{}'".format(max_text_length, "got '{}'. Label is '{}'".format(max_text_length,
len(text), label)) len(text), label))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册