{"requestId":"XXXXXXXXXXXXXXXXX","errorCode":"0","Result":{"orientation":"UP","regions":[{"boundingBox":"16,0,739,0,739,58,16,58","dir":"h","lang":"ru","lines":[{"boundingBox":"16,0,256,0,256,23,16,23","text_height":26,"words":[{"boundingBox":"16,0,29,0,29,21,16,22","word":"出"},{"boundingBox":"35,0,113,0,113,22,35,21","word":"l,"},{"boundingBox":"178,0,191,0,191,23,178,23","word":"此"},{"boundingBox":"198,0,256,0,256,22,198,23","word":"egD"}],"text":"出l, 此egD","lang":"zh"},{"boundingBox":"23,17,739,17,739,45,23,45","text_height":26,"words":[{"boundingBox":"23,17,87,17,87,43,23,43","word":"960834"},{"boundingBox":"100,17,171,17,171,43,100,43","word":"2384655"},{"boundingBox":"184,17,255,17,255,43,184,43","word":"0823424"},{"boundingBox":"268,17,339,17,339,43,268,43","word":"2382853"},{"boundingBox":"345,17,423,17,423,43,345,43","word":"8511226"},{"boundingBox":"429,17,501,17,501,43,429,43","word":"9863173"},{"boundingBox":"513,17,584,18,584,44,513,43","word":"8438996"},{"boundingBox":"591,18,656,18,656,44,591,44","word":"4033776"},{"boundingBox":"668,18,739,19,739,45,668,44","word":"2054321"}],"text":"960834 2384655 0823424 2382853 8511226 9863173 8438996 4033776 2054321","lang":"ru"},{"boundingBox":"171,41,185,41,185,58,171,58","text_height":18,"words":[{"boundingBox":"171,41,185,41,185,58,171,58","word":"p"}],"text":"p","lang":"ru"}]}],"exif":"UP","scene":"other"}}
需要取出箭头那9组数字组合起来,怎么取呢?
百d的我知道是这样取
.版本 2
局_JSON.解析 (解码)
局_words_result_num = 局_JSON.取属性数值 (“words_result_num”)
.计次循环首 (局_words_result_num, 局_计次)
局_识别结果 = 局_识别结果 + #换行符 + 局_JSON.取属性 (“words_result”).取成员 (局_计次 - 1, ).取通用属性 (“words”)
.计次循环尾 ()
返回文本 = 局_识别结果
但有道的不知道怎么取。。
补充内容 (2020-10-1 14:31):
有没办法取所有的word或者text,好像大哥们发的都是针对取这一张图的,其他值更多的图片就不行了。 |