Class Info |
|---|
com.huawei.hms.mlsdk.document.MLDocumentSetting.Factory Creates an instance of the document analyzer configurator to set document detection attributes. |
Constructor Name |
|---|
Factory() Creates an instance of the document analyzer configurator. |
Qualifier and Type | Method Name and Description |
|---|---|
MLDocumentSetting | create() Creates an instance of the document analyzer configurator. |
MLDocumentSetting.Factory | enableFingerprintVerification() Enables forcible verification of the certificate fingerprint. |
MLDocumentSetting.Factory | setBorderType(String borderType) Sets the type of a text bounding box. |
MLDocumentSetting.Factory | setLanguageList(List<String> languages) Sets the preset languages. |
Constructor |
|---|
public Factory() Creates an instance of the document analyzer configurator. |
Method |
|---|
public MLDocumentSetting create() Creates an instance of the document analyzer configurator. |
Type | Description |
|---|---|
MLDocumentSetting | Instance of the document analyzer configurator MLDocumentSetting. |
Method |
|---|
public MLDocumentSetting.Factory enableFingerprintVerification() Sets whether to enable certificate fingerprint verification. Only registered apps that pass the verification can access the cloud API for document detection. There is no need to set this parameter during app debugging. |
Type | Description |
|---|---|
MLDocumentSetting.Factory | Instance of MLDocumentSetting.Factory. |
Method |
|---|
public MLDocumentSetting.Factory setBorderType(String borderType) Sets the type of a text bounding box. |
Name | Description |
|---|---|
borderType |
|
Type | Description |
|---|---|
MLDocumentSetting.Factory | Instance of MLDocumentSetting.Factory. |
Method |
|---|
public MLDocumentSetting.Factory setLanguageList(List<String> languages) Sets the preset languages. Correct language setting ensures fast and accurate detection. Do not set this parameter if languages are not determined. The service will automatically identify the languages. The analyzer currently supports 19 languages: Chinese, Japanese, Korean, English, French, German, Russian, Italian, Portuguese, Spanish, Polish, Norwegian, Swedish, Danish, Turkish, Finnish, Thai, Arabic, and Hindi. |
Name | Description |
|---|---|
languages | A list of languages. Language codes: en (English), zh (Chinese), ja (Japanese), ko (Korean), ru (Russian), de (German), fr (French), it (Italian), pt (Portuguese), es (Spanish), pl (Polish), no (Norwegian), sv (Swedish), da (Danish), tr (Turkish), fi (Finnish), th (Thai), ar (Arabic), and hi (Hindi) |
Type | Description |
|---|---|
MLDocumentSetting.Factory | Instance of MLDocumentSetting.Factory. |