-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
ImageCaption.java
69 lines (60 loc) · 1.52 KB
/
ImageCaption.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.cognitiveservices.vision.computervision.models;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* An image caption, i.e. a brief description of what the image depicts.
*/
public class ImageCaption {
/**
* The text of the caption.
*/
@JsonProperty(value = "text")
private String text;
/**
* The level of confidence the service has in the caption.
*/
@JsonProperty(value = "confidence")
private double confidence;
/**
* Get the text value.
*
* @return the text value
*/
public String text() {
return this.text;
}
/**
* Set the text value.
*
* @param text the text value to set
* @return the ImageCaption object itself.
*/
public ImageCaption withText(String text) {
this.text = text;
return this;
}
/**
* Get the confidence value.
*
* @return the confidence value
*/
public double confidence() {
return this.confidence;
}
/**
* Set the confidence value.
*
* @param confidence the confidence value to set
* @return the ImageCaption object itself.
*/
public ImageCaption withConfidence(double confidence) {
this.confidence = confidence;
return this;
}
}