目录

class info
com.huawei.hms.mlsdk.card.icr.MLIdCard
Recognized ID card information.

Public Method Summary

Return typeMethod name
android.graphics.BitmapgetCardBitmap()
StringgetIdNum()
StringgetName()
intgetRetCode()
StringgetSex()
intgetSideType()
StringgetValidDate()

Public Methods

Method
public android.graphics.Bitmap getCardBitmap()
Obtains the ID card image recognized from an image.

Return

Typedesc
android.graphics.BitmapReturns the ID card image recognized from an image.
Method
public String getIdNum()
Obtains the ID number recognized from an ID card image.

Return

Typedesc
StringReturns the ID number.
Method
public String getName()
Obtains the name recognized from an ID card image.

Return

Typedesc
StringReturns the name of the ID card.
Method
public int getRetCode()
Obtains the recognition result of an ID card image.

Return

Typedesc
intReturns the recognition result of an ID card image.
Method
public String getSex()
Obtains the gender recognized from an ID card image.

Return

Typedesc
StringReturns the gender of the ID card.
Method
public int getSideType()
Obtains the front or back side of the ID card recognized from an image.

Return

Typedesc
intReturns the front or back side of the ID card recognized from an image.1: front side2: back side
Method
public String getValidDate()
Obtains the validity period recognized from an ID card image.

Return

Typedesc
StringReturns the validity period of the ID card.