DFBankCardInfo类介绍

字段 说明
DF_OK 成功
DF_CONNECT_ERROR 网络连接失败
DF_NOT_RECOGNIZE 没有调用识别接口

其余状态码参考ocr_bankcard

public int getResult();

获取卡片识别状态码

参数 说明
None None
返回值 说明
int 识别状态码
public String getStatus();

获取卡片识别状态

参数 说明
None None
返回值 说明
String 识别状态
public String getReason();

如果识别失败,获取卡片识别失败原因

参数 说明
None None
返回值 说明
String 识别失败原因
public byte[] getDetectImage();

获取扫描框内的图片

参数 说明
None None
返回值 说明
byte[] 扫描框内的图片
public DFCardStatus getCardStatus();

获取扫描框内的图片

参数 说明
None None
返回值 说明
DFCardStatus 卡片状态参考DFCardStatus
public String getCardNumber();

获取银行卡卡号

参数 说明
None None
返回值 说明
String 银行卡卡号
public String getBankName();

获取发卡行名称

参数 说明
None None
返回值 说明
String 发卡行名称
public String getBankIdentificationNumber();

获取发卡行标识代码

参数 说明
None None
返回值 说明
String 发卡行标识代码
public String getCardName();

获取卡片名称

参数 说明
None None
返回值 说明
String 卡片名称
public String getCardType();

获取卡片类型

参数 说明
None None
返回值 说明
String 卡片类型

results matching ""

    No results matching ""