| class info |
| com.huawei.hms.mlplugin.card.gcr.MLGcrCaptureConfig.Factory |
| Represents the general card recognition configurator factory, which is used to create an instance of the general card recognition configurator. |
| Return type | Method name |
| MLGcrCaptureConfig | create() |
| MLGcrCaptureConfig.Factory | setLanguage(String language) |
| Method |
| public MLGcrCaptureConfig create() |
| Creates an instance of the general card recognition configurator (MLGcrCaptureConfig). |
Return
| Type | desc |
| MLGcrCaptureConfig | Instance of the general card recognition configurator. |
Sample Code
- MLGcrCaptureConfig cardConfig = new MLGcrCaptureConfig.Factory().create();
| Method |
| public MLGcrCaptureConfig.Factory setLanguage(String language) |
| Sets the language of general card recognition. |
Parameters
| Parameter name | Parameter desc |
| language | Currently, only Latin-based languages (such as en, de, fr, it, pt, and es) are supported. The default value is en. |
Return
| Type | desc |
| MLGcrCaptureConfig.Factory | Instance of the general card recognition configurator. |