@regulaforensics/face-sdk 8.3.1105-nightly → 8.3.1107-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RNFaceSDK.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +91 -0
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +106 -3
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +39 -1
- package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +0 -1
- package/examples/capacitor/package-lock.json +227 -221
- package/examples/capacitor/package.json +5 -2
- package/examples/ionic/package-lock.json +1579 -2369
- package/examples/ionic/package.json +16 -13
- package/examples/react_native/package-lock.json +138 -169
- package/examples/react_native/package.json +4 -3
- package/ios/Config.swift +109 -1
- package/ios/Decoder.swift +71 -3
- package/ios/Main.swift +24 -4
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +134 -57
- package/test/package-lock.json +1 -1
- package/test/test.tsx +68 -60
- package/www/capacitor/customization/customization_images.js +40 -0
- package/www/capacitor/index.js +33 -12
- package/www/capacitor/liveness/enrollment_config.js +102 -0
- package/www/capacitor/liveness/enrollment_request.js +34 -0
- package/www/capacitor/liveness/enrollment_response.js +26 -0
- package/www/capacitor/liveness/error_response.js +21 -0
- package/www/capacitor/liveness/liveness_config.js +1 -0
- package/www/capacitor/liveness/liveness_exception.js +6 -5
- package/www/capacitor/liveness/liveness_notification.js +2 -0
- package/www/capacitor/liveness/verification_config.js +98 -0
- package/www/capacitor/liveness/verification_response.js +27 -0
- package/www/capacitor/liveness/verify_match_response.js +21 -0
- package/www/cordova.js +595 -80
- package/www/react-native/customization/customization_images.js +40 -0
- package/www/react-native/index.js +33 -12
- package/www/react-native/liveness/enrollment_config.js +102 -0
- package/www/react-native/liveness/enrollment_request.js +34 -0
- package/www/react-native/liveness/enrollment_response.js +26 -0
- package/www/react-native/liveness/error_response.js +21 -0
- package/www/react-native/liveness/liveness_config.js +1 -0
- package/www/react-native/liveness/liveness_exception.js +6 -5
- package/www/react-native/liveness/liveness_notification.js +2 -0
- package/www/react-native/liveness/verification_config.js +98 -0
- package/www/react-native/liveness/verification_response.js +27 -0
- package/www/react-native/liveness/verify_match_response.js +21 -0
- package/www/types/customization/customization_images.d.ts +5 -0
- package/www/types/index.d.ts +28 -3
- package/www/types/liveness/enrollment_config.d.ts +97 -0
- package/www/types/liveness/enrollment_request.d.ts +6 -0
- package/www/types/liveness/enrollment_response.d.ts +9 -0
- package/www/types/liveness/error_response.d.ts +6 -0
- package/www/types/liveness/liveness_config.d.ts +1 -0
- package/www/types/liveness/liveness_exception.d.ts +1 -0
- package/www/types/liveness/liveness_notification.d.ts +2 -0
- package/www/types/liveness/verification_config.d.ts +95 -0
- package/www/types/liveness/verification_response.d.ts +10 -0
- package/www/types/liveness/verify_match_response.d.ts +6 -0
package/test/json.tsx
CHANGED
|
@@ -2,10 +2,11 @@ var img1 = 'data1'
|
|
|
2
2
|
var img2 = 'data2'
|
|
3
3
|
var img3 = 'data3'
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
var customJson = {"test1": true, "test2": 1, "test3": "test"};
|
|
6
|
+
|
|
7
|
+
var font1 = {"name": "AppleSDGothicNeo-Thin", "size": 10, "style": 2};
|
|
8
|
+
var font2 = {"name": "Copperplate-Light", "size": 20, "style": 1};
|
|
6
9
|
|
|
7
|
-
export var font1 = {"name": "AppleSDGothicNeo-Thin", "size": 10, "style": 2}
|
|
8
|
-
export var font2 = {"name": "Copperplate-Light", "size": 20, "style": 1}
|
|
9
10
|
export var customizationColors = {
|
|
10
11
|
"100": 0xff000000,
|
|
11
12
|
"101": 0xff000001,
|
|
@@ -33,7 +34,7 @@ export var customizationColors = {
|
|
|
33
34
|
"401": 0xff000023,
|
|
34
35
|
"402": 0xff000024,
|
|
35
36
|
"500": 0xff000025,
|
|
36
|
-
}
|
|
37
|
+
};
|
|
37
38
|
export var customizationFonts = {
|
|
38
39
|
"100": font1,
|
|
39
40
|
"101": font2,
|
|
@@ -45,7 +46,7 @@ export var customizationFonts = {
|
|
|
45
46
|
"302": font2,
|
|
46
47
|
"303": font1,
|
|
47
48
|
"400": font2,
|
|
48
|
-
}
|
|
49
|
+
};
|
|
49
50
|
export var customizationImages = {
|
|
50
51
|
"onboardingScreenCloseButton": img1,
|
|
51
52
|
"onboardingScreenIllumination": img2,
|
|
@@ -59,63 +60,68 @@ export var customizationImages = {
|
|
|
59
60
|
"retryScreenHintEnvironment": img1,
|
|
60
61
|
"retryScreenHintSubject": img2,
|
|
61
62
|
"retryScreenHintGeo": img3,
|
|
63
|
+
"retryScreenHintBadSelfieQuality": img1,
|
|
64
|
+
"retryScreenHintCleanLens": img2,
|
|
65
|
+
"retryScreenHintAddIllumination": img3,
|
|
66
|
+
"retryScreenHintChangeBackground": img1,
|
|
67
|
+
"retryScreenHintFaceOcclusions": img2,
|
|
62
68
|
"processingScreenCloseButton": img1,
|
|
63
69
|
"successScreenImage": img2,
|
|
64
|
-
}
|
|
70
|
+
};
|
|
65
71
|
export var customization = {
|
|
66
72
|
"colors": customizationColors,
|
|
67
73
|
"fonts": customizationFonts,
|
|
68
74
|
"images": customizationImages,
|
|
69
75
|
"uiCustomizationLayer": customJson
|
|
70
|
-
}
|
|
76
|
+
};
|
|
71
77
|
|
|
72
78
|
export var point = {
|
|
73
79
|
"x": 0,
|
|
74
80
|
"y": 1,
|
|
75
|
-
}
|
|
81
|
+
};
|
|
76
82
|
export var rect = {
|
|
77
83
|
"left": 0,
|
|
78
84
|
"top": 1,
|
|
79
85
|
"right": 2,
|
|
80
86
|
"bottom": 3,
|
|
81
|
-
}
|
|
87
|
+
};
|
|
82
88
|
export var size = {
|
|
83
89
|
"width": 68,
|
|
84
90
|
"height": 91,
|
|
85
|
-
}
|
|
91
|
+
};
|
|
86
92
|
export var outputImageCrop = {
|
|
87
93
|
"type": 0,
|
|
88
94
|
"size": size,
|
|
89
95
|
"padColor": 0xff000000,
|
|
90
96
|
"returnOriginalRect": true
|
|
91
|
-
}
|
|
97
|
+
};
|
|
92
98
|
export var outputImageParams = {
|
|
93
99
|
"crop": outputImageCrop,
|
|
94
100
|
"backgroundColor": 0xff000000,
|
|
95
|
-
}
|
|
101
|
+
};
|
|
96
102
|
|
|
97
103
|
export var imageQualityRange = {
|
|
98
104
|
"min": 0.45,
|
|
99
105
|
"max": 0.55,
|
|
100
|
-
}
|
|
106
|
+
};
|
|
101
107
|
export var imageQualityResult = {
|
|
102
108
|
"group": 1,
|
|
103
109
|
"name": "ImageWidth",
|
|
104
110
|
"status": 0,
|
|
105
111
|
"value": 0.5,
|
|
106
112
|
"range": imageQualityRange,
|
|
107
|
-
}
|
|
113
|
+
};
|
|
108
114
|
export var imageQualityCharacteristic = {
|
|
109
115
|
"characteristicName": "FaceMidPointHorizontalPosition",
|
|
110
116
|
"recommendedRange": imageQualityRange,
|
|
111
|
-
}
|
|
117
|
+
};
|
|
112
118
|
|
|
113
119
|
export var detectFacesAttributeResult = {
|
|
114
120
|
"attribute": "Age",
|
|
115
121
|
"confidence": 0.5,
|
|
116
122
|
"value": "test",
|
|
117
123
|
"range": imageQualityRange,
|
|
118
|
-
}
|
|
124
|
+
};
|
|
119
125
|
export var detectFaceResult = {
|
|
120
126
|
"quality": [imageQualityResult, imageQualityResult, imageQualityResult],
|
|
121
127
|
"crop": img1,
|
|
@@ -128,7 +134,7 @@ export var detectFaceResult = {
|
|
|
128
134
|
"faceRect": rect,
|
|
129
135
|
"originalRect": rect,
|
|
130
136
|
"isQualityCompliant": false,
|
|
131
|
-
}
|
|
137
|
+
};
|
|
132
138
|
export var detectFacesConfig = {
|
|
133
139
|
"attributes": ["Age", "EyeRight", "EyeLeft"],
|
|
134
140
|
"customQuality": [
|
|
@@ -138,28 +144,28 @@ export var detectFacesConfig = {
|
|
|
138
144
|
],
|
|
139
145
|
"outputImageParams": outputImageParams,
|
|
140
146
|
"onlyCentralFace": true,
|
|
141
|
-
}
|
|
147
|
+
};
|
|
142
148
|
export var detectFacesRequest = {
|
|
143
149
|
"tag": "test",
|
|
144
|
-
|
|
150
|
+
"scenario": "CropCentralFace",
|
|
145
151
|
"image": img1,
|
|
146
|
-
"configuration": detectFacesConfig,
|
|
147
|
-
}
|
|
152
|
+
// "configuration": detectFacesConfig,
|
|
153
|
+
};
|
|
148
154
|
export var detectFacesBackendException = {
|
|
149
155
|
"code": 2,
|
|
150
156
|
"message": "test",
|
|
151
|
-
}
|
|
157
|
+
};
|
|
152
158
|
export var detectFacesException = {
|
|
153
159
|
"code": 0,
|
|
154
160
|
"message": "In process already.",
|
|
155
161
|
"underlyingError": detectFacesBackendException
|
|
156
|
-
}
|
|
162
|
+
};
|
|
157
163
|
export var detectFacesResponse = {
|
|
158
164
|
"detection": detectFaceResult,
|
|
159
165
|
"allDetections": [detectFaceResult, detectFaceResult, detectFaceResult],
|
|
160
166
|
"scenario": "CropCentralFace",
|
|
161
167
|
"error": detectFacesException,
|
|
162
|
-
}
|
|
168
|
+
};
|
|
163
169
|
|
|
164
170
|
export var faceCaptureConfig = {
|
|
165
171
|
"copyright": true,
|
|
@@ -175,40 +181,40 @@ export var faceCaptureConfig = {
|
|
|
175
181
|
"screenOrientation": [0, 1],
|
|
176
182
|
"timeout": 0.5,
|
|
177
183
|
"holdStillDuration": 1.5,
|
|
178
|
-
}
|
|
184
|
+
};
|
|
179
185
|
export var faceCaptureImage = {
|
|
180
186
|
"image": img1,
|
|
181
187
|
"imageType": 1,
|
|
182
188
|
"tag": "test",
|
|
183
|
-
}
|
|
189
|
+
};
|
|
184
190
|
export var faceCaptureException = {
|
|
185
191
|
"code": 0,
|
|
186
192
|
"message": "Cancelled by user.",
|
|
187
|
-
}
|
|
193
|
+
};
|
|
188
194
|
export var faceCaptureResponse = {
|
|
189
195
|
"image": faceCaptureImage,
|
|
190
196
|
"error": faceCaptureException,
|
|
191
|
-
}
|
|
197
|
+
};
|
|
192
198
|
|
|
193
199
|
export var faceSDKVersion = {
|
|
194
200
|
"api": "test1",
|
|
195
201
|
"core": "test2",
|
|
196
202
|
"coreMode": "test3",
|
|
197
|
-
}
|
|
203
|
+
};
|
|
198
204
|
export var initConfig = {
|
|
199
205
|
"license": img1,
|
|
200
206
|
"licenseUpdate": true,
|
|
201
207
|
"useBleDevice": false,
|
|
202
|
-
}
|
|
208
|
+
};
|
|
203
209
|
export var licenseException = {
|
|
204
210
|
"code": 0,
|
|
205
211
|
"message": "",
|
|
206
|
-
}
|
|
212
|
+
};
|
|
207
213
|
export var initException = {
|
|
208
214
|
"code": 0,
|
|
209
215
|
"message": "In process already.",
|
|
210
216
|
"underlyingError": licenseException
|
|
211
|
-
}
|
|
217
|
+
};
|
|
212
218
|
|
|
213
219
|
export var livenessConfig = {
|
|
214
220
|
"copyright": true,
|
|
@@ -227,16 +233,69 @@ export var livenessConfig = {
|
|
|
227
233
|
"tag": "test",
|
|
228
234
|
"skipStep": [0, 1],
|
|
229
235
|
"metadata": customJson,
|
|
230
|
-
}
|
|
236
|
+
};
|
|
237
|
+
export var enrollmentConfig = {
|
|
238
|
+
"copyright": true,
|
|
239
|
+
"cameraSwitchEnabled": false,
|
|
240
|
+
"closeButtonEnabled": true,
|
|
241
|
+
"torchButtonEnabled": false,
|
|
242
|
+
"vibrateOnSteps": true,
|
|
243
|
+
"cameraPositionAndroid": -1,
|
|
244
|
+
"cameraPositionIOS": 1,
|
|
245
|
+
"screenOrientation": [0, 1],
|
|
246
|
+
"locationTrackingEnabled": true,
|
|
247
|
+
"preventScreenRecording": false,
|
|
248
|
+
"attemptsCount": 2,
|
|
249
|
+
"recordingProcess": 0,
|
|
250
|
+
"livenessType": 1,
|
|
251
|
+
"tag": "test",
|
|
252
|
+
"skipStep": [0, 1],
|
|
253
|
+
"metadata": customJson,
|
|
254
|
+
"externalId": "test0",
|
|
255
|
+
"groupId": "test1",
|
|
256
|
+
"checkDuplicatesEnabled": true,
|
|
257
|
+
"duplicatesThreshold": 0.5,
|
|
258
|
+
};
|
|
259
|
+
export var verificationConfig = {
|
|
260
|
+
"copyright": true,
|
|
261
|
+
"cameraSwitchEnabled": false,
|
|
262
|
+
"closeButtonEnabled": true,
|
|
263
|
+
"torchButtonEnabled": false,
|
|
264
|
+
"vibrateOnSteps": true,
|
|
265
|
+
"cameraPositionAndroid": -1,
|
|
266
|
+
"cameraPositionIOS": 1,
|
|
267
|
+
"screenOrientation": [0, 1],
|
|
268
|
+
"locationTrackingEnabled": true,
|
|
269
|
+
"preventScreenRecording": false,
|
|
270
|
+
"attemptsCount": 2,
|
|
271
|
+
"recordingProcess": 0,
|
|
272
|
+
"livenessType": 1,
|
|
273
|
+
"tag": "test",
|
|
274
|
+
"skipStep": [0, 1],
|
|
275
|
+
"metadata": customJson,
|
|
276
|
+
"personId": "test0",
|
|
277
|
+
"groupId": "test1",
|
|
278
|
+
"threshold": 0.5,
|
|
279
|
+
};
|
|
280
|
+
export var enrollmentRequest = {
|
|
281
|
+
"externalId": "test0",
|
|
282
|
+
"groupId": "test1",
|
|
283
|
+
"trustedImage": img1,
|
|
284
|
+
};
|
|
285
|
+
export var enrollmentRequest2 = {
|
|
286
|
+
"externalId": "test0",
|
|
287
|
+
"groupId": "test1",
|
|
288
|
+
"trustedImageUrl": "test2",
|
|
289
|
+
};
|
|
231
290
|
export var livenessBackendException = {
|
|
232
291
|
"code": 200,
|
|
233
292
|
"message": "No license",
|
|
234
|
-
}
|
|
293
|
+
};
|
|
235
294
|
export var livenessException = {
|
|
236
295
|
"code": 0,
|
|
237
296
|
"message": "FaceSDK Core is not initialized",
|
|
238
297
|
"underlyingError": livenessBackendException
|
|
239
|
-
}
|
|
298
|
+
};
|
|
240
299
|
export var livenessResponse = {
|
|
241
300
|
"image": img1,
|
|
242
301
|
"liveness": 0,
|
|
@@ -244,28 +303,46 @@ export var livenessResponse = {
|
|
|
244
303
|
"transactionId": "test1",
|
|
245
304
|
"estimatedAge": 1,
|
|
246
305
|
"error": livenessException,
|
|
247
|
-
}
|
|
306
|
+
};
|
|
248
307
|
export var livenessNotification = {
|
|
249
308
|
"status": 0,
|
|
250
309
|
"response": livenessResponse,
|
|
251
|
-
}
|
|
310
|
+
};
|
|
311
|
+
export var errorResponse = {
|
|
312
|
+
"code": 0,
|
|
313
|
+
"message": "test0",
|
|
314
|
+
};
|
|
315
|
+
export var enrollmentResponse = {
|
|
316
|
+
"personId": "test0",
|
|
317
|
+
"externalId": "test1",
|
|
318
|
+
"error": errorResponse,
|
|
319
|
+
};
|
|
320
|
+
export var verifyMatchResponse = {
|
|
321
|
+
"passed": true,
|
|
322
|
+
"similarity": 0.5,
|
|
323
|
+
};
|
|
324
|
+
export var verificationResponse = {
|
|
325
|
+
"passed": true,
|
|
326
|
+
"match": verifyMatchResponse,
|
|
327
|
+
"error": errorResponse,
|
|
328
|
+
};
|
|
252
329
|
|
|
253
330
|
export var matchFacesConfig = {
|
|
254
331
|
"processingMode": 0,
|
|
255
332
|
"locationTrackingEnabled": false,
|
|
256
|
-
}
|
|
333
|
+
};
|
|
257
334
|
export var matchFacesImage = {
|
|
258
335
|
"image": img1,
|
|
259
336
|
"imageType": 1,
|
|
260
337
|
"detectAll": true,
|
|
261
338
|
"identifier": "test"
|
|
262
|
-
}
|
|
339
|
+
};
|
|
263
340
|
export var matchFacesRequest = {
|
|
264
341
|
"images": [matchFacesImage, matchFacesImage, matchFacesImage],
|
|
265
342
|
"outputImageParams": outputImageParams,
|
|
266
343
|
"tag": "test",
|
|
267
344
|
"metadata": customJson,
|
|
268
|
-
}
|
|
345
|
+
};
|
|
269
346
|
export var matchFacesDetectionFace = {
|
|
270
347
|
"faceIndex": 0,
|
|
271
348
|
"landmarks": [point, point, point],
|
|
@@ -273,13 +350,13 @@ export var matchFacesDetectionFace = {
|
|
|
273
350
|
"rotationAngle": 0.5,
|
|
274
351
|
"originalRect": rect,
|
|
275
352
|
"crop": img1,
|
|
276
|
-
}
|
|
277
|
-
export var matchFacesBackendException = {"code": 0, "message": "Image is empty."}
|
|
353
|
+
};
|
|
354
|
+
export var matchFacesBackendException = {"code": 0, "message": "Image is empty."};
|
|
278
355
|
export var matchFacesException = {
|
|
279
356
|
"code": 0,
|
|
280
357
|
"message": "Image is empty.",
|
|
281
358
|
"underlyingError": matchFacesBackendException,
|
|
282
|
-
}
|
|
359
|
+
};
|
|
283
360
|
export var matchFacesDetection = {
|
|
284
361
|
"imageIndex": 0,
|
|
285
362
|
"image": matchFacesImage,
|
|
@@ -289,36 +366,36 @@ export var matchFacesDetection = {
|
|
|
289
366
|
matchFacesDetectionFace
|
|
290
367
|
],
|
|
291
368
|
"error": matchFacesException,
|
|
292
|
-
}
|
|
369
|
+
};
|
|
293
370
|
export var comparedFace = {
|
|
294
371
|
"imageIndex": 0,
|
|
295
372
|
"image": matchFacesImage,
|
|
296
373
|
"faceIndex": 1,
|
|
297
374
|
"face": matchFacesDetectionFace,
|
|
298
|
-
}
|
|
375
|
+
};
|
|
299
376
|
export var comparedFacesPair = {
|
|
300
377
|
"first": comparedFace,
|
|
301
378
|
"second": comparedFace,
|
|
302
379
|
"similarity": 0.5,
|
|
303
380
|
"score": 1.5,
|
|
304
381
|
"error": matchFacesException,
|
|
305
|
-
}
|
|
382
|
+
};
|
|
306
383
|
export var matchFacesResponse = {
|
|
307
384
|
"results": [comparedFacesPair, comparedFacesPair, comparedFacesPair],
|
|
308
385
|
"detections": [matchFacesDetection, matchFacesDetection, matchFacesDetection],
|
|
309
386
|
"tag": "test",
|
|
310
387
|
"error": matchFacesException,
|
|
311
|
-
}
|
|
388
|
+
};
|
|
312
389
|
export var comparedFacesSplit = {
|
|
313
390
|
"matchedFaces": [comparedFacesPair, comparedFacesPair, comparedFacesPair],
|
|
314
391
|
"unmatchedFaces": [comparedFacesPair, comparedFacesPair, comparedFacesPair],
|
|
315
|
-
}
|
|
392
|
+
};
|
|
316
393
|
|
|
317
394
|
export var editGroupPersonsRequest = {
|
|
318
395
|
"personIdsToAdd": ["test1", "test2", "test3"],
|
|
319
396
|
"personIdsToRemove": ["test4", "test5", "test6"],
|
|
320
|
-
}
|
|
321
|
-
export var imageUpload = {"imageData": img1}
|
|
397
|
+
};
|
|
398
|
+
export var imageUpload = {"imageData": img1};
|
|
322
399
|
export var person = {
|
|
323
400
|
"name": "test1",
|
|
324
401
|
"updatedAt": "1969-07-20 20:18:04.000",
|
|
@@ -326,13 +403,13 @@ export var person = {
|
|
|
326
403
|
"id": "test3",
|
|
327
404
|
"metadata": customJson,
|
|
328
405
|
"createdAt": "1969-07-20 20:18:05.000",
|
|
329
|
-
}
|
|
406
|
+
};
|
|
330
407
|
export var personGroup = {
|
|
331
408
|
"name": "test1",
|
|
332
409
|
"id": "test3",
|
|
333
410
|
"metadata": customJson,
|
|
334
411
|
"createdAt": "1969-07-20 20:18:04.000",
|
|
335
|
-
}
|
|
412
|
+
};
|
|
336
413
|
export var personImage = {
|
|
337
414
|
"path": "test",
|
|
338
415
|
"url": "test1",
|
|
@@ -340,13 +417,13 @@ export var personImage = {
|
|
|
340
417
|
"id": "test3",
|
|
341
418
|
"metadata": customJson,
|
|
342
419
|
"createdAt": "1969-07-20 20:18:04.000",
|
|
343
|
-
}
|
|
420
|
+
};
|
|
344
421
|
export var searchPersonDetection = {
|
|
345
422
|
"landmarks": [point, point, point],
|
|
346
423
|
"rect": rect,
|
|
347
424
|
"crop": img1,
|
|
348
425
|
"rotationAngle": 0.5,
|
|
349
|
-
}
|
|
426
|
+
};
|
|
350
427
|
export var searchPersonImage = {
|
|
351
428
|
"similarity": 0.5,
|
|
352
429
|
"distance": 1.5,
|
|
@@ -356,7 +433,7 @@ export var searchPersonImage = {
|
|
|
356
433
|
"id": "test3",
|
|
357
434
|
"metadata": customJson,
|
|
358
435
|
"createdAt": "1969-07-20 20:18:04.000",
|
|
359
|
-
}
|
|
436
|
+
};
|
|
360
437
|
export var searchPerson = {
|
|
361
438
|
"images": [searchPersonImage, searchPersonImage, searchPersonImage],
|
|
362
439
|
"detection": searchPersonDetection,
|
|
@@ -366,7 +443,7 @@ export var searchPerson = {
|
|
|
366
443
|
"id": "test3",
|
|
367
444
|
"metadata": customJson,
|
|
368
445
|
"createdAt": "1969-07-20 20:18:05.000",
|
|
369
|
-
}
|
|
446
|
+
};
|
|
370
447
|
export var searchPersonRequest = {
|
|
371
448
|
"imageUpload": imageUpload,
|
|
372
449
|
"groupIdsForSearch": ["test1", "test2", "test3"],
|
|
@@ -375,4 +452,4 @@ export var searchPersonRequest = {
|
|
|
375
452
|
"tag": "test",
|
|
376
453
|
"detectAll": true,
|
|
377
454
|
"outputImageParams": outputImageParams,
|
|
378
|
-
}
|
|
455
|
+
};
|
package/test/package-lock.json
CHANGED
package/test/test.tsx
CHANGED
|
@@ -1,61 +1,69 @@
|
|
|
1
1
|
import { compare } from './utils'
|
|
2
|
-
import { ComparedFace, ComparedFacesPair, ComparedFacesSplit, Customization, DetectFaceResult, DetectFacesAttributeResult, DetectFacesBackendException, DetectFacesConfig, DetectFacesException, DetectFacesRequest, DetectFacesResponse, EditGroupPersonsRequest, FaceCaptureConfig, FaceCaptureException, FaceCaptureImage, FaceCaptureResponse, FaceSDKVersion, ImageQualityCharacteristic, ImageQualityRange, ImageQualityResult, ImageUpload, InitConfig, InitException, LicenseException, LivenessBackendException, LivenessConfig, LivenessException, LivenessNotification, LivenessResponse, MatchFacesBackendException, MatchFacesConfig, MatchFacesDetection, MatchFacesDetectionFace, MatchFacesException, MatchFacesImage, MatchFacesRequest, MatchFacesResponse, OutputImageCrop, OutputImageParams, Person, PersonGroup, PersonImage, Point, Rect, SearchPerson, SearchPersonDetection, SearchPersonImage, SearchPersonRequest, Size } from '@regulaforensics/face-sdk/www/capacitor'
|
|
3
|
-
import { comparedFace, comparedFacesPair, comparedFacesSplit, customization, detectFaceResult, detectFacesAttributeResult, detectFacesBackendException, detectFacesConfig, detectFacesException, detectFacesRequest, detectFacesResponse, editGroupPersonsRequest, faceCaptureConfig, faceCaptureException, faceCaptureImage, faceCaptureResponse, faceSDKVersion, imageQualityCharacteristic, imageQualityRange, imageQualityResult, imageUpload, initConfig, initException, licenseException, livenessBackendException, livenessConfig, livenessException, livenessNotification, livenessResponse, matchFacesBackendException, matchFacesConfig, matchFacesDetection, matchFacesDetectionFace, matchFacesException, matchFacesImage, matchFacesRequest, matchFacesResponse, outputImageCrop, outputImageParams, person, personGroup, personImage, point, rect, searchPerson, searchPersonDetection, searchPersonImage, searchPersonRequest, size } from './json'
|
|
4
|
-
|
|
5
|
-
compare('customization', customization, Customization.fromJson)
|
|
6
|
-
|
|
7
|
-
compare('point', point, Point.fromJson)
|
|
8
|
-
compare('rect', rect, Rect.fromJson)
|
|
9
|
-
compare('size', size, Size.fromJson)
|
|
10
|
-
compare('outputImageCrop', outputImageCrop, OutputImageCrop.fromJson)
|
|
11
|
-
compare('outputImageParams', outputImageParams, OutputImageParams.fromJson)
|
|
12
|
-
|
|
13
|
-
compare('imageQualityRange', imageQualityRange, ImageQualityRange.fromJson)
|
|
14
|
-
compare('imageQualityResult', imageQualityResult, ImageQualityResult.fromJson)
|
|
15
|
-
compare('imageQualityCharacteristic', imageQualityCharacteristic, ImageQualityCharacteristic.fromJson)
|
|
16
|
-
|
|
17
|
-
compare('faceSDKVersion', faceSDKVersion, FaceSDKVersion.fromJson)
|
|
18
|
-
compare('initConfig', initConfig, InitConfig.fromJson)
|
|
19
|
-
compare('licenseException', licenseException, LicenseException.fromJson)
|
|
20
|
-
compare('initException', initException, InitException.fromJson)
|
|
21
|
-
|
|
22
|
-
compare('detectFacesAttributeResult', detectFacesAttributeResult, DetectFacesAttributeResult.fromJson)
|
|
23
|
-
compare('detectFaceResult', detectFaceResult, DetectFaceResult.fromJson)
|
|
24
|
-
compare('detectFacesConfig', detectFacesConfig, DetectFacesConfig.fromJson)
|
|
25
|
-
compare('detectFacesRequest', detectFacesRequest, DetectFacesRequest.fromJson)
|
|
26
|
-
compare('detectFacesBackendException', detectFacesBackendException, DetectFacesBackendException.fromJson)
|
|
27
|
-
compare('detectFacesException', detectFacesException, DetectFacesException.fromJson)
|
|
28
|
-
compare('detectFacesResponse', detectFacesResponse, DetectFacesResponse.fromJson)
|
|
29
|
-
|
|
30
|
-
compare('faceCaptureConfig', faceCaptureConfig, FaceCaptureConfig.fromJson)
|
|
31
|
-
compare('faceCaptureImage', faceCaptureImage, FaceCaptureImage.fromJson)
|
|
32
|
-
compare('faceCaptureException', faceCaptureException, FaceCaptureException.fromJson)
|
|
33
|
-
compare('faceCaptureResponse', faceCaptureResponse, FaceCaptureResponse.fromJson)
|
|
34
|
-
|
|
35
|
-
compare('livenessConfig', livenessConfig, LivenessConfig.fromJson)
|
|
36
|
-
compare('
|
|
37
|
-
compare('
|
|
38
|
-
compare('
|
|
39
|
-
compare('
|
|
40
|
-
|
|
41
|
-
compare('
|
|
42
|
-
compare('
|
|
43
|
-
compare('
|
|
44
|
-
compare('
|
|
45
|
-
compare('
|
|
46
|
-
compare('
|
|
47
|
-
compare('
|
|
48
|
-
|
|
49
|
-
compare('
|
|
50
|
-
compare('
|
|
51
|
-
compare('
|
|
52
|
-
|
|
53
|
-
compare('
|
|
54
|
-
compare('
|
|
55
|
-
compare('
|
|
56
|
-
compare('
|
|
57
|
-
compare('
|
|
58
|
-
compare('
|
|
59
|
-
compare('
|
|
60
|
-
|
|
61
|
-
compare('
|
|
2
|
+
import { ComparedFace, ComparedFacesPair, ComparedFacesSplit, Customization, DetectFaceResult, DetectFacesAttributeResult, DetectFacesBackendException, DetectFacesConfig, DetectFacesException, DetectFacesRequest, DetectFacesResponse, EditGroupPersonsRequest, FaceCaptureConfig, FaceCaptureException, FaceCaptureImage, FaceCaptureResponse, FaceSDKVersion, ImageQualityCharacteristic, ImageQualityRange, ImageQualityResult, ImageUpload, InitConfig, InitException, LicenseException, LivenessBackendException, LivenessConfig, LivenessException, LivenessNotification, LivenessResponse, MatchFacesBackendException, MatchFacesConfig, MatchFacesDetection, MatchFacesDetectionFace, MatchFacesException, MatchFacesImage, MatchFacesRequest, MatchFacesResponse, OutputImageCrop, OutputImageParams, Person, PersonGroup, PersonImage, Point, Rect, SearchPerson, SearchPersonDetection, SearchPersonImage, SearchPersonRequest, Size, EnrollmentConfig, VerificationConfig, EnrollmentRequest, ErrorResponse, EnrollmentResponse, VerifyMatchResponse, VerificationResponse } from '@regulaforensics/face-sdk/www/capacitor'
|
|
3
|
+
import { comparedFace, comparedFacesPair, comparedFacesSplit, customization, detectFaceResult, detectFacesAttributeResult, detectFacesBackendException, detectFacesConfig, detectFacesException, detectFacesRequest, detectFacesResponse, editGroupPersonsRequest, faceCaptureConfig, faceCaptureException, faceCaptureImage, faceCaptureResponse, faceSDKVersion, imageQualityCharacteristic, imageQualityRange, imageQualityResult, imageUpload, initConfig, initException, licenseException, livenessBackendException, livenessConfig, livenessException, livenessNotification, livenessResponse, matchFacesBackendException, matchFacesConfig, matchFacesDetection, matchFacesDetectionFace, matchFacesException, matchFacesImage, matchFacesRequest, matchFacesResponse, outputImageCrop, outputImageParams, person, personGroup, personImage, point, rect, searchPerson, searchPersonDetection, searchPersonImage, searchPersonRequest, size, enrollmentConfig, verificationConfig, enrollmentRequest, enrollmentRequest2, errorResponse, enrollmentResponse, verifyMatchResponse, verificationResponse } from './json'
|
|
4
|
+
|
|
5
|
+
compare('customization', customization, Customization.fromJson);
|
|
6
|
+
|
|
7
|
+
compare('point', point, Point.fromJson);
|
|
8
|
+
compare('rect', rect, Rect.fromJson);
|
|
9
|
+
compare('size', size, Size.fromJson);
|
|
10
|
+
compare('outputImageCrop', outputImageCrop, OutputImageCrop.fromJson);
|
|
11
|
+
compare('outputImageParams', outputImageParams, OutputImageParams.fromJson);
|
|
12
|
+
|
|
13
|
+
compare('imageQualityRange', imageQualityRange, ImageQualityRange.fromJson);
|
|
14
|
+
compare('imageQualityResult', imageQualityResult, ImageQualityResult.fromJson);
|
|
15
|
+
compare('imageQualityCharacteristic', imageQualityCharacteristic, ImageQualityCharacteristic.fromJson);
|
|
16
|
+
|
|
17
|
+
compare('faceSDKVersion', faceSDKVersion, FaceSDKVersion.fromJson);
|
|
18
|
+
compare('initConfig', initConfig, InitConfig.fromJson);
|
|
19
|
+
compare('licenseException', licenseException, LicenseException.fromJson);
|
|
20
|
+
compare('initException', initException, InitException.fromJson);
|
|
21
|
+
|
|
22
|
+
compare('detectFacesAttributeResult', detectFacesAttributeResult, DetectFacesAttributeResult.fromJson);
|
|
23
|
+
compare('detectFaceResult', detectFaceResult, DetectFaceResult.fromJson);
|
|
24
|
+
compare('detectFacesConfig', detectFacesConfig, DetectFacesConfig.fromJson);
|
|
25
|
+
compare('detectFacesRequest', detectFacesRequest, DetectFacesRequest.fromJson);
|
|
26
|
+
compare('detectFacesBackendException', detectFacesBackendException, DetectFacesBackendException.fromJson);
|
|
27
|
+
compare('detectFacesException', detectFacesException, DetectFacesException.fromJson);
|
|
28
|
+
compare('detectFacesResponse', detectFacesResponse, DetectFacesResponse.fromJson);
|
|
29
|
+
|
|
30
|
+
compare('faceCaptureConfig', faceCaptureConfig, FaceCaptureConfig.fromJson);
|
|
31
|
+
compare('faceCaptureImage', faceCaptureImage, FaceCaptureImage.fromJson);
|
|
32
|
+
compare('faceCaptureException', faceCaptureException, FaceCaptureException.fromJson);
|
|
33
|
+
compare('faceCaptureResponse', faceCaptureResponse, FaceCaptureResponse.fromJson);
|
|
34
|
+
|
|
35
|
+
compare('livenessConfig', livenessConfig, LivenessConfig.fromJson);
|
|
36
|
+
compare('enrollmentConfig', enrollmentConfig, EnrollmentConfig.fromJson);
|
|
37
|
+
compare('verificationConfig', verificationConfig, VerificationConfig.fromJson);
|
|
38
|
+
compare('enrollmentRequest', enrollmentRequest, EnrollmentRequest.fromJson);
|
|
39
|
+
compare('enrollmentRequest2', enrollmentRequest2, EnrollmentRequest.fromJson);
|
|
40
|
+
compare('livenessBackendException', livenessBackendException, LivenessBackendException.fromJson);
|
|
41
|
+
compare('livenessException', livenessException, LivenessException.fromJson);
|
|
42
|
+
compare('livenessResponse', livenessResponse, LivenessResponse.fromJson);
|
|
43
|
+
compare('livenessNotification', livenessNotification, LivenessNotification.fromJson);
|
|
44
|
+
compare('errorResponse', errorResponse, ErrorResponse.fromJson);
|
|
45
|
+
compare('enrollmentResponse', enrollmentResponse, EnrollmentResponse.fromJson);
|
|
46
|
+
compare('verifyMatchResponse', verifyMatchResponse, VerifyMatchResponse.fromJson);
|
|
47
|
+
compare('verificationResponse', verificationResponse, VerificationResponse.fromJson);
|
|
48
|
+
|
|
49
|
+
compare('matchFacesConfig', matchFacesConfig, MatchFacesConfig.fromJson);
|
|
50
|
+
compare('matchFacesImage', matchFacesImage, MatchFacesImage.fromJson);
|
|
51
|
+
compare('matchFacesRequest', matchFacesRequest, MatchFacesRequest.fromJson);
|
|
52
|
+
compare('matchFacesDetectionFace', matchFacesDetectionFace, MatchFacesDetectionFace.fromJson);
|
|
53
|
+
compare('matchFacesBackendException', matchFacesBackendException, MatchFacesBackendException.fromJson);
|
|
54
|
+
compare('matchFacesException', matchFacesException, MatchFacesException.fromJson);
|
|
55
|
+
compare('matchFacesDetection', matchFacesDetection, MatchFacesDetection.fromJson);
|
|
56
|
+
compare('comparedFace', comparedFace, ComparedFace.fromJson);
|
|
57
|
+
compare('comparedFacesPair', comparedFacesPair, ComparedFacesPair.fromJson);
|
|
58
|
+
compare('matchFacesResponse', matchFacesResponse, MatchFacesResponse.fromJson);
|
|
59
|
+
compare('comparedFacesSplit', comparedFacesSplit, ComparedFacesSplit.fromJson);
|
|
60
|
+
|
|
61
|
+
compare('editGroupPersonsRequest', editGroupPersonsRequest, EditGroupPersonsRequest.fromJson);
|
|
62
|
+
compare('imageUpload', imageUpload, ImageUpload.fromJson);
|
|
63
|
+
compare('person', person, Person.fromJson);
|
|
64
|
+
compare('personGroup', personGroup, PersonGroup.fromJson);
|
|
65
|
+
compare('personImage', personImage, PersonImage.fromJson);
|
|
66
|
+
compare('searchPersonDetection', searchPersonDetection, SearchPersonDetection.fromJson);
|
|
67
|
+
compare('searchPersonImage', searchPersonImage, SearchPersonImage.fromJson);
|
|
68
|
+
compare('searchPerson', searchPerson, SearchPerson.fromJson);
|
|
69
|
+
compare('searchPersonRequest', searchPersonRequest, SearchPersonRequest.fromJson);
|
|
@@ -73,6 +73,36 @@ export class CustomizationImages {
|
|
|
73
73
|
this._set({ "retryScreenHintGeo": val })
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
_retryScreenHintBadSelfieQuality
|
|
77
|
+
set retryScreenHintBadSelfieQuality(val) {
|
|
78
|
+
this._retryScreenHintBadSelfieQuality = val
|
|
79
|
+
this._set({ "retryScreenHintBadSelfieQuality": val })
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
_retryScreenHintCleanLens
|
|
83
|
+
set retryScreenHintCleanLens(val) {
|
|
84
|
+
this._retryScreenHintCleanLens = val
|
|
85
|
+
this._set({ "retryScreenHintCleanLens": val })
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
_retryScreenHintAddIllumination
|
|
89
|
+
set retryScreenHintAddIllumination(val) {
|
|
90
|
+
this._retryScreenHintAddIllumination = val
|
|
91
|
+
this._set({ "retryScreenHintAddIllumination": val })
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
_retryScreenHintChangeBackground
|
|
95
|
+
set retryScreenHintChangeBackground(val) {
|
|
96
|
+
this._retryScreenHintChangeBackground = val
|
|
97
|
+
this._set({ "retryScreenHintChangeBackground": val })
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
_retryScreenHintFaceOcclusions
|
|
101
|
+
set retryScreenHintFaceOcclusions(val) {
|
|
102
|
+
this._retryScreenHintFaceOcclusions = val
|
|
103
|
+
this._set({ "retryScreenHintFaceOcclusions": val })
|
|
104
|
+
}
|
|
105
|
+
|
|
76
106
|
_processingScreenCloseButton
|
|
77
107
|
set processingScreenCloseButton(val) {
|
|
78
108
|
this._processingScreenCloseButton = val
|
|
@@ -100,6 +130,11 @@ export class CustomizationImages {
|
|
|
100
130
|
result._retryScreenHintEnvironment = jsonObject["retryScreenHintEnvironment"]
|
|
101
131
|
result._retryScreenHintSubject = jsonObject["retryScreenHintSubject"]
|
|
102
132
|
result._retryScreenHintGeo = jsonObject["retryScreenHintGeo"]
|
|
133
|
+
result._retryScreenHintBadSelfieQuality = jsonObject["retryScreenHintBadSelfieQuality"]
|
|
134
|
+
result._retryScreenHintCleanLens = jsonObject["retryScreenHintCleanLens"]
|
|
135
|
+
result._retryScreenHintAddIllumination = jsonObject["retryScreenHintAddIllumination"]
|
|
136
|
+
result._retryScreenHintChangeBackground = jsonObject["retryScreenHintChangeBackground"]
|
|
137
|
+
result._retryScreenHintFaceOcclusions = jsonObject["retryScreenHintFaceOcclusions"]
|
|
103
138
|
result._processingScreenCloseButton = jsonObject["processingScreenCloseButton"]
|
|
104
139
|
result._successScreenImage = jsonObject["successScreenImage"]
|
|
105
140
|
|
|
@@ -120,6 +155,11 @@ export class CustomizationImages {
|
|
|
120
155
|
"retryScreenHintEnvironment": this._retryScreenHintEnvironment,
|
|
121
156
|
"retryScreenHintSubject": this._retryScreenHintSubject,
|
|
122
157
|
"retryScreenHintGeo": this._retryScreenHintGeo,
|
|
158
|
+
"retryScreenHintBadSelfieQuality": this._retryScreenHintBadSelfieQuality,
|
|
159
|
+
"retryScreenHintCleanLens": this._retryScreenHintCleanLens,
|
|
160
|
+
"retryScreenHintAddIllumination": this._retryScreenHintAddIllumination,
|
|
161
|
+
"retryScreenHintChangeBackground": this._retryScreenHintChangeBackground,
|
|
162
|
+
"retryScreenHintFaceOcclusions": this._retryScreenHintFaceOcclusions,
|
|
123
163
|
"processingScreenCloseButton": this._processingScreenCloseButton,
|
|
124
164
|
"successScreenImage": this._successScreenImage,
|
|
125
165
|
}
|