未验证 提交 7ce1a6f4 编写于 作者: 文幕地方's avatar 文幕地方 提交者: GitHub

333 (#5687)

* fix re error

* add hit in PPStructure
上级 09de9e4d
...@@ -217,6 +217,8 @@ class PPStructureOutput(OutputBaseOp): ...@@ -217,6 +217,8 @@ class PPStructureOutput(OutputBaseOp):
logger.info(res) logger.info(res)
if self.save_res or self.return_res: if self.save_res or self.return_res:
total_res.append(res) total_res.append(res)
if self.save_img:
logger.info('save img is not support in PPStructure')
if self.save_res: if self.save_res:
res_file_name = 'output.json' res_file_name = 'output.json'
out_path = os.path.join(self.output_dir, res_file_name) out_path = os.path.join(self.output_dir, res_file_name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册