public class TextDetection extends AbstractModel
Constructor and Description |
---|
TextDetection() |
TextDetection(TextDetection source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getAdvancedInfo()
Get 此字段为扩展字段。
GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
|
Long |
getConfidence()
Get 置信度 0 ~100
|
String |
getDetectedText()
Get 识别出的文本行内容
|
ItemCoord |
getItemPolygon()
Get 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
|
Coord[] |
getPolygon()
Get 文本行坐标,以四个顶点坐标表示
注意:此字段可能返回 null,表示取不到有效值。
|
DetectedWordCoordPoint[] |
getWordCoordPoint()
Get 单字在原图中的四点坐标, 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR
|
DetectedWords[] |
getWords()
Get 识别出来的单字信息包括单字(包括单字Character和单字置信度confidence), 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR
|
void |
setAdvancedInfo(String AdvancedInfo)
Set 此字段为扩展字段。
GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
|
void |
setConfidence(Long Confidence)
Set 置信度 0 ~100
|
void |
setDetectedText(String DetectedText)
Set 识别出的文本行内容
|
void |
setItemPolygon(ItemCoord ItemPolygon)
Set 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
|
void |
setPolygon(Coord[] Polygon)
Set 文本行坐标,以四个顶点坐标表示
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setWordCoordPoint(DetectedWordCoordPoint[] WordCoordPoint)
Set 单字在原图中的四点坐标, 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR
|
void |
setWords(DetectedWords[] Words)
Set 识别出来的单字信息包括单字(包括单字Character和单字置信度confidence), 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public TextDetection()
public TextDetection(TextDetection source)
public String getDetectedText()
public void setDetectedText(String DetectedText)
DetectedText
- 识别出的文本行内容public Long getConfidence()
public void setConfidence(Long Confidence)
Confidence
- 置信度 0 ~100public Coord[] getPolygon()
public void setPolygon(Coord[] Polygon)
Polygon
- 文本行坐标,以四个顶点坐标表示
注意:此字段可能返回 null,表示取不到有效值。public String getAdvancedInfo()
public void setAdvancedInfo(String AdvancedInfo)
AdvancedInfo
- 此字段为扩展字段。
GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。public ItemCoord getItemPolygon()
public void setItemPolygon(ItemCoord ItemPolygon)
ItemPolygon
- 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)public DetectedWords[] getWords()
public void setWords(DetectedWords[] Words)
Words
- 识别出来的单字信息包括单字(包括单字Character和单字置信度confidence), 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCRpublic DetectedWordCoordPoint[] getWordCoordPoint()
public void setWordCoordPoint(DetectedWordCoordPoint[] WordCoordPoint)
WordCoordPoint
- 单字在原图中的四点坐标, 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCRCopyright © 2021. All rights reserved.