目录

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.

Public Method Summary

Return typeMethod name
MLGcrCapturegetGcrCapture(MLGcrCaptureConfig cardConfig)
MLGcrCapturegetGcrCapture(MLGcrCaptureConfig cardConfig, MLGcrCaptureUIConfig uiConfig)
MLGcrCaptureFactorygetInstance()

Public Methods

Method
public MLGcrCapture getGcrCapture(MLGcrCaptureConfig cardConfig)
Obtains an instance of the general card recognizer. You can specify the recognizer configurator.

Parameters

Parameter nameParameter desc
cardConfigConfiguration of the general card recognizer.


Return

Typedesc
MLGcrCaptureInstance of the general card recognizer.
Method
public MLGcrCapture getGcrCapture(MLGcrCaptureConfig cardConfig, MLGcrCaptureUIConfig uiConfig)
Obtains the general card recognition plug-in instance. You can specify the recognition configuration and UI configuration.

Parameters

Parameter nameParameter desc
cardConfigConfiguration of the general card recognizer.
uiConfigUI configuration of the recognitionUI.


Return

Typedesc
MLGcrCaptureInstance 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

Typedesc
MLGcrCaptureFactoryInstance of the general card recognition plug-in class factory.