共用方式為


Word Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.computervision.models.Word

public class Word

An object representing a recognized word.

Method Summary

Modifier and Type Method and Description
List<Double> boundingBox()

Get the boundingBox value.

double confidence()

Get the confidence value.

String text()

Get the text value.

Word withBoundingBox(List<Double> boundingBox)

Set the boundingBox value.

Word withConfidence(double confidence)

Set the confidence value.

Word withText(String text)

Set the text value.

Method Details

boundingBox

public List boundingBox()

Get the boundingBox value.

Returns:

the boundingBox value

confidence

public double confidence()

Get the confidence value.

Returns:

the confidence value

text

public String text()

Get the text value.

Returns:

the text value

withBoundingBox

public Word withBoundingBox(List boundingBox)

Set the boundingBox value.

Parameters:

boundingBox - the boundingBox value to set

Returns:

the Word object itself.

withConfidence

public Word withConfidence(double confidence)

Set the confidence value.

Parameters:

confidence - the confidence value to set

Returns:

the Word object itself.

withText

public Word withText(String text)

Set the text value.

Parameters:

text - the text value to set

Returns:

the Word object itself.

Applies to