图片和json的关系 #18148
Unanswered
mengjianjian
asked this question in
Q&A
图片和json的关系
#18148
Replies: 1 comment
|
二者不等价,作用也不同:
因此,如果“图片里有、JSON 里没有”的是某段原始文字,建议依次检查: for res in result:
data = res.json["res"]
print("检测框数量:", len(data.get("dt_polys", [])))
print("检测分数:", data.get("dt_scores"))
print("识别文字:", data.get("rec_texts"))
print("识别分数:", data.get("rec_scores"))
当前文档也明确说明: |
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.
res.save_to_img("output")


res.save_to_json("output")
这个输出的json和图片之间是等价的吗?
图片感觉是百分之百还原了,但是有的数据json里面没有。
All reactions