Word クラス
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. computervision. models. Word
- com.
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 値を取得します。
Returns:
boundingBox 値
confidence
public double confidence()
信頼度の値を取得します。
Returns:
信頼度の値
text
public String text()
テキスト値を取得します。
Returns:
テキスト値
withBoundingBox
public Word withBoundingBox(List
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 オブジェクト自体。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for Java