次の方法で共有


Word クラス

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

public class Word

認識された単語を表す オブジェクト。

メソッドの概要

修飾子と型 メソッドと説明
List<Double> boundingBox()

boundingBox 値を取得します。

double confidence()

信頼度の値を取得します。

String text()

テキスト値を取得します。

Word withBoundingBox(List<Double> boundingBox)

boundingBox 値を設定します。

Word withConfidence(double confidence)

信頼度の値を設定します。

Word withText(String text)

テキスト値を設定します。

メソッドの詳細

boundingBox

public List boundingBox()

boundingBox 値を取得します。

Returns:

boundingBox 値

confidence

public double confidence()

信頼度の値を取得します。

Returns:

信頼度の値

text

public String text()

テキスト値を取得します。

Returns:

テキスト値

withBoundingBox

public Word withBoundingBox(List boundingBox)

boundingBox 値を設定します。

Parameters:

boundingBox - 設定する boundingBox 値

Returns:

Word オブジェクト自体。

withConfidence

public Word withConfidence(double confidence)

信頼度の値を設定します。

Parameters:

confidence - 設定する信頼度値

Returns:

Word オブジェクト自体。

withText

public Word withText(String text)

テキスト値を設定します。

Parameters:

text - 設定するテキスト値

Returns:

Word オブジェクト自体。

適用対象