Candidate Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. contentmoderator. models. Candidate
- com.
public class Candidate
OCR candidate text.
Method Summary
Modifier and Type | Method and Description |
---|---|
Double |
confidence()
Get the confidence value. |
String |
text()
Get the text value. |
Candidate |
withConfidence(Double confidence)
Set the confidence value. |
Candidate |
withText(String text)
Set the text value. |
Method Details
confidence
public Double confidence()
Get the confidence value.
Returns:
the confidence value
text
public String text()
Get the text value.
Returns:
the text value
withConfidence
public Candidate withConfidence(Double confidence)
Set the confidence value.
Parameters:
confidence
- the confidence value to set
Returns:
the Candidate object itself.
withText
public Candidate withText(String text)
Set the text value.
Parameters:
text
- the text value to set
Returns:
the Candidate object itself.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java