Skip to content

Commit 6abbfcb

Browse files
committed
use read instead of tags
1 parent 2daf101 commit 6abbfcb

File tree

1 file changed

+98
-102
lines changed

1 file changed

+98
-102
lines changed

articles/cognitive-services/Computer-vision/includes/image-analysis-curl-quickstart-40.md

Lines changed: 98 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ To analyze an image for various visual features, do the following steps:
3737
1. Copy the following `curl` command into a text editor.
3838

3939
```bash
40-
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://<endpoint>/computervision/imageanalysis:analyze?features=caption,tags&model-version=latest&language=en&api-version=2023-02-01-preview" -d "{'url':'https://learn.microsoft.com/azure/cognitive-services/computer-vision/media/quickstarts/presentation.png'}"
40+
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://<endpoint>/computervision/imageanalysis:analyze?features=caption,read&model-version=latest&language=en&api-version=2023-02-01-preview" -d "{'url':'https://learn.microsoft.com/azure/cognitive-services/computer-vision/media/quickstarts/presentation.png'}"
4141
```
4242

4343
1. Make the following changes in the command where needed:
@@ -57,107 +57,103 @@ A successful response is returned in JSON. The sample application parses and dis
5757

5858
```json
5959
{
60-
"captionResult": {
61-
"text": "a man pointing at a screen",
62-
"confidence": 0.489955872297287
63-
},
64-
"modelVersion": "2023-02-01-preview",
65-
"metadata": {
66-
"width": 1038,
67-
"height": 692
68-
},
69-
"tagsResult": {
70-
"values": [
71-
{
72-
"name": "text",
73-
"confidence": 0.9966012239456177
74-
},
75-
{
76-
"name": "clothing",
77-
"confidence": 0.9801060557365418
78-
},
79-
{
80-
"name": "person",
81-
"confidence": 0.9596296548843384
82-
},
83-
{
84-
"name": "display device",
85-
"confidence": 0.9490274786949158
86-
},
87-
{
88-
"name": "indoor",
89-
"confidence": 0.947483241558075
90-
},
91-
{
92-
"name": "wall",
93-
"confidence": 0.9395941495895386
94-
},
95-
{
96-
"name": "media",
97-
"confidence": 0.9306115508079529
98-
},
99-
{
100-
"name": "television set",
101-
"confidence": 0.9280922412872315
102-
},
103-
{
104-
"name": "led-backlit lcd display",
105-
"confidence": 0.9254804849624634
106-
},
107-
{
108-
"name": "flat panel display",
109-
"confidence": 0.9209464192390442
110-
},
111-
{
112-
"name": "furniture",
113-
"confidence": 0.9132548570632935
114-
},
115-
{
116-
"name": "lcd tv",
117-
"confidence": 0.895058274269104
118-
},
119-
{
120-
"name": "man",
121-
"confidence": 0.8883916735649109
122-
},
123-
{
124-
"name": "television",
125-
"confidence": 0.8766454458236694
126-
},
127-
{
128-
"name": "video",
129-
"confidence": 0.8746980428695679
130-
},
131-
{
132-
"name": "multimedia",
133-
"confidence": 0.8719364404678345
134-
},
135-
{
136-
"name": "output device",
137-
"confidence": 0.8585700988769531
138-
},
139-
{
140-
"name": "computer monitor",
141-
"confidence": 0.844162106513977
142-
},
143-
{
144-
"name": "table",
145-
"confidence": 0.8429560661315918
146-
},
147-
{
148-
"name": "screen",
149-
"confidence": 0.7113153338432312
150-
},
151-
{
152-
"name": "standing",
153-
"confidence": 0.7051211595535278
154-
},
155-
{
156-
"name": "design",
157-
"confidence": 0.40424615144729617
158-
}
159-
]
160-
}
60+
"captionResult":
61+
{
62+
"text": "a man pointing at a screen",
63+
"confidence": 0.4891590476036072
64+
},
65+
"modelVersion": "2023-02-01-preview",
66+
"metadata":
67+
{
68+
"width": 1038,
69+
"height": 692
70+
},
71+
"readResult":
72+
{
73+
"stringIndexType": "TextElements",
74+
"content": "9:35 AM\nE Conference room 154584354\n#: 555-173-4547\nTown Hall\n9:00 AM - 10:00 AM\nAaron Buaion\nDaily SCRUM\n10:00 AM 11:00 AM\nChurlette de Crum\nQuarterly NI Hands\n11.00 AM-12:00 PM\nBebek Shaman\nWeekly stand up\n12:00 PM-1:00 PM\nDelle Marckre\nProduct review",
75+
"pages":
76+
[
77+
{
78+
"height": 692,
79+
"width": 1038,
80+
"angle": 0.3048,
81+
"pageNumber": 1,
82+
"words":
83+
[
84+
{"content":"9:35","boundingBox":[131,130,171,130,171,149,130,149],"confidence":0.993,"span":{"offset":0,"length":4}},
85+
{"content":"AM","boundingBox":[179,130,204,130,203,149,178,149],"confidence":0.998,"span":{"offset":5,"length":2}},
86+
{"content":"E","boundingBox":[131,154,135,154,135,161,131,161],"confidence":0.104,"span":{"offset":8,"length":1}},
87+
{"content":"Conference","boundingBox":[142,154,174,154,173,161,141,161],"confidence":0.902,"span":{"offset":10,"length":10}},
88+
{"content":"room","boundingBox":[175,154,189,155,188,161,175,161],"confidence":0.796,"span":{"offset":21,"length":4}},
89+
{"content":"154584354","boundingBox":[192,155,224,154,223,162,191,161],"confidence":0.864,"span":{"offset":26,"length":9}},
90+
{"content":"#:","boundingBox":[131,163,139,164,139,171,131,171],"confidence":0.036,"span":{"offset":36,"length":2}},
91+
{"content":"555-173-4547","boundingBox":[142,164,182,165,181,171,142,171],"confidence":0.597,"span":{"offset":39,"length":12}},
92+
{"content":"Town","boundingBox":[547,181,568,181,568,190,546,191],"confidence":0.981,"span":{"offset":52,"length":4}},
93+
{"content":"Hall","boundingBox":[570,181,590,181,590,191,570,190],"confidence":0.991,"span":{"offset":57,"length":4}},
94+
{"content":"9:00","boundingBox":[546,192,555,192,555,200,546,200],"confidence":0.09,"span":{"offset":62,"length":4}},
95+
{"content":"AM","boundingBox":[557,192,565,192,565,200,557,200],"confidence":0.991,"span":{"offset":67,"length":2}},
96+
{"content":"-","boundingBox":[567,192,569,192,569,200,567,200],"confidence":0.691,"span":{"offset":70,"length":1}},
97+
{"content":"10:00","boundingBox":[570,192,585,193,584,200,570,200],"confidence":0.885,"span":{"offset":72,"length":5}},
98+
{"content":"AM","boundingBox":[586,193,593,194,593,200,586,200],"confidence":0.991,"span":{"offset":78,"length":2}},
99+
{"content":"Aaron","boundingBox":[545,202,560,202,559,208,544,208],"confidence":0.602,"span":{"offset":81,"length":5}},
100+
{"content":"Buaion","boundingBox":[561,202,580,202,579,208,560,208],"confidence":0.291,"span":{"offset":87,"length":6}},
101+
{"content":"Daily","boundingBox":[538,259,551,260,550,266,538,265],"confidence":0.175,"span":{"offset":94,"length":5}},
102+
{"content":"SCRUM","boundingBox":[552,260,570,260,570,266,551,266],"confidence":0.114,"span":{"offset":100,"length":5}},
103+
{"content":"10:00","boundingBox":[539,267,553,267,552,273,538,272],"confidence":0.857,"span":{"offset":106,"length":5}},
104+
{"content":"AM","boundingBox":[554,267,561,267,560,273,553,273],"confidence":0.998,"span":{"offset":112,"length":2}},
105+
{"content":"11:00","boundingBox":[564,267,578,267,577,273,563,273],"confidence":0.479,"span":{"offset":115,"length":5}},
106+
{"content":"AM","boundingBox":[579,267,586,267,585,273,578,273],"confidence":0.994,"span":{"offset":121,"length":2}},
107+
{"content":"Churlette","boundingBox":[539,274,562,274,561,279,538,279],"confidence":0.464,"span":{"offset":124,"length":9}},
108+
{"content":"de","boundingBox":[563,274,569,274,568,279,562,279],"confidence":0.81,"span":{"offset":134,"length":2}},
109+
{"content":"Crum","boundingBox":[570,274,582,273,581,279,569,279],"confidence":0.885,"span":{"offset":137,"length":4}},
110+
{"content":"Quarterly","boundingBox":[540,296,562,296,562,302,539,302],"confidence":0.523,"span":{"offset":142,"length":9}},
111+
{"content":"NI","boundingBox":[563,296,570,296,570,302,563,302],"confidence":0.303,"span":{"offset":152,"length":2}},
112+
{"content":"Hands","boundingBox":[572,296,588,296,588,302,571,302],"confidence":0.613,"span":{"offset":155,"length":5}},
113+
{"content":"11.00","boundingBox":[538,304,552,304,552,310,538,310],"confidence":0.618,"span":{"offset":161,"length":5}},
114+
{"content":"AM-12:00","boundingBox":[554,304,578,304,577,310,553,310],"confidence":0.27,"span":{"offset":167,"length":8}},
115+
{"content":"PM","boundingBox":[579,304,586,304,586,309,578,310],"confidence":0.662,"span":{"offset":176,"length":2}},
116+
{"content":"Bebek","boundingBox":[539,310,554,310,554,317,539,316],"confidence":0.611,"span":{"offset":179,"length":5}},
117+
{"content":"Shaman","boundingBox":[555,310,576,311,576,317,555,317],"confidence":0.605,"span":{"offset":185,"length":6}},
118+
{"content":"Weekly","boundingBox":[538,332,557,333,556,339,538,338],"confidence":0.606,"span":{"offset":192,"length":6}},
119+
{"content":"stand","boundingBox":[558,333,572,334,571,340,557,339],"confidence":0.489,"span":{"offset":199,"length":5}},
120+
{"content":"up","boundingBox":[574,334,580,334,580,340,573,340],"confidence":0.815,"span":{"offset":205,"length":2}},
121+
{"content":"12:00","boundingBox":[539,341,553,341,552,347,538,347],"confidence":0.826,"span":{"offset":208,"length":5}},
122+
{"content":"PM-1:00","boundingBox":[554,341,575,341,574,347,553,347],"confidence":0.209,"span":{"offset":214,"length":7}},
123+
{"content":"PM","boundingBox":[576,341,583,341,582,347,575,347],"confidence":0.039,"span":{"offset":222,"length":2}},
124+
{"content":"Delle","boundingBox":[540,348,559,347,558,353,539,353],"confidence":0.58,"span":{"offset":225,"length":5}},
125+
{"content":"Marckre","boundingBox":[560,347,582,348,582,353,559,353],"confidence":0.275,"span":{"offset":231,"length":7}},
126+
{"content":"Product","boundingBox":[539,370,559,371,558,376,539,376],"confidence":0.615,"span":{"offset":239,"length":7}},
127+
{"content":"review","boundingBox":[560,371,576,371,575,376,559,376],"confidence":0.04,"span":{"offset":247,"length":6}}
128+
],
129+
"spans":
130+
[
131+
{"offset":0,"length":253}
132+
],
133+
"lines":
134+
[
135+
{"content":"9:35 AM","boundingBox":[130,129,215,130,215,149,130,148],"spans":[{"offset":0,"length":7}]},
136+
{"content":"E Conference room 154584354","boundingBox":[130,153,224,154,224,161,130,161],"spans":[{"offset":8,"length":27}]},
137+
{"content":"#: 555-173-4547","boundingBox":[130,163,182,164,181,171,130,170],"spans":[{"offset":36,"length":15}]},
138+
{"content":"Town Hall","boundingBox":[546,180,590,180,590,190,546,190],"spans":[{"offset":52,"length":9}]},
139+
{"content":"9:00 AM - 10:00 AM","boundingBox":[546,191,596,192,596,200,546,199],"spans":[{"offset":62,"length":18}]},
140+
{"content":"Aaron Buaion","boundingBox":[543,201,581,201,581,208,543,208],"spans":[{"offset":81,"length":12}]},
141+
{"content":"Daily SCRUM","boundingBox":[537,259,575,260,575,266,537,265],"spans":[{"offset":94,"length":11}]},
142+
{"content":"10:00 AM 11:00 AM","boundingBox":[536,266,590,266,590,272,536,272],"spans":[{"offset":106,"length":17}]},
143+
{"content":"Churlette de Crum","boundingBox":[538,273,584,273,585,279,538,279],"spans":[{"offset":124,"length":17}]},
144+
{"content":"Quarterly NI Hands","boundingBox":[538,295,588,295,588,301,538,302],"spans":[{"offset":142,"length":18}]},
145+
{"content":"11.00 AM-12:00 PM","boundingBox":[536,304,588,303,588,309,536,310],"spans":[{"offset":161,"length":17}]},
146+
{"content":"Bebek Shaman","boundingBox":[538,310,577,310,577,316,538,316],"spans":[{"offset":179,"length":12}]},
147+
{"content":"Weekly stand up","boundingBox":[537,332,582,333,582,339,537,338],"spans":[{"offset":192,"length":15}]},
148+
{"content":"12:00 PM-1:00 PM","boundingBox":[537,340,583,340,583,347,536,346],"spans":[{"offset":208,"length":16}]},
149+
{"content":"Delle Marckre","boundingBox":[538,347,582,347,582,352,538,353],"spans":[{"offset":225,"length":13}]},
150+
{"content":"Product review","boundingBox":[538,370,577,370,577,376,538,375],"spans":[{"offset":239,"length":14}]}
151+
]
152+
}
153+
],
154+
"styles": [],
155+
"modelVersion": "2022-04-30"
156+
}
161157
}
162158
```
163159

0 commit comments

Comments
 (0)