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.
|
Boolean |
getIsWords()
Get Whether to return the character information.
|
String |
getLanguageType()
Get Language to recognize
The language can be automatically recognized or manually specified.
|
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 |
setIsWords(Boolean IsWords)
Set Whether to return the character information.
|
void |
setLanguageType(String LanguageType)
Set Language to recognize
The language can be automatically recognized or manually specified.
|
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 recognize
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`: Chinese-English mix
`zh_rare`: supports letters, digits, rare Chinese characters, Traditional Chinese characters, special characters, etc.
`auto`
`mix`: language mix
`jap`: Japanese
`kor`: Korean
`spa`: Spanish
`fre`: French
`ger`: German
`por`: Portuguese
`vie`: Vietnamese
`may`: Malay
`rus`: Russian
`ita`: Italian
`hol`: Dutch
`swe`: Swedish
`fin`: Finnish
`dan`: Danish
`nor`: Norwegian
`hun`: Hungarian
`tha`: Thai
`hi`: Hindi
`ara`: Arabicpublic 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.public Boolean getIsWords()
public void setIsWords(Boolean IsWords)
IsWords
- Whether to return the character information. Default value: `false`Copyright © 2023. All rights reserved.