目录

class info
com.huawei.hms.mlsdk.card.icr.MLIcrAnalyzerSetting

Configures the on-device ID card recognition analyzer, which is used to obtain the attributes of the ID card analyzer on the device. The ID card recognition analyzer attributes include: 

1. Front and back sides of an ID card.

2. Country code.

Constant Summary

TypeNameDesc
StringBACKBack side of an ID card.
StringFRONTFront side of an ID card.

Public Method Summary

Return typeMethod name
booleanequals(Object target)
StringgetCountryCode()
StringgetSideType()
inthashCode()

Constants

Constant
public static final String BACK
Back side of an ID card.Constant value: “BACK”
Constant
public static final String FRONT
Front side of an ID card.Constant value: FRONT

Public Methods

Method
public boolean equals(Object target)
Checks whether two ID card recognition configurator instances are equal.

Parameters

Parameter nameParameter desc
targetID card recognition configurator instance to be compared.

Return

Typedesc
booleantrue: Two ID card recognition configurator instances are equal.false: Two ID card recognition configurator instances are not equal.
Method
public final String getCountryCode ()
Obtains the country code (two-letter code complying with the ISO 3166-1 standard) of the ID card. The default value is CN.

Return

Typedesc
StringReturns the country code (two-letter code complying with the ISO 3166-1 standard) of the ID card. The default value is CN.
Method
public final String getSideType()
Obtains the front or back side of an ID card recognized.

Return

Typedesc
String

Returns the front or back side of an ID card recognized

BACK: back side

FRONT: front side.

Method
public int hashCode()
Obtains the hash value of the current ID card analyzer instance.

Return

Typedesc
intHash value of the ID card analyzer instance.