目录

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.

Public Method Summary

Return typeMethod name
MLGcrCaptureConfigcreate()
MLGcrCaptureConfig.FactorysetLanguage(String language)

Public Methods

Method
public MLGcrCaptureConfig create()
Creates an instance of the general card recognition configurator (MLGcrCaptureConfig).

Return

Typedesc
MLGcrCaptureConfigInstance of the general card recognition configurator.

Sample Code

  1. MLGcrCaptureConfig cardConfig = new MLGcrCaptureConfig.Factory().create();
Method
public MLGcrCaptureConfig.Factory setLanguage(String language)
Sets the language of general card recognition.

Parameters

Parameter nameParameter desc
languageCurrently, only Latin-based languages (such as en, de, fr, it, pt, and es) are supported. The default value is en.

Return

Typedesc
MLGcrCaptureConfig.FactoryInstance of the general card recognition configurator.