Candidate 类
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. contentmoderator. models. Candidate
- com.
public class Candidate
OCR 候选文本。
方法摘要
| 修饰符和类型 | 方法和描述 |
|---|---|
| Double |
confidence()
获取置信度值。 |
| String |
text()
获取文本值。 |
| Candidate |
withConfidence(Double confidence)
设置置信度值。 |
| Candidate |
withText(String text)
设置文本值。 |
方法详细信息
confidence
public Double confidence()
获取置信度值。
Returns:
置信度值
text
public String text()
获取文本值。
Returns:
文本值
withConfidence
public Candidate withConfidence(Double confidence)
设置置信度值。
Parameters:
confidence
- 要设置的置信度值
Returns:
候选对象本身。
withText
public Candidate withText(String text)
设置文本值。
Parameters:
text
- 要设置的文本值
Returns:
候选对象本身。