| class info |
| com.huawei.hms.mlplugin.card.gcr.MLGcrCaptureFactory |
| Represents the general card recognition factory class, which is used to create a general card recognition instance. You can specify the recognition configuration. |
| Return type | Method name |
| MLGcrCapture | getGcrCapture(MLGcrCaptureConfig cardConfig) |
| MLGcrCapture | getGcrCapture(MLGcrCaptureConfig cardConfig, MLGcrCaptureUIConfig uiConfig) |
| MLGcrCaptureFactory | getInstance() |
| Method |
| public MLGcrCapture getGcrCapture(MLGcrCaptureConfig cardConfig) |
| Obtains an instance of the general card recognizer. You can specify the recognizer configurator. |
Parameters
| Parameter name | Parameter desc |
| cardConfig | Configuration of the general card recognizer. |
Return
| Type | desc |
| MLGcrCapture | Instance of the general card recognizer. |
Parameters
| Parameter name | Parameter desc |
| cardConfig | Configuration of the general card recognizer. |
| uiConfig | UI configuration of the recognitionUI. |
Return
| Type | desc |
| MLGcrCapture | Instance of the general card recognition plug-in. |
| Method |
| public static MLGcrCaptureFactory getInstance() |
| Obtains the instance of the general card recognition plug-in class factory. |
Return
| Type | desc |
| MLGcrCaptureFactory | Instance of the general card recognition plug-in class factory. |