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 Extended field.
|
Long |
getConfidence()
Get Confidence.
|
String |
getDetectedText()
Get Recognized text line content.
|
ItemCoord |
getItemPolygon()
Get Pixel coordinates of the text line in the image after rotation correction, which is in the format of `(X-coordinate of top-left point, Y-coordinate of top-left point, width, height)`.
|
Coord[] |
getPolygon()
Get Text line coordinates, which are represented as 4 vertex coordinates.
|
DetectedWordCoordPoint[] |
getWordCoordPoint()
Get Coordinates of a word’s four corners on the input image.
|
DetectedWords[] |
getWords()
Get Information about a character, including the character itself and its confidence.
|
void |
setAdvancedInfo(String AdvancedInfo)
Set Extended field.
|
void |
setConfidence(Long Confidence)
Set Confidence.
|
void |
setDetectedText(String DetectedText)
Set Recognized text line content.
|
void |
setItemPolygon(ItemCoord ItemPolygon)
Set Pixel coordinates of the text line in the image after rotation correction, which is in the format of `(X-coordinate of top-left point, Y-coordinate of top-left point, width, height)`.
|
void |
setPolygon(Coord[] Polygon)
Set Text line coordinates, which are represented as 4 vertex coordinates.
|
void |
setWordCoordPoint(DetectedWordCoordPoint[] WordCoordPoint)
Set Coordinates of a word’s four corners on the input image.
|
void |
setWords(DetectedWords[] Words)
Set Information about a character, including the character itself and its confidence.
|
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
- Recognized text line content.public Long getConfidence()
public void setConfidence(Long Confidence)
Confidence
- Confidence. Value range: 0–100.public Coord[] getPolygon()
public void setPolygon(Coord[] Polygon)
Polygon
- Text line coordinates, which are represented as 4 vertex coordinates.
Note: this field may return null, indicating that no valid values can be obtained.public String getAdvancedInfo()
public void setAdvancedInfo(String AdvancedInfo)
AdvancedInfo
- Extended field.
The paragraph information `Parag` returned by the `GeneralBasicOcr` API contains `ParagNo`.public ItemCoord getItemPolygon()
public void setItemPolygon(ItemCoord ItemPolygon)
ItemPolygon
- Pixel coordinates of the text line in the image after rotation correction, which is in the format of `(X-coordinate of top-left point, Y-coordinate of top-left point, width, height)`.public DetectedWords[] getWords()
public void setWords(DetectedWords[] Words)
Words
- Information about a character, including the character itself and its confidence. Supported APIs: `GeneralBasicOCR`, `GeneralAccurateOCR`public DetectedWordCoordPoint[] getWordCoordPoint()
public void setWordCoordPoint(DetectedWordCoordPoint[] WordCoordPoint)
WordCoordPoint
- Coordinates of a word’s four corners on the input image. Supported APIs: `GeneralBasicOCR`, `GeneralAccurateOCR`Copyright © 2023. All rights reserved.