Skip to content

Commit 500b46f

Browse files
committed
add output section
1 parent 1edccf2 commit 500b46f

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

articles/cognitive-services/Computer-vision/includes/quickstarts-sdk/image-analysis-java-sdk.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Use the Image Analysis client library to analyze a remote image for tags, text d
6969
mavenCentral()
7070
}
7171
dependencies {
72-
implementation(group = "com.microsoft.azure.cognitiveservices", name = "azure-cognitiveservices-computervision", version = "1.0.6-beta")
72+
implementation(group = "com.microsoft.azure.cognitiveservices", name = "azure-cognitiveservices-computervision", version = "1.0.9-beta")
7373
}
7474
```
7575

@@ -109,6 +109,37 @@ Use the Image Analysis client library to analyze a remote image for tags, text d
109109
gradle run
110110
```
111111

112+
## Output
113+
114+
```console
115+
Azure Cognitive Services Computer Vision - Java Quickstart Sample
116+
117+
Analyzing an image from a URL ...
118+
119+
Tags:
120+
'person' with confidence 0.998895
121+
'human face' with confidence 0.997437
122+
'smile' with confidence 0.991973
123+
'outdoor' with confidence 0.985962
124+
'happy' with confidence 0.969785
125+
'clothing' with confidence 0.961570
126+
'friendship' with confidence 0.946441
127+
'tree' with confidence 0.917331
128+
'female person' with confidence 0.890976
129+
'girl' with confidence 0.888741
130+
'social group' with confidence 0.872044
131+
'posing' with confidence 0.865493
132+
'adolescent' with confidence 0.857371
133+
'love' with confidence 0.852553
134+
'laugh' with confidence 0.850097
135+
'people' with confidence 0.849922
136+
'lady' with confidence 0.844540
137+
'woman' with confidence 0.818172
138+
'group' with confidence 0.792975
139+
'wedding' with confidence 0.615252
140+
'dress' with confidence 0.517169
141+
```
142+
112143
## Clean up resources
113144

114145
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.

articles/cognitive-services/Computer-vision/includes/quickstarts-sdk/java-sdk.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,29 @@ Use the OCR client library to read printed and handwritten text from a remote im
109109
gradle run
110110
```
111111

112+
## Output
113+
114+
```console
115+
Operation Location:https://pafarley-computer-vision.cognitiveservices.azure.com/vision/v3.2/read/analyzeResults/c6755b9a-1b37-4a0a-9497-d4483fce670a
116+
Polling for Read results ...
117+
118+
Printing Read results for page 1
119+
Nutrition Facts Amount Per Serving
120+
Serving size: 1 bar (40g)
121+
Serving Per Package: 4
122+
Total Fat 13g
123+
Saturated Fat 1.5g
124+
Amount Per Serving
125+
Trans Fat 0g
126+
alories 190
127+
Cholesterol Omg
128+
ories from Fat 110
129+
Sodium 20mg
130+
nt Daily Values are based on
131+
Vitamin A 50%
132+
calorie diet
133+
```
134+
112135
## Clean up resources
113136

114137
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.

0 commit comments

Comments
 (0)