关于Result对象,是否有方法直接返回结果字典? #15306
Replies: 1 comment
-
哦,我找到答案了。可以用res_ = res.json 得到这个结果字典。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
感谢paddleocr这么好的开源项目。我想问下是否有方法可以直接获取到Result对象的结果字典?
print()是打印结果到终端;
save_to_json()是将结果保存为json格式的文件;
save_to_img()是将结果保存为图像格式的文件;
我是需要对这个结果进行解析,所以既不需要打印,也不需要保存,只需要能将结果字典返回至一个变量中即可。就像res_ = res.print(),这个print()能将值返回给一个变量就行,而不是仅打印无返回值。
Beta Was this translation helpful? Give feedback.
All reactions