public class GeneralBasicOCRRequest extends AbstractModel
Constructor and Description |
---|
GeneralBasicOCRRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getImageBase64()
Get Base64-encoded value of image.
|
String |
getImageUrl()
Get URL address of image.
|
String |
getLanguageType()
Get Language to be recognized.
|
String |
getScene()
Get Reserved field.
|
void |
setImageBase64(String ImageBase64)
Set Base64-encoded value of image.
|
void |
setImageUrl(String ImageUrl)
Set URL address of image.
|
void |
setLanguageType(String LanguageType)
Set Language to be recognized.
|
void |
setScene(String Scene)
Set Reserved field.
|
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 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.
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.
You are recommended to 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 String getScene()
public void setScene(String Scene)
Scene
- Reserved field.public String getLanguageType()
public void setLanguageType(String LanguageType)
LanguageType
- Language to be recognized.
The language can be automatically recognized or manually specified. Chinese-English mix (`zh`) is selected by default. Mixed characters in English and each supported language can be recognized together.
Valid values:
zh\auto\jap\kor\nspa\fre\ger\por\nvie\may\rus\ita\nhol\swe\fin\dan\nnor\hun\tha\lat
Value meanings:
Chinese-English mix, automatic recognition, Japanese, Korean,
Spanish, French, German, Portuguese,
Vietnamese, Malay, Russian, Italian,
Dutch, Swedish, Finnish, Danish,
Norwegian, Hungarian, Thai, Latin.Copyright © 2020. All rights reserved.