public class GeneralBasicOCRResponse extends AbstractModel
Constructor and Description |
---|
GeneralBasicOCRResponse() |
GeneralBasicOCRResponse(GeneralBasicOCRResponse 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 |
---|---|
Float |
getAngel()
Get Image rotation angle in degrees.
|
String |
getLanguage()
Get Detected language.
|
Long |
getPdfPageSize()
Get Total number of PDF pages to be returned if the image is a PDF.
|
String |
getRequestId()
Get The unique request ID, which is returned for each request.
|
TextDetection[] |
getTextDetections()
Get Information of recognized text, including the text line content, confidence, text line coordinates, and text line coordinates after rotation correction.
|
void |
setAngel(Float Angel)
Set Image rotation angle in degrees.
|
void |
setLanguage(String Language)
Set Detected language.
|
void |
setPdfPageSize(Long PdfPageSize)
Set Total number of PDF pages to be returned if the image is a PDF.
|
void |
setRequestId(String RequestId)
Set The unique request ID, which is returned for each request.
|
void |
setTextDetections(TextDetection[] TextDetections)
Set Information of recognized text, including the text line content, confidence, text line coordinates, and text line coordinates after rotation correction.
|
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 GeneralBasicOCRResponse()
public GeneralBasicOCRResponse(GeneralBasicOCRResponse source)
public TextDetection[] getTextDetections()
public void setTextDetections(TextDetection[] TextDetections)
TextDetections
- Information of recognized text, including the text line content, confidence, text line coordinates, and text line coordinates after rotation correction. For more information, please click the link on the left.public String getLanguage()
public void setLanguage(String Language)
Language
- Detected language. For more information on the supported languages, please see the description of the `LanguageType` input parameter.public Float getAngel()
public void setAngel(Float Angel)
Angel
- Image rotation angle in degrees. 0°: The horizontal direction of the text on the image; a positive value: rotate clockwise; a negative value: rotate counterclockwise.public Long getPdfPageSize()
public void setPdfPageSize(Long PdfPageSize)
PdfPageSize
- Total number of PDF pages to be returned if the image is a PDF. Default value: 0.public String getRequestId()
public void setRequestId(String RequestId)
RequestId
- The unique request ID, which is returned for each request. RequestId is required for locating a problem.Copyright © 2023. All rights reserved.