| class info |
| com.huawei.hms.mlsdk.card.icr.MLIcrAnalyzerSetting.Factory |
| Creates an instance of the on-device ID card recognition configurator. |
| Constructor name |
| Factory()Creates an instance of the ID card recognition configurator. |
| Return type | Method name |
| MLIcrAnalyzerSetting | create() |
| MLIcrAnalyzerSetting.Factory | setCountryCode(String countryCode) |
| MLIcrAnalyzerSetting.Factory | setSideType(String sideType) |
| Method |
| public Factory() |
| Creates an instance of the ID card recognition configurator. |
| Method |
| public MLIcrAnalyzerSetting create() |
Creates an instance of the on-device ID card recognition configurator MLRemoteIcrAnalyzerSetting. |
Return
| Type | desc |
| MLIcrAnalyzerSetting | Returns an instance of the on-device ID card recognition configurator MLRemoteIcrAnalyzerSetting. |
Parameters
| Parameter name | Parameter desc |
| countryCode | Country code (two-letter code complying with the ISO 3166-1 standard) of the ID card. The default value is CN. |
Return
| Type | desc |
| MLIcrAnalyzerSetting.Factory | Returns the instance of MLRemoteIcrAnalyzerSetting.Factory. |
| Method |
| public MLIcrAnalyzerSetting.Factory setSideType(String sideType) |
Sets the front or back side of an ID card. BACK: back side FRONT: front side |
Parameters
| Parameter name | Parameter desc |
| sideType | Front or back side of an ID card. |
Return
| Type | desc |
| MLIcrAnalyzerSetting.Factory | Returns the instance of MLRemoteIcrAnalyzerSetting.Factory. |