public class GeneralAccurateOCRRequest extends AbstractModel
| Constructor and Description | 
|---|
| GeneralAccurateOCRRequest() | 
| GeneralAccurateOCRRequest(GeneralAccurateOCRRequest 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 | 
|---|---|
| Boolean | getEnableDetectSplit()Get Whether to slice the input image to enhance the recognition effects for scenarios where the whole image is big, but the size of a single character is small (e.g., test papers). | 
| String | getImageBase64()Get Base64-encoded value of image. | 
| String | getImageUrl()Get URL address of image. | 
| Boolean | getIsWords()Get Whether to return the character information. | 
| void | setEnableDetectSplit(Boolean EnableDetectSplit)Set Whether to slice the input image to enhance the recognition effects for scenarios where the whole image is big, but the size of a single character is small (e.g., test papers). | 
| void | setImageBase64(String ImageBase64)Set Base64-encoded value of image. | 
| void | setImageUrl(String ImageUrl)Set URL address of image. | 
| void | setIsWords(Boolean IsWords)Set Whether to return the character information. | 
| 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, toJsonStringpublic GeneralAccurateOCRRequest()
public GeneralAccurateOCRRequest(GeneralAccurateOCRRequest source)
public String getImageBase64()
public void setImageBase64(String ImageBase64)
ImageBase64 - Base64-encoded value of image.
The image cannot exceed 7 MB in size after being Base64-encoded. A resolution above 600x800 is recommended. PNG, JPG, JPEG, and BMP formats are supported.
Either `ImageUrl` or `ImageBase64` of the image must be provided; if both are provided, only `ImageUrl` will be used.public String getImageUrl()
public void setImageUrl(String ImageUrl)
ImageUrl - URL address of image. (This field is not supported outside Chinese mainland)
The image cannot exceed 7 MB after being Base64-encoded. A resolution above 600x800 is recommended. PNG, JPG, JPEG, and BMP formats are supported.
We recommend you store the image in Tencent Cloud, as a Tencent Cloud URL can guarantee higher download speed and stability. The download speed and stability of non-Tencent Cloud URLs may be low.public Boolean getIsWords()
public void setIsWords(Boolean IsWords)
IsWords - Whether to return the character information. Default value: `false`public Boolean getEnableDetectSplit()
public void setEnableDetectSplit(Boolean EnableDetectSplit)
EnableDetectSplit - Whether to slice the input image to enhance the recognition effects for scenarios where the whole image is big, but the size of a single character is small (e.g., test papers). This feature is disabled by default.Copyright © 2021. All rights reserved.