| class info |
| com.huawei.hms.mlsdk.document.MLDocumentSetting.Factory |
| Creates an instance of the document analysis configurator to set document detection attributes. |
| Constructor name |
Factory() Creates an instance of the document analysis configurator. |
| Return type | Method name |
| MLDocumentSetting | create() |
| MLDocumentSetting.Factory | enableFingerprintVerification() |
| MLDocumentSetting.Factory | setBorderType(String borderType) |
| MLDocumentSetting.Factory | setLanguageList(List<String> languages) |
| Method |
| public Factory() |
| Creates an instance of the document analysis configurator. |
| Method |
| public MLDocumentSetting create() |
| Creates an instance of the document analysis configurator. |
Return
| Type | desc |
| MLDocumentSetting | Returns the instance of the text analysis configurator MLDocumentSetting. |
Return
| Type | desc |
| MLDocumentSetting.Factory | Returns the instance of MLDocumentSetting.Factory. |
| Method |
| public MLDocumentSetting.Factory setBorderType(String borderType) |
| Sets the type of the text bounding box. |
Parameters
| Parameter name | Parameter desc |
| borderType | 1. NGON: Returns the coordinates of the four corner points of the text line bounding box that is a quadrilateral; 2. ARC: Returns the coordinates of up to 72 corner points of the text line bounding box that is a polygon for text in a curved layout. |
Return
| Type | desc |
| MLDocumentSetting.Factory | Returns the instance of MLDocumentSetting.Factory. |
Parameters
| Parameter name | Parameter desc |
| languages | Returns 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) |
Return
| Type | desc |
| MLDocumentSetting.Factory | Returns the instance of MLDocumentSetting.Factory. |