目录

class info
com.huawei.hms.mlsdk.card.bcr.MLBankCard
Represents the detected bank card information.

Constant Summary

TypeNameDesc
intFAILURERecognition failure.
intSUCCESSRecognition success.

Public Method Summary

Return typeMethod name
StringgetExpire()beta
StringgetNumber()
android.graphics.BitmapgetNumberBitmap()
android.graphics.BitmapgetOriginalBitmap()
intgetRetCode()beta

Constants

Constant
public static final int FAILURE

Recognition failure.

Constant Value: 1

Constant
public static final int SUCCESS

Recognition success.

Constant Value: 0

Public Methods

Method
public String getExpire()
Obtains the validity period of the recognized bank card.

Return

Typedesc
StringValidity period of the recognized bank card.
Method
public String getNumber()
Obtains account number of the recognized bank card.

Return

Typedesc
StringAccount number of the recognized bank card.
Method
public android.graphics.Bitmap getNumberBitmap()
Obtains the corrected bank card image.

Return

Typedesc
android.graphics.BitmapCorrected bank card image.
Method
public android.graphics.Bitmap getOriginalBitmap()
Obtains the original uncorrected bank card image sent for recognition.

Return

Typedesc
android.graphics.BitmapOriginal uncorrected bank card image sent for recognition.
Method
public int getRetCode()
Obtains the bank card recognition result code.

Return

Typedesc
intBank card recognition result code. The options include SUCCESS and FAILURE.