public class GeneralBasicOCRRequest extends AbstractModel
Constructor and Description |
---|
GeneralBasicOCRRequest() |
GeneralBasicOCRRequest(GeneralBasicOCRRequest 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 |
getImageBase64()
Get Base64-encoded value of image/PDF.
|
String |
getImageUrl()
Get URL address of image/PDF.
|
Boolean |
getIsPdf()
Get Whether to enable PDF recognition.
|
String |
getLanguageType()
Get Language to be recognized.
|
Long |
getPdfPageNumber()
Get Page number of the PDF page that needs to be recognized.
|
String |
getScene()
Get Reserved field.
|
void |
setImageBase64(String ImageBase64)
Set Base64-encoded value of image/PDF.
|
void |
setImageUrl(String ImageUrl)
Set URL address of image/PDF.
|
void |
setIsPdf(Boolean IsPdf)
Set Whether to enable PDF recognition.
|
void |
setLanguageType(String LanguageType)
Set Language to be recognized.
|
void |
setPdfPageNumber(Long PdfPageNumber)
Set Page number of the PDF page that needs 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 GeneralBasicOCRRequest()
public GeneralBasicOCRRequest(GeneralBasicOCRRequest source)
public String getImageBase64()
public void setImageBase64(String ImageBase64)
ImageBase64
- Base64-encoded value of image/PDF.
The image/PDF cannot exceed 7 MB after being Base64-encoded. A resolution above 600x800 is recommended. PNG, JPG, JPEG, BMP, and PDF formats are supported.public String getImageUrl()
public void setImageUrl(String ImageUrl)
ImageUrl
- URL address of image/PDF. (This field is not supported outside Chinese mainland)
The image/PDF cannot exceed 7 MB after being Base64-encoded. A resolution above 600x800 is recommended. PNG, JPG, JPEG, BMP, and PDF 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 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\
spa\fre\ger\por\
vie\may\rus\ita\
hol\swe\fin\dan\
nor\hun\tha\lat\ara
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,
Arabic.public Boolean getIsPdf()
public void setIsPdf(Boolean IsPdf)
IsPdf
- Whether to enable PDF recognition. Default value: false. After this feature is enabled, both images and PDF files can be recognized at the same time.public Long getPdfPageNumber()
public void setPdfPageNumber(Long PdfPageNumber)
PdfPageNumber
- Page number of the PDF page that needs to be recognized. Only one single PDF page can be recognized. This parameter is valid if the uploaded file is a PDF and the value of the `IsPdf` parameter is `true`. Default value: 1.Copyright © 2021. All rights reserved.