Class TextDetection
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.ocr.v20181119.models.TextDetection
-
public class TextDetection extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAdvancedInfo()
Get 此字段为扩展字段。 GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。Long
getConfidence()
Get 置信度 0 ~100String
getDetectedText()
Get 识别出的文本行内容ItemCoord
getItemPolygon()
Get 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)Coord[]
getPolygon()
Get 文本行坐标,以四个顶点坐标表示 注意:此字段可能返回 null,表示取不到有效值。DetectedWordCoordPoint[]
getWordCoordPoint()
Get 单字在原图中的四点坐标, 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCRDetectedWords[]
getWords()
Get 识别出来的单字信息包括单字(包括单字Character和单字置信度confidence), 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCRvoid
setAdvancedInfo(String AdvancedInfo)
Set 此字段为扩展字段。 GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。void
setConfidence(Long Confidence)
Set 置信度 0 ~100void
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、GeneralAccurateOCRvoid
setWords(DetectedWords[] Words)
Set 识别出来的单字信息包括单字(包括单字Character和单字置信度confidence), 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCRvoid
toMap(HashMap<String,String> map, String prefix)
Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
TextDetection
public TextDetection()
-
TextDetection
public 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.
-
-
Method Detail
-
getDetectedText
public String getDetectedText()
Get 识别出的文本行内容- Returns:
- DetectedText 识别出的文本行内容
-
setDetectedText
public void setDetectedText(String DetectedText)
Set 识别出的文本行内容- Parameters:
DetectedText
- 识别出的文本行内容
-
getConfidence
public Long getConfidence()
Get 置信度 0 ~100- Returns:
- Confidence 置信度 0 ~100
-
setConfidence
public void setConfidence(Long Confidence)
Set 置信度 0 ~100- Parameters:
Confidence
- 置信度 0 ~100
-
getPolygon
public Coord[] getPolygon()
Get 文本行坐标,以四个顶点坐标表示 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Polygon 文本行坐标,以四个顶点坐标表示 注意:此字段可能返回 null,表示取不到有效值。
-
setPolygon
public void setPolygon(Coord[] Polygon)
Set 文本行坐标,以四个顶点坐标表示 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Polygon
- 文本行坐标,以四个顶点坐标表示 注意:此字段可能返回 null,表示取不到有效值。
-
getAdvancedInfo
public String getAdvancedInfo()
Get 此字段为扩展字段。 GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。- Returns:
- AdvancedInfo 此字段为扩展字段。 GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
-
setAdvancedInfo
public void setAdvancedInfo(String AdvancedInfo)
Set 此字段为扩展字段。 GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。- Parameters:
AdvancedInfo
- 此字段为扩展字段。 GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
-
getItemPolygon
public ItemCoord getItemPolygon()
Get 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)- Returns:
- ItemPolygon 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
-
setItemPolygon
public void setItemPolygon(ItemCoord ItemPolygon)
Set 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)- Parameters:
ItemPolygon
- 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
-
getWords
public DetectedWords[] getWords()
Get 识别出来的单字信息包括单字(包括单字Character和单字置信度confidence), 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR- Returns:
- Words 识别出来的单字信息包括单字(包括单字Character和单字置信度confidence), 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR
-
setWords
public void setWords(DetectedWords[] Words)
Set 识别出来的单字信息包括单字(包括单字Character和单字置信度confidence), 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR- Parameters:
Words
- 识别出来的单字信息包括单字(包括单字Character和单字置信度confidence), 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR
-
getWordCoordPoint
public DetectedWordCoordPoint[] getWordCoordPoint()
Get 单字在原图中的四点坐标, 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR- Returns:
- WordCoordPoint 单字在原图中的四点坐标, 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR
-
setWordCoordPoint
public void setWordCoordPoint(DetectedWordCoordPoint[] WordCoordPoint)
Set 单字在原图中的四点坐标, 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR- Parameters:
WordCoordPoint
- 单字在原图中的四点坐标, 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR
-
-