OcrWord 类
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. computervision. models. OcrWord
- com.
public class OcrWord
有关已识别字词的信息。
方法摘要
| 修饰符和类型 | 方法和描述 |
|---|---|
| String |
boundingBox()
获取 boundingBox 值。 |
| String |
text()
获取文本值。 |
|
Ocr |
withBoundingBox(String boundingBox)
设置 boundingBox 值。 |
|
Ocr |
withText(String text)
设置文本值。 |
方法详细信息
boundingBox
public String boundingBox()
获取 boundingBox 值。
Returns:
boundingBox 值
text
public String text()
获取文本值。
Returns:
文本值
withBoundingBox
public OcrWord withBoundingBox(String boundingBox)
设置 boundingBox 值。
Parameters:
boundingBox
- 要设置的 boundingBox 值
Returns:
OcrWord 对象本身。
withText
public OcrWord withText(String text)
设置文本值。
Parameters:
text
- 要设置的文本值
Returns:
OcrWord 对象本身。