ss="lines-num lines-num-old">
19
|
typedef void(^IPUNetSuccessBlock)(NSData *data, NSURLResponse *response);
|
40
|
20
|
|
41
|
21
|
/**
|
42
|
22
|
* commonPost失败回调block
|
43
|
23
|
*/
|
44
|
|
typedef void(^HylNetFailedBlock)(NSError *error,long status);
|
|
24
|
typedef void(^IPUNetFailedBlock)(NSError *error, long status);
|
45
|
25
|
|
46
|
26
|
@interface IpuFaceCheckSession : NSObject
|
47
|
27
|
|
|
@ -55,9 +35,18 @@ typedef void(^HylNetFailedBlock)(NSError *error,long status);
|
55
|
35
|
@param isRegister 是否是注册:YES-注册人脸,NO-识别人脸
|
56
|
36
|
@param callBack 调用接口的回调,(BOOL,NSDictionary)
|
57
|
37
|
*/
|
58
|
|
+ (void)ipuFaceCheckReceiveDataFromJS:(NSString *)host imgType:(int)imgType picInfo:(NSString *)picInfo appid:(NSString *)appid uid:(NSString *)uid isRegister:(BOOL)isRegister callBack:(IPUFaceCheckCallBack)callBack;
|
59
|
|
|
60
|
|
+(void)commonPost:(NSDictionary*)paramDic Url:(NSString*)urlPath success:(HylNetSuccessBlock)successBlock failed:(HylNetFailedBlock)failedBlock;
|
|
38
|
+ (void)ipuFaceCheckReceiveDataFromJS:(NSString *)host
|
|
39
|
imgType:(NSInteger)imgType
|
|
40
|
picInfo:(NSString *)picInfo
|
|
41
|
appid:(NSString *)appid
|
|
42
|
uid:(NSString *)uid
|
|
43
|
isRegister:(BOOL)isRegister
|
|
44
|
callBack:(IPUFaceCheckCallBack)callBack;
|
|
45
|
|
|
46
|
+ (void)commonPost:(NSDictionary*)paramDic
|
|
47
|
Url:(NSString*)urlPath
|
|
48
|
success:(IPUNetSuccessBlock)successBlock
|
|
49
|
failed:(IPUNetFailedBlock)failedBlock;
|
61
|
50
|
|
62
|
51
|
+ (NSString *)img2Base64:(UIImage *)img;
|
63
|
52
|
@end
|
|
@ -7,17 +7,18 @@
|
7
|
7
|
//
|
8
|
8
|
|
9
|
9
|
#import <Foundation/Foundation.h>
|
10
|
|
//@class IPUPlugin;
|
11
|
10
|
#import <UIKit/UIKit.h>
|
|
11
|
|
12
|
12
|
@protocol IpuFaceCheckViewControllerDelegate<NSObject>
|
|
13
|
|
13
|
14
|
- (void)backMsg:(NSDictionary *)callBackDic;
|
|
15
|
|
14
|
16
|
@end
|
15
|
17
|
|
16
|
|
@interface IpuFaceCheckViewController : UIViewController
|
17
|
18
|
|
18
|
|
@property (nonatomic , strong) NSArray *params;
|
|
19
|
@interface IpuFaceCheckViewController : UIViewController
|
19
|
20
|
|
20
|
|
//@property (nonatomic, strong) IPUPlugin *plugin;
|
|
21
|
@property (nonatomic, strong) NSArray *params;
|
21
|
22
|
|
22
|
23
|
@property (nonatomic, assign) BOOL isRegister; //是否是人脸注册注册
|
23
|
24
|
|
|
@ -10,15 +10,15 @@
|
10
|
10
|
</data>
|
11
|
11
|
<key>Headers/IpuFaceCheckSession.h</key>
|
12
|
12
|
<data>
|
13
|
|
c3aOVpzeQSJgkrycUOVRPPRZqoY=
|
|
13
|
2Hc9L8HdDXnWCsXfozTiDKWbQHo=
|
14
|
14
|
</data>
|
15
|
15
|
<key>Headers/IpuFaceCheckViewController.h</key>
|
16
|
16
|
<data>
|
17
|
|
3k9hZ14ZomQnvLxWOs9ZJrPRa4k=
|
|
17
|
1KJyFXpA2jmk/uNzdHTmFeuVWiM=
|
18
|
18
|
</data>
|
19
|
19
|
<key>Info.plist</key>
|
20
|
20
|
<data>
|
21
|
|
bMYomJcWgUeUKf3zDLEu36fmLuc=
|
|
21
|
Uey/ll8n7pigfqZm7S5VRn6uzNI=
|
22
|
22
|
</data>
|
23
|
23
|
<key>IpuFace.Bundle/people.png</key>
|
24
|
24
|
<data>
|
|
@ -54,22 +54,22 @@
|
54
|
54
|
<dict>
|
55
|
55
|
<key>hash</key>
|
56
|
56
|
<data>
|
57
|
|
c3aOVpzeQSJgkrycUOVRPPRZqoY=
|
|
57
|
2Hc9L8HdDXnWCsXfozTiDKWbQHo=
|
58
|
58
|
</data>
|
59
|
59
|
<key>hash2</key>
|
60
|
60
|
<data>
|
61
|
|
qt+BLAZcP2hCu/g2C0hFEgbamFUU6RbKurz4TXriLPY=
|
|
61
|
J76RwJ+eh9t0jJxluJv9OMsO3KSZqQwWMev/tT/vwYs=
|
62
|
62
|
</data>
|
63
|
63
|
</dict>
|
64
|
64
|
<key>Headers/IpuFaceCheckViewController.h</key>
|
65
|
65
|
<dict>
|
66
|
66
|
<key>hash</key>
|
67
|
67
|
<data>
|
68
|
|
3k9hZ14ZomQnvLxWOs9ZJrPRa4k=
|
|
68
|
1KJyFXpA2jmk/uNzdHTmFeuVWiM=
|
69
|
69
|
</data>
|
70
|
70
|
<key>hash2</key>
|
71
|
71
|
<data>
|
72
|
|
+CiY3wcx7zuXzpHZBPT1+DQBMhS99phi4By4mFQf1RA=
|
|
72
|
r/DwaOYhrUuXzYXsGG1qv3reKmCI1TD+kZm0trv7mXU=
|
73
|
73
|
</data>
|
74
|
74
|
</dict>
|
75
|
75
|
<key>IpuFace.Bundle/people.png</key>
|
|
@ -1,10 +1,10 @@
|
1
|
1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
|
2
|
<configs>
|
3
|
3
|
<!--3.0稳定版生产环境-->
|
4
|
|
<!-- <config name="request_host" value="http://www.aiipu.com:8083"/>-->
|
|
4
|
<config name="request_host" value="http://www.aiipu.com:8083"/>
|
5
|
5
|
<!--master标准版测试环境-->
|
6
|
6
|
<!-- <config name="request_host" value="http://10.13.13.36:8089"/>-->
|
7
|
|
<config name="request_host" value="http://121.42.183.206:8081"/>
|
|
7
|
<!-- <config name="request_host" value="http://121.42.183.206:8081"/>-->
|
8
|
8
|
|
9
|
9
|
<config name="request_path" value="/show"/>
|
10
|
10
|
<config name="request_servlet" value="/mobiledata"/>
|
|
@ -2,12 +2,6 @@
|
2
|
2
|
<Workspace
|
3
|
3
|
version = "1.0">
|
4
|
4
|
<FileRef
|
5
|
|
location = "group:../../iOS/IPUFoundation/IPUFoundation.xcodeproj">
|
6
|
|
</FileRef>
|
7
|
|
<FileRef
|
8
|
|
location = "group:../../iOS/IPUMobile/IPUMobile.xcodeproj">
|
9
|
|
</FileRef>
|
10
|
|
<FileRef
|
11
|
5
|
location = "group:display-center.xcodeproj">
|
12
|
6
|
</FileRef>
|
13
|
7
|
</Workspace>
|
|
@ -204,6 +204,21 @@
|
204
|
204
|
endingLineNumber = "111"
|
205
|
205
|
offsetFromSymbolStart = "540">
|
206
|
206
|
</Location>
|
|
207
|
<Location
|
|
208
|
uuid = "FEF68F5F-95C5-4BC0-AB80-B7A704BFDF37 - 4f39955c4233c17a"
|
|
209
|
shouldBeEnabled = "Yes"
|
|
210
|
ignoreCount = "0"
|
|
211
|
continueAfterRunningActions = "No"
|
|
212
|
symbolName = "+[IPUTemplateManager copyResources]"
|
|
213
|
moduleName = "IPUMobile"
|
|
214
|
usesParentBreakpointCondition = "Yes"
|
|
215
|
urlString = "file:///Users/benny/iOS/IPUMobile/IPUMobile/Frame/Template/IPUTemplateManager.m"
|
|
216
|
startingColumnNumber = "9223372036854775807"
|
|
217
|
endingColumnNumber = "9223372036854775807"
|
|
218
|
startingLineNumber = "113"
|
|
219
|
endingLineNumber = "113"
|
|
220
|
offsetFromSymbolStart = "48">
|
|
221
|
</Location>
|
207
|
222
|
</Locations>
|
208
|
223
|
</BreakpointContent>
|
209
|
224
|
</BreakpointProxy>
|
|
@ -95,12 +95,9 @@
|
95
|
95
|
#pragma mark - IFlySpeechRecognizerDelegate
|
96
|
96
|
|
97
|
97
|
- (void)onCompleted:(IFlySpeechError *)errorCode {
|
98
|
|
IPULogDebug(@":::::::::::::::::");
|
99
|
|
IPULogDebug(@"%s", __func__);
|
100
|
|
IPULogDebug(@"%d", errorCode.errorCode);
|
101
|
|
IPULogDebug(@"%d", errorCode.errorType);
|
102
|
|
IPULogDebug(@"%@", errorCode.errorDesc);
|
103
|
|
IPULogDebug(@":::::::::::::::::");
|
|
98
|
IPULogDebug(@"讯飞语音识别错误码:%d", errorCode.errorCode);
|
|
99
|
IPULogDebug(@"讯飞语音识别错误码类型:%d", errorCode.errorType);
|
|
100
|
IPULogDebug(@"讯飞语音识别错误码描述:%@", errorCode.errorDesc);
|
104
|
101
|
}
|
105
|
102
|
|
106
|
103
|
- (void)onResults:(NSArray *)results isLast:(BOOL)isLast {
|