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