Candidate Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.contentmoderator.models.Candidate

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