| class info |
| com.huawei.hms.mlsdk.card.bcr.MLBankCard |
| Represents the detected bank card information. |
| Type | Name | Desc |
| int | FAILURE | Recognition failure. |
| int | SUCCESS | Recognition success. |
| Return type | Method name |
| String | getExpire()beta |
| String | getNumber() |
| android.graphics.Bitmap | getNumberBitmap() |
| android.graphics.Bitmap | getOriginalBitmap() |
| int | getRetCode()beta |
| Constant |
| public static final int FAILURE |
Recognition failure. Constant Value: 1 |
| Constant |
| public static final int SUCCESS |
Recognition success. Constant Value: 0 |
| Method |
| public String getExpire() |
| Obtains the validity period of the recognized bank card. |
Return
| Type | desc |
| String | Validity period of the recognized bank card. |
| Method |
| public String getNumber() |
| Obtains account number of the recognized bank card. |
Return
| Type | desc |
| String | Account number of the recognized bank card. |
| Method |
| public android.graphics.Bitmap getNumberBitmap() |
| Obtains the corrected bank card image. |
Return
| Type | desc |
| android.graphics.Bitmap | Corrected bank card image. |
| Method |
| public android.graphics.Bitmap getOriginalBitmap() |
| Obtains the original uncorrected bank card image sent for recognition. |
Return
| Type | desc |
| android.graphics.Bitmap | Original uncorrected bank card image sent for recognition. |
| Method |
| public int getRetCode() |
| Obtains the bank card recognition result code. |
Return
| Type | desc |
| int | Bank card recognition result code. The options include SUCCESS and FAILURE. |