MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

JSON results example doesn't match script output #60929

Closed al-vincent closed 4 years ago

al-vincent commented 4 years ago

I appreciate that the quickstart is just an example. However, if the code provided is run against the image, the results returned are different to the results displayed in the JSON shown, presumably due to small changes in the image processing algorithms (the words discovered are identical of course, but the bounding boxes are not quite the same). This may confuse users who are not familiar with the Read API.


Document details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

mikeurnun commented 4 years ago

@al-vincent Thank you for your feedback! We will review and update as appropriate.

YutongTie-MSFT commented 4 years ago

@al-vincent Thanks a lot for the feedback. Since this is not an error, I will attach this to the author for reference.

We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.

@PatrickFarley Hi Patrick, hope we can add more explanation for the JSON result for new user. Thanks.

{ { "status": "succeeded", "createdDateTime": "2020-08-19T22:41:04Z", "lastUpdatedDateTime": "2020-08-19T22:41:05Z", "analyzeResult": { "version": "3.0.0", "readResults": [ { "page": 1, "angle": 0.6856, "width": 2661, "height": 1901, "unit": "pixel", "lines": [ { "boundingBox": [ 38, 650, 2572, 699, 2570, 854, 37, 815 ], "text": "The quick brown fox jumps", "words": [ { "boundingBox": [ 116, 654, 478, 672, 477, 819, 115, 818 ], "text": "The", "confidence": 0.984 }, { "boundingBox": [ 533, 675, 1005, 692, 1004, 823, 532, 819 ], "text": "quick", "confidence": 0.967 }, { "boundingBox": [ 1137, 697, 1620, 707, 1620, 833, 1136, 825 ], "text": "brown", "confidence": 0.973 }, { "boundingBox": [ 1653, 707, 2016, 711, 2015, 841, 1653, 833 ], "text": "fox", "confidence": 0.559 }, { "boundingBox": [ 2049, 712, 2565, 711, 2565, 854, 2048, 842 ], "text": "jumps", "confidence": 0.978 } ] }, { "boundingBox": [ 184, 1053, 508, 1044, 510, 1123, 184, 1128 ], "text": "over", "words": [ { "boundingBox": [ 221, 1058, 506, 1045, 510, 1125, 221, 1128 ], "text": "over", "confidence": 0.835 } ] }, { "boundingBox": [ 639, 1011, 1976, 1026, 1974, 1158, 637, 1141 ], "text": "the lazy dog!", "words": [ { "boundingBox": [ 669, 1012, 967, 1012, 967, 1144, 668, 1127 ], "text": "the", "confidence": 0.985 }, { "boundingBox": [ 1087, 1012, 1504, 1018, 1506, 1158, 1087, 1149 ], "text": "lazy", "confidence": 0.981 }, { "boundingBox": [ 1661, 1021, 1974, 1029, 1976, 1156, 1663, 1158 ], "text": "dog!", "confidence": 0.559 } ] } ] } ] } }