| class info |
| com.huawei.hms.mlplugin.card.icr.cn.MLCnIcrCapture.CallBack |
| 插件识别结果回调接口。 |
| Return type | Method name |
| void | onCanceled() |
| void | onDenied() |
| void | onFailure(int retCode, android.graphics.Bitmap bitmap) |
| void | onSuccess(mlplugin.card.icr.cn.MLCnIcrCaptureResult MLCnIcrCaptureResult) |
| Method |
| public void onCanceled() |
| 用户取消。 |
| Method |
| public void onDenied() |
| 相机不支持。 |
| Method |
| public void onFailure(int retCode, android.graphics.Bitmap bitmap) |
| 识别失败。 |
Parameters
| Parameter name | Parameter desc |
| retCode | 错误码 |
| bitmap | 身份证图片 |
| Method |
| public void onSuccess(mlplugin.card.icr.cn.MLCnIcrCaptureResult result) |
| 识别成功,返回二代身份证信息。 |
Parameters
| Parameter name | Parameter desc |
| result | 识别结果 |