DFCardClassifySDK类介绍
| 字段 | 说明 |
|---|---|
| DF_OK | 成功 |
| DF_LICENSE_OUT_OF_DATE | license过期 |
| DF_LICENSE_INVALID_BUNDLE | license验证包名失败 |
| DF_LICENSE_INVALID | license文件错误 |
| DF_LIVENESS_LICENSE_TEST | license是测试文件 |
DFCardClassifySDK(Context context);
DFLivenessSDK的构造函数
| 参数 | 说明 |
|---|---|
| Context | None |
| 返回值 | 说明 |
| None | None |
int init(Context context);
初始化
| 参数 | 说明 |
|---|---|
| Context | None |
| 返回值 | 说明 |
| int | 创建结果 参考结果码 |
static String getSDKVersion();
返回SDK版本信息
| 参数 | 说明 |
|---|---|
| None | None |
| 返回值 | 说明 |
| SDK version code | None |
public DFCardClassifyResult detect(byte[] nv21data, int width, int height, Rect rect, int degree);
返回卡片检测状态
| 参数 | 说明 |
|---|---|
| nv21data | 输入图片数据 |
| width | 图片的宽 |
| height | 图片的高 |
| rect | 图片的检测区域 |
| degree | 卡片正向 |
| 返回值 | 说明 |
| DFCardClassifyResult structure | 请参考DFCardClassifyResult |
void release();
销毁handle,释放内存
| 参数 | 说明 |
|---|---|
| None | None |
| 返回值 | 说明 |
| None | None |