未验证 提交 788e1fa0 编写于 作者: S shaohua.zhang 提交者: GitHub

add a param for func: process_image

上级 6e98c2b5
......@@ -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":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册