feat:引入人脸识别sdk
This commit is contained in:
1 parent
ce16eaf82e
commit
158d012eff
331 files changed
+13539
No files matched your search
+25
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// DTFIdentityManager.h
|
||||
// DTFIdentityManager
|
||||
//
|
||||
// Created by mengbingchuan on 2022/11/23.
|
||||
// Copyright © 2022 DTF. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "ZimRpcManager.h"
|
||||
#import <DTFUtility/DTFFaceIdentityProtocol.h>
|
||||
|
||||
//version 2.3.34.1
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
typedef void (^ZIMCallback)(ZIMResponse *response);
|
||||
|
||||
@interface DTFIdentityManager : NSObject<DTFFaceIdentityProtocol>
|
||||
|
||||
+ (DTFIdentityManager *)sharedInstance;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// DTFIdentityPublicApi.h
|
||||
// DTFIdentityManager
|
||||
//
|
||||
// Created by richard on 22/11/2017.
|
||||
// Copyright © 2017 DTF. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef DTFIdentityPublicApi_h
|
||||
#define DTFIdentityPublicApi_h
|
||||
|
||||
#import <DTFIdentityManager/DTFIdentityManager.h>
|
||||
#import <DTFIdentityManager/DTFSdk.h>
|
||||
|
||||
#endif /* DTFIdentityPublicApi_h */
|
||||
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// DTFSdk.h
|
||||
// DTFIdentityManager
|
||||
//
|
||||
// Created by richard on 22/11/2017.
|
||||
// Copyright © 2017 DTF. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface DTFSdk : NSObject
|
||||
|
||||
/*初始化接口,尽可能早调用
|
||||
*/
|
||||
+ (void)init;
|
||||
|
||||
/* IPV6的初始化接口 只有你的网络环境强制要求是IPV6的时候,才调用initIPv6。
|
||||
*/
|
||||
+ (void)initIPv6;
|
||||
|
||||
+ (NSString *)getVersion;
|
||||
|
||||
+ (void)preload:(NSDictionary *)param completion:(void (^)(BOOL success))completion;
|
||||
|
||||
/*同步获取设备指纹token
|
||||
1)SDK初始化后需要经过一段时间计算才能获取到deviceToken,建议间隔3秒以上;
|
||||
2)deviceToken短期有效,不能长期缓存使用,不能作为设备唯一标识。
|
||||
*@param session 要获取的session缓冲区
|
||||
*@param lenth session缓冲区的长度,此值应不小于384 比如:char session[384] = {0};
|
||||
*@return 0表示成功,其他表示失败
|
||||
*/
|
||||
+(int) getSession:(char *) session : (const int) lenth DEPRECATED_MSG_ATTRIBUTE("use getMobileSession instead");
|
||||
|
||||
|
||||
/*同步获取设备指纹token
|
||||
1)SDK初始化后需要经过一段时间计算才能获取到deviceToken,建议间隔3秒以上;
|
||||
2)如果没有获取到token,返回的内容是@"",没有内容的字符串。
|
||||
*/
|
||||
+(NSString*)getMobileSession:(NSString *)certifyID;
|
||||
|
||||
//获取无线保镖基本数据。
|
||||
+ (NSDictionary*) getSecurityInfo DEPRECATED_MSG_ATTRIBUTE("won't use any more");;
|
||||
|
||||
@end
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// ZimJSApiAdapter.h
|
||||
// DTFIdentityManager
|
||||
//
|
||||
// Created by 晗羽 on 25/07/2017.
|
||||
// Copyright © 2017 DTF. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
typedef void (^ZIMJSApilCallbackBlock)(id responseData);
|
||||
|
||||
@interface ZimJSApiHandler: NSObject
|
||||
- (void)handler:(NSDictionary *)data contextInfo:(NSDictionary *)context callback:(ZIMJSApilCallbackBlock)callbac;
|
||||
@end
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
//
|
||||
// ZIMRpcManager.h
|
||||
// DTFIdentityManager
|
||||
//
|
||||
// Created by richard on 26/02/2018.
|
||||
// Copyright © 2018 com. DTF.iphoneclient.DTF. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <DTFUtility/DTFUtility.h>
|
||||
#import <DTFUtility/DTFRPCProxyProtocol.h>
|
||||
|
||||
/**
|
||||
* rpc结果回调
|
||||
*
|
||||
* @param success 网络交互是否成功(不代表服务端返回的结果)
|
||||
* @param result 服务端返回的结果
|
||||
*/
|
||||
|
||||
@interface ZimRpcManager : NSObject
|
||||
|
||||
@property(nonatomic, strong) APBToygerBioBisConfigManager *protoclModel;
|
||||
@property(nonatomic, copy) NSString *zimId;
|
||||
@property(nonatomic, copy) NSDictionary *ossConfig;
|
||||
|
||||
@property(nonatomic, weak) id<DTFRPCProxyProtocol> rpcDelegate;
|
||||
|
||||
//代理模式
|
||||
//- (void)doValidateRequetViaDelegate:(ZimValidateRequest * )request withcompletionBlock:(rpcCompletionBlock)blk;
|
||||
|
||||
/**
|
||||
* zim init request
|
||||
*
|
||||
* @param request 初始化请求
|
||||
* @param blk 网络请求结果回调处理,result为ZimInitResponse
|
||||
*/
|
||||
- (void)doFastUploadInitRequest:(NSDictionary * )request withcompletionBlock:(DTFRpcCompletionBlock)blk;
|
||||
/**
|
||||
* zim validate request
|
||||
*
|
||||
* @param request validate请求
|
||||
* @param blk 网络请求结果回调处理,result为ZimValidateResponse
|
||||
*/
|
||||
- (void)doFastUploadValidateRequest:(ZimValidateRequest * )request withcompletionBlock:(DTFRpcCompletionBlock)blk;
|
||||
|
||||
|
||||
//OCR接口
|
||||
- (void)doSendOCRContent:(NSString*)certifyId idSide:(NSString*)side withImage:(NSData*)imageData imageSource:(NSInteger)imageSource withcompletionBlock:(rpcCompletionBlock)blk;
|
||||
|
||||
//EKYC OCR接口
|
||||
- (void)doSendEKYCOCRContent:(NSDictionary*)params withcompletionBlock:(DTFRpcCompletionBlock)blk ;
|
||||
|
||||
//EKYC OCR确认接口
|
||||
- (void)doSendEKYCOCRContentConfrim:(NSDictionary*)params withcompletionBlock:(DTFRpcCompletionBlock)blk ;
|
||||
|
||||
//侧信道oss上传
|
||||
- (void)doUploadOSSContent:(NSDictionary*)params withcompletionBlock:(DTFRpcCompletionBlock)blk;
|
||||
|
||||
// SMS 请求接口
|
||||
- (void)getSMSCode:(NSDictionary*)serviceParameters completionBlock:(DTFRpcCompletionBlock)blk;
|
||||
|
||||
// SMS 验证接口
|
||||
- (void)verifySMSCode:(NSDictionary*)serviceParameters completionBlock:(DTFRpcCompletionBlock)blk;
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user