@@ -14,24 +14,6 @@ export declare class MatchFacesException {
14
14
message ?: string ;
15
15
static fromJson ( jsonObject ?: any ) : MatchFacesException ;
16
16
}
17
- export declare class ComparedFacesPairException {
18
- errorCode ?: number ;
19
- message ?: string ;
20
- static fromJson ( jsonObject ?: any ) : ComparedFacesPairException ;
21
- }
22
- export declare class ComparedFace {
23
- tag ?: string ;
24
- imageType ?: number ;
25
- position ?: number ;
26
- static fromJson ( jsonObject ?: any ) : ComparedFace ;
27
- }
28
- export declare class ComparedFacesPair {
29
- first ?: ComparedFace ;
30
- second ?: ComparedFace ;
31
- similarity ?: number ;
32
- exception ?: ComparedFacesPairException ;
33
- static fromJson ( jsonObject ?: any ) : ComparedFacesPair ;
34
- }
35
17
export declare class FaceCaptureResponse {
36
18
exception ?: FaceCaptureException ;
37
19
image ?: Image ;
@@ -40,47 +22,98 @@ export declare class FaceCaptureResponse {
40
22
export declare class LivenessResponse {
41
23
bitmap ?: string ;
42
24
liveness ?: number ;
25
+ guid ?: string ;
43
26
exception ?: LivenessErrorException ;
44
27
static fromJson ( jsonObject ?: any ) : LivenessResponse ;
45
28
}
46
29
export declare class MatchFacesResponse {
47
30
exception ?: MatchFacesException ;
48
- matchedFaces ?: ComparedFacesPair [ ] ;
49
- unmatchedFaces ?: ComparedFacesPair [ ] ;
31
+ detections ?: MatchFacesDetection [ ] ;
32
+ results ?: MatchFacesComparedFacesPair [ ] ;
50
33
static fromJson ( jsonObject ?: any ) : MatchFacesResponse ;
51
34
}
52
35
export declare class Image {
53
36
imageType ?: number ;
54
- tag ?: string ;
55
37
bitmap ?: string ;
56
38
static fromJson ( jsonObject ?: any ) : Image ;
57
39
}
58
40
export declare class MatchFacesRequest {
59
- similarityThreshold ?: number ;
60
- images ?: Image [ ] ;
41
+ images ?: MatchFacesImage [ ] ;
61
42
customMetadata ?: any ;
43
+ thumbnails ?: boolean ;
62
44
static fromJson ( jsonObject ?: any ) : MatchFacesRequest ;
63
45
}
64
- export declare const ComparedFacesPairErrorCodes : {
65
- IMAGE_EMPTY : number ;
66
- FACE_NOT_DETECTED : number ;
67
- LANDMARKS_NOT_DETECTED : number ;
68
- FACE_ALIGNER_FAILED : number ;
69
- DESCRIPTOR_EXTRACTOR_ERROR : number ;
70
- API_CALL_FAILED : number ;
46
+ export declare class MatchFacesImage {
47
+ imageType ?: number ;
48
+ detectAll ?: boolean ;
49
+ bitmap ?: string ;
50
+ identifier ?: string ;
51
+ static fromJson ( jsonObject ?: any ) : MatchFacesImage ;
52
+ }
53
+ export declare class MatchFacesComparedFacesPair {
54
+ first ?: MatchFacesComparedFace ;
55
+ second ?: MatchFacesComparedFace ;
56
+ similarity ?: number ;
57
+ score ?: number ;
58
+ exception ?: MatchFacesException ;
59
+ static fromJson ( jsonObject ?: any ) : MatchFacesComparedFacesPair ;
60
+ }
61
+ export declare class MatchFacesComparedFace {
62
+ face ?: MatchFacesDetectionFace ;
63
+ image ?: MatchFacesImage ;
64
+ faceIndex ?: number ;
65
+ imageIndex ?: number ;
66
+ static fromJson ( jsonObject ?: any ) : MatchFacesComparedFace ;
67
+ }
68
+ export declare class MatchFacesDetectionFace {
69
+ faceIndex ?: number ;
70
+ landmarks ?: Point [ ] ;
71
+ faceRect ?: Rect ;
72
+ rotationAngle ?: number ;
73
+ thumbnail ?: string ;
74
+ static fromJson ( jsonObject ?: any ) : MatchFacesDetectionFace ;
75
+ }
76
+ export declare class MatchFacesDetection {
77
+ image ?: MatchFacesImage ;
78
+ imageIndex ?: number ;
79
+ faces ?: MatchFacesDetectionFace [ ] ;
80
+ exception ?: MatchFacesException ;
81
+ static fromJson ( jsonObject ?: any ) : MatchFacesDetection ;
82
+ }
83
+ export declare class Point {
84
+ x ?: number ;
85
+ y ?: number ;
86
+ static fromJson ( jsonObject ?: any ) : Point ;
87
+ }
88
+ export declare class Rect {
89
+ bottom ?: number ;
90
+ top ?: number ;
91
+ left ?: number ;
92
+ right ?: number ;
93
+ static fromJson ( jsonObject ?: any ) : Rect ;
94
+ }
95
+ export declare class MatchFacesSimilarityThresholdSplit {
96
+ matchedFaces ?: MatchFacesComparedFacesPair [ ] ;
97
+ unmatchedFaces ?: MatchFacesComparedFacesPair [ ] ;
98
+ static fromJson ( jsonObject ?: any ) : MatchFacesSimilarityThresholdSplit ;
99
+ }
100
+ export declare const CameraPosition : {
101
+ Back : number ;
102
+ Front : number ;
71
103
} ;
72
- export declare const FaceCaptureResultCodes : {
104
+ export declare const FaceCaptureErrorCode : {
73
105
CANCEL : number ;
74
106
CAMERA_NOT_AVAILABLE : number ;
75
107
CAMERA_NO_PERMISSION : number ;
76
108
IN_PROGRESS_ALREADY : number ;
77
109
CONTEXT_IS_NULL : number ;
78
110
} ;
79
111
export declare const ImageType : {
80
- IMAGE_TYPE_PRINTED : number ;
81
- IMAGE_TYPE_RFID : number ;
82
- IMAGE_TYPE_LIVE : number ;
83
- IMAGE_TYPE_LIVE_WITH_DOC : number ;
112
+ PRINTED : number ;
113
+ RFID : number ;
114
+ LIVE : number ;
115
+ DOCUMENT_WITH_LIVE : number ;
116
+ EXTERNAL : number ;
84
117
} ;
85
118
export declare const LivenessErrorCode : {
86
119
CONTEXT_IS_NULL : number ;
@@ -91,7 +124,6 @@ export declare const LivenessErrorCode: {
91
124
PROCESSING_TIMEOUT : number ;
92
125
API_CALL_FAILED : number ;
93
126
PROCESSING_FAILED : number ;
94
- PROCESSING_ATTEMPTS_ENDED : number ;
95
127
} ;
96
128
export declare const LivenessStatus : {
97
129
PASSED : number ;
@@ -104,37 +136,28 @@ export declare const MatchFacesErrorCodes: {
104
136
FACE_ALIGNER_FAILED : number ;
105
137
DESCRIPTOR_EXTRACTOR_ERROR : number ;
106
138
NO_LICENSE : number ;
107
- NOT_INITIALIZED : number ;
108
- COMMAND_IS_NOT_SUPPORTED : number ;
109
- COMMAND_PARAMS_READ_ERROR : number ;
139
+ IMAGES_COUNT_LIMIT_EXCEEDED : number ;
110
140
API_CALL_FAILED : number ;
111
141
PROCESSING_FAILED : number ;
112
142
} ;
113
- export declare const RFSCameraPosition : {
114
- RFSCameraPositionBack : number ;
115
- RFSCameraPositionFront : number ;
116
- } ;
117
143
export declare const Enum : {
118
- ComparedFacesPairErrorCodes : {
119
- IMAGE_EMPTY : number ;
120
- FACE_NOT_DETECTED : number ;
121
- LANDMARKS_NOT_DETECTED : number ;
122
- FACE_ALIGNER_FAILED : number ;
123
- DESCRIPTOR_EXTRACTOR_ERROR : number ;
124
- API_CALL_FAILED : number ;
144
+ CameraPosition : {
145
+ Back : number ;
146
+ Front : number ;
125
147
} ;
126
- FaceCaptureResultCodes : {
148
+ FaceCaptureErrorCode : {
127
149
CANCEL : number ;
128
150
CAMERA_NOT_AVAILABLE : number ;
129
151
CAMERA_NO_PERMISSION : number ;
130
152
IN_PROGRESS_ALREADY : number ;
131
153
CONTEXT_IS_NULL : number ;
132
154
} ;
133
155
ImageType : {
134
- IMAGE_TYPE_PRINTED : number ;
135
- IMAGE_TYPE_RFID : number ;
136
- IMAGE_TYPE_LIVE : number ;
137
- IMAGE_TYPE_LIVE_WITH_DOC : number ;
156
+ PRINTED : number ;
157
+ RFID : number ;
158
+ LIVE : number ;
159
+ DOCUMENT_WITH_LIVE : number ;
160
+ EXTERNAL : number ;
138
161
} ;
139
162
LivenessErrorCode : {
140
163
CONTEXT_IS_NULL : number ;
@@ -145,7 +168,6 @@ export declare const Enum: {
145
168
PROCESSING_TIMEOUT : number ;
146
169
API_CALL_FAILED : number ;
147
170
PROCESSING_FAILED : number ;
148
- PROCESSING_ATTEMPTS_ENDED : number ;
149
171
} ;
150
172
LivenessStatus : {
151
173
PASSED : number ;
@@ -158,16 +180,10 @@ export declare const Enum: {
158
180
FACE_ALIGNER_FAILED : number ;
159
181
DESCRIPTOR_EXTRACTOR_ERROR : number ;
160
182
NO_LICENSE : number ;
161
- NOT_INITIALIZED : number ;
162
- COMMAND_IS_NOT_SUPPORTED : number ;
163
- COMMAND_PARAMS_READ_ERROR : number ;
183
+ IMAGES_COUNT_LIMIT_EXCEEDED : number ;
164
184
API_CALL_FAILED : number ;
165
185
PROCESSING_FAILED : number ;
166
186
} ;
167
- RFSCameraPosition : {
168
- RFSCameraPositionBack : number ;
169
- RFSCameraPositionFront : number ;
170
- } ;
171
187
} ;
172
188
/**
173
189
* @name FaceSDK
@@ -227,15 +243,20 @@ export declare class FaceSDKOriginal extends IonicNativePlugin {
227
243
* description
228
244
*
229
245
* @param {object } config int cameraId - set camera on Android
230
- * RFSCameraPosition cameraPositionIOS - set camera on iOS
246
+ * CameraPosition cameraPositionIOS - set camera on iOS
247
+ * boolean cameraSwitchEnabled
248
+ * boolean showHelpTextAnimation
231
249
* @return {Promise<any> } Returns a promise
232
250
*/
233
251
presentFaceCaptureActivityWithConfig ( config : any ) : Promise < any > ;
234
252
/**
235
253
* description
236
254
*
237
255
* @param {object } config int cameraId - set camera on Android
238
- * RFSCameraPosition cameraPositionIOS - set camera on iOS
256
+ * CameraPosition cameraPositionIOS - set camera on iOS
257
+ * boolean cameraSwitchEnabled
258
+ * boolean showHelpTextAnimation
259
+ * boolean locationTrackingEnabled
239
260
* @return {Promise<any> } Returns a promise
240
261
*/
241
262
startLivenessWithConfig ( config : any ) : Promise < any > ;
@@ -263,11 +284,12 @@ export declare class FaceSDKOriginal extends IonicNativePlugin {
263
284
/**
264
285
* description
265
286
*
266
- * @param {MatchFacesRequest } request description
267
- * @param {object } config description
287
+ * @param {string } faces facesArray: MatchFacesComparedFacesPair[]
288
+ * faces = JSON.stringify(facesArray)
289
+ * @param {number } similarity description
268
290
* @return {Promise<any> } Returns a promise
269
291
*/
270
- matchFacesWithConfig ( request : any , config : any ) : Promise < any > ;
292
+ matchFacesSimilarityThresholdSplit ( faces : any , similarity : any ) : Promise < any > ;
271
293
}
272
294
273
295
export declare const FaceSDK : FaceSDKOriginal ;
0 commit comments