Aracılığıyla paylaş


CaptionResult Class

  • java.lang.Object
    • com.azure.ai.vision.imageanalysis.models.CaptionResult

public final class CaptionResult

Represents a generated phrase that describes the content of the whole image.

Method Summary

Modifier and Type Method and Description
double getConfidence()

Get the confidence property: A score, in the range of 0 to 1 (inclusive), representing the confidence that this description is accurate.

String getText()

Get the text property: The text of the caption.

Methods inherited from java.lang.Object

Method Details

getConfidence

public double getConfidence()

Get the confidence property: A score, in the range of 0 to 1 (inclusive), representing the confidence that this description is accurate. Higher values indicating higher confidence.

Returns:

the confidence value.

getText

public String getText()

Get the text property: The text of the caption.

Returns:

the text value.

Applies to