@regulaforensics/face-sdk 6.3.82-beta → 6.3.83-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/README.md +3 -2
- package/RNFaceSDK.podspec +3 -3
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +4 -2
- package/examples/capacitor/README.md +4 -4
- package/examples/capacitor/android/build.gradle +2 -2
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +2 -2
- package/examples/capacitor/ios/App/Podfile +1 -1
- package/examples/capacitor/package.json +13 -13
- package/examples/capacitor/scripts/android.sh +9 -0
- package/examples/capacitor/scripts/ios.sh +8 -0
- package/examples/capacitor/scripts/setup.sh +4 -0
- package/examples/cordova/README.md +4 -4
- package/examples/cordova/config.xml +2 -2
- package/examples/cordova/package.json +10 -16
- package/examples/cordova/scripts/android.sh +8 -0
- package/examples/cordova/scripts/ios.sh +8 -0
- package/examples/cordova/scripts/setup.sh +5 -0
- package/examples/cordova/www/js/index.js +13 -13
- package/examples/ionic/README.md +4 -4
- package/examples/ionic/config.xml +2 -2
- package/examples/ionic/package.json +16 -17
- package/examples/ionic/scripts/android.sh +8 -0
- package/examples/ionic/scripts/ios.sh +8 -0
- package/examples/ionic/scripts/setup.sh +5 -0
- package/examples/react-native/Gemfile +1 -0
- package/examples/react-native/Gemfile.lock +26 -23
- package/examples/react-native/README.md +4 -4
- package/examples/react-native/android/app/src/main/java/com/regula/face/api/MainApplication.kt +2 -1
- package/examples/react-native/android/build.gradle +3 -3
- package/examples/react-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/react-native/android/gradle/wrapper/gradle-wrapper.properties +2 -2
- package/examples/react-native/android/gradlew +4 -1
- package/examples/react-native/ios/Podfile.lock +319 -303
- package/examples/react-native/package-lock.json +6101 -6298
- package/examples/react-native/package.json +20 -18
- package/examples/react-native/scripts/android.sh +8 -0
- package/examples/react-native/scripts/ios.sh +8 -0
- package/examples/react-native/scripts/setup.sh +8 -0
- package/package.json +2 -2
- package/plugin.xml +3 -2
- package/www/capacitor/liveness/liveness_backend_exception.js +3 -0
- package/www/cordova.js +4 -1
- package/www/react-native/liveness/liveness_backend_exception.js +3 -0
- package/www/types/customization/camera_position.d.ts +9 -0
- package/www/types/customization/customization.d.ts +22 -0
- package/www/types/customization/customization_colors.d.ts +6 -0
- package/www/types/customization/customization_fonts.d.ts +6 -0
- package/www/types/customization/customization_images.d.ts +6 -0
- package/www/types/customization/font.d.ts +19 -0
- package/www/types/detect_faces/detect_faces_config.d.ts +18 -0
- package/www/types/detect_faces/detect_faces_exception.d.ts +3 -0
- package/www/types/detect_faces/detect_faces_request.d.ts +53 -0
- package/www/types/face_capture/face_capture_config.d.ts +9 -0
- package/www/types/face_capture/face_capture_image.d.ts +24 -0
- package/www/types/image_params/output_image_crop.d.ts +24 -0
- package/www/types/image_params/output_image_params.d.ts +15 -0
- package/www/types/image_params/point.d.ts +3 -0
- package/www/types/image_quality/image_quality_characteristic.d.ts +3 -0
- package/www/types/image_quality/image_quality_characteristic_name.d.ts +3 -0
- package/www/types/image_quality/image_quality_group.d.ts +263 -0
- package/www/types/index.d.ts +40 -10
- package/www/types/init/face_sdk_version.d.ts +9 -0
- package/www/types/init/init_config.d.ts +9 -0
- package/www/types/liveness/liveness_backend_exception.d.ts +3 -0
- package/www/types/liveness/liveness_config.d.ts +66 -0
- package/www/types/liveness/liveness_notification.d.ts +3 -0
- package/www/types/liveness/liveness_response.d.ts +24 -0
- package/www/types/match_faces/compared_face.d.ts +18 -0
- package/www/types/match_faces/compared_faces_pair.d.ts +24 -0
- package/www/types/match_faces/match_faces_detection.d.ts +18 -0
- package/www/types/match_faces/match_faces_detection_face.d.ts +30 -0
- package/www/types/match_faces/match_faces_image.d.ts +18 -0
- package/www/types/match_faces/match_faces_request.d.ts +16 -0
- package/www/types/match_faces/match_faces_response.d.ts +15 -0
- package/www/types/person_database/image_upload.d.ts +14 -0
- package/www/types/person_database/person.d.ts +23 -0
- package/www/types/person_database/person_database.d.ts +3 -0
- package/www/types/person_database/person_group.d.ts +14 -0
- package/www/types/person_database/search_person.d.ts +16 -0
- package/www/types/person_database/search_person_image.d.ts +13 -0
- package/www/types/person_database/search_person_request.d.ts +24 -0
|
@@ -1,154 +1,417 @@
|
|
|
1
1
|
import { ImageQualityCharacteristic } from './image_quality_characteristic'
|
|
2
2
|
import { ImageQualityRange } from './image_quality_range'
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Image Quality characteristic group
|
|
6
|
+
*/
|
|
4
7
|
export class ImageQualityGroup {
|
|
8
|
+
/**
|
|
9
|
+
* The Image characteristics group includes width, height, width to height proportions,
|
|
10
|
+
* the image RGB channels number, and padding ratio.
|
|
11
|
+
*/
|
|
5
12
|
static get image(): _Image
|
|
13
|
+
/**
|
|
14
|
+
* The Head size and position group includes the position of the "middle point"
|
|
15
|
+
* relative to the width and height of the image, the head width to the image
|
|
16
|
+
* width and height ratio, inter-eye distance, yaw, pitch, roll.
|
|
17
|
+
*/
|
|
6
18
|
static get headSizeAndPosition(): _HeadSizeAndPosition
|
|
19
|
+
/**
|
|
20
|
+
* The Face image quality group includes blur and noise levels, unnatural skin tone,
|
|
21
|
+
* and face dynamic range checks.
|
|
22
|
+
*/
|
|
7
23
|
static get faceImage(): _FaceImage
|
|
24
|
+
/**
|
|
25
|
+
* The Eyes characteristics group checks eyes closure, occlusion, hair coverage,
|
|
26
|
+
* red eye effect, and whether a person is looking directly at the camera.
|
|
27
|
+
*/
|
|
8
28
|
static get eyes(): _Eyes
|
|
29
|
+
/**
|
|
30
|
+
* The Shadows and lightning characteristics group checks whether a photo
|
|
31
|
+
* is too dark or overexposed, if there are glares or shadows on the face.
|
|
32
|
+
*/
|
|
9
33
|
static get shadowsAndLightning(): _ShadowsAndLightning
|
|
34
|
+
/**
|
|
35
|
+
* The Pose and expression characteristics group checks the shoulders pose,
|
|
36
|
+
* face expression, whether there is an open mouth or smile.
|
|
37
|
+
*/
|
|
10
38
|
static get poseAndExpression(): _PoseAndExpression
|
|
39
|
+
/**
|
|
40
|
+
* The Head occlusion group includes checks of glasses, face occlusion, and head coverage.
|
|
41
|
+
*/
|
|
11
42
|
static get headOcclusion(): _HeadOcclusion
|
|
43
|
+
/**
|
|
44
|
+
* The Background characteristics group checks the background uniformity,
|
|
45
|
+
* shadows on background, and other faces presence on the picture.
|
|
46
|
+
*/
|
|
12
47
|
static get background(): _Background
|
|
13
48
|
}
|
|
14
49
|
|
|
15
50
|
export class _Image {
|
|
51
|
+
/**
|
|
52
|
+
* The image width, pixels.
|
|
53
|
+
* Doesn't have recommended value.
|
|
54
|
+
*/
|
|
16
55
|
imageWidth(range: ImageQualityRange): ImageQualityCharacteristic
|
|
17
56
|
|
|
57
|
+
/**
|
|
58
|
+
* The image height, pixels.
|
|
59
|
+
* Doesn't have recommended value.
|
|
60
|
+
*/
|
|
18
61
|
imageHeight(range: ImageQualityRange): ImageQualityCharacteristic
|
|
19
62
|
|
|
63
|
+
/**
|
|
64
|
+
* The image width to height proportion.
|
|
65
|
+
* Doesn't have recommended value.
|
|
66
|
+
*/
|
|
20
67
|
imageWidthToHeight(range: ImageQualityRange): ImageQualityCharacteristic
|
|
21
68
|
|
|
69
|
+
/**
|
|
70
|
+
* The image RGB channels number.
|
|
71
|
+
* Doesn't have recommended value.
|
|
72
|
+
*
|
|
73
|
+
* @param channelsNumber - 3 is for RGB images.
|
|
74
|
+
*/
|
|
22
75
|
imageChannelsNumber(channelsNumber: number): ImageQualityCharacteristic
|
|
23
76
|
|
|
77
|
+
/**
|
|
78
|
+
* The percentage of the area of the image that was "padded" during alignment.
|
|
79
|
+
* The characteristic is needed to determine if the head goes beyond the image.
|
|
80
|
+
* The range is from 0 to 1 where 0 is 0% of the image is "padded".
|
|
81
|
+
* Doesn't have recommended value.
|
|
82
|
+
*/
|
|
24
83
|
paddingRatio(range: ImageQualityRange): ImageQualityCharacteristic
|
|
25
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Whether the face in the image is a photo, not a drawing, sculpture, cartoon, etc.
|
|
87
|
+
* If the returned value is out of the recommended range, the image is not a photo.
|
|
88
|
+
* The range is from 0 to 1 where 0 means the image is a photo.
|
|
89
|
+
*/
|
|
26
90
|
artFace(): ImageQualityCharacteristic
|
|
27
91
|
|
|
92
|
+
/**
|
|
93
|
+
* All Group characteristics with default (recommended) values.
|
|
94
|
+
* Doesn't include characteristics without default values.
|
|
95
|
+
*/
|
|
28
96
|
allRecommended(): Array<ImageQualityCharacteristic>
|
|
29
97
|
|
|
30
98
|
private constructor()
|
|
31
99
|
}
|
|
32
100
|
|
|
33
101
|
export class _HeadSizeAndPosition {
|
|
102
|
+
/**
|
|
103
|
+
* The position of the "middle point" (the middle of the line connecting the eye centers)
|
|
104
|
+
* relative to the width of the image.
|
|
105
|
+
* The range is from 0 to 1 where range [0.5, 0.5] is for "middle point" strictly in the center .
|
|
106
|
+
*/
|
|
34
107
|
faceMidPointHorizontalPosition(): ImageQualityCharacteristic
|
|
35
108
|
|
|
109
|
+
/**
|
|
110
|
+
* The position of the "middle point" (the middle of the line connecting the eye centers)
|
|
111
|
+
* relative to the height of the image.
|
|
112
|
+
* The range is from 0 to 1 where range [0.5, 0.5] is for "middle point" strictly in the center .
|
|
113
|
+
*/
|
|
36
114
|
faceMidPointVerticalPosition(): ImageQualityCharacteristic
|
|
37
115
|
|
|
116
|
+
/**
|
|
117
|
+
* The head width to the image width ratio.
|
|
118
|
+
* The range is from 0 to 1.
|
|
119
|
+
*/
|
|
38
120
|
headWidthRatio(): ImageQualityCharacteristic
|
|
39
121
|
|
|
122
|
+
/**
|
|
123
|
+
* The head height to the image height ratio.
|
|
124
|
+
* The range is from 0 to 1.
|
|
125
|
+
*/
|
|
40
126
|
headHeightRatio(): ImageQualityCharacteristic
|
|
41
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Inter-eye distance — the length of the line connecting the eye centers of the left and right eye, pixels.
|
|
130
|
+
*/
|
|
42
131
|
eyesDistance(): ImageQualityCharacteristic
|
|
43
132
|
|
|
133
|
+
/**
|
|
134
|
+
* The yaw of the head, degrees.
|
|
135
|
+
* The range is from -90 to 90. Range value [0, 0] for strictly stright head position.
|
|
136
|
+
*/
|
|
44
137
|
yaw(): ImageQualityCharacteristic
|
|
45
138
|
|
|
139
|
+
/**
|
|
140
|
+
* The pitch of the head, degrees.
|
|
141
|
+
* The range is from -90 to 90. Range value [0, 0] for strictly stright head position.
|
|
142
|
+
*/
|
|
46
143
|
pitch(): ImageQualityCharacteristic
|
|
47
144
|
|
|
145
|
+
/**
|
|
146
|
+
* The roll of the head, degrees.
|
|
147
|
+
* The range is from -90 to 90. Range value [0, 0] for strictly stright head position.
|
|
148
|
+
*/
|
|
48
149
|
roll(): ImageQualityCharacteristic
|
|
49
150
|
|
|
151
|
+
/**
|
|
152
|
+
* All Group characteristics with default (recommended) values.
|
|
153
|
+
* Doesn't include characteristics without default values.
|
|
154
|
+
*/
|
|
50
155
|
allRecommended(): Array<ImageQualityCharacteristic>
|
|
51
156
|
|
|
52
157
|
private constructor()
|
|
53
158
|
}
|
|
54
159
|
|
|
55
160
|
export class _FaceImage {
|
|
161
|
+
/**
|
|
162
|
+
* The blur level.
|
|
163
|
+
* The range is from 0 to 1 where 0 is the absence of blur effect
|
|
164
|
+
*/
|
|
56
165
|
blurLevel(): ImageQualityCharacteristic
|
|
57
166
|
|
|
167
|
+
/**
|
|
168
|
+
* The noise level.
|
|
169
|
+
* The range is from 0 to 1 where 0 is minimal noise level.
|
|
170
|
+
*/
|
|
58
171
|
noiseLevel(): ImageQualityCharacteristic
|
|
59
172
|
|
|
173
|
+
/**
|
|
174
|
+
* The true-colour representation of the skin colour.
|
|
175
|
+
* The range is from 0 to 1.
|
|
176
|
+
*/
|
|
60
177
|
unnaturalSkinTone(): ImageQualityCharacteristic
|
|
61
178
|
|
|
179
|
+
/**
|
|
180
|
+
* The range of tonal difference between the lightest light and darkest dark of an image, bits.
|
|
181
|
+
*/
|
|
62
182
|
faceDynamicRange(): ImageQualityCharacteristic
|
|
63
183
|
|
|
184
|
+
/**
|
|
185
|
+
* All Group characteristics with default (recommended) values.
|
|
186
|
+
* Doesn't include characteristics without default values.
|
|
187
|
+
*/
|
|
64
188
|
allRecommended(): Array<ImageQualityCharacteristic>
|
|
65
189
|
|
|
66
190
|
private constructor()
|
|
67
191
|
}
|
|
68
192
|
|
|
69
193
|
export class _Eyes {
|
|
194
|
+
/**
|
|
195
|
+
* Whether the right eye is closed.
|
|
196
|
+
* The range is from 0 to 1 where 1 is the eye is fully closed.
|
|
197
|
+
*/
|
|
70
198
|
eyeRightClosed(): ImageQualityCharacteristic
|
|
71
199
|
|
|
200
|
+
/**
|
|
201
|
+
* Whether the left eye is closed.
|
|
202
|
+
* The range is from 0 to 1 where 1 is the eye is fully closed.
|
|
203
|
+
*/
|
|
72
204
|
eyeLeftClosed(): ImageQualityCharacteristic
|
|
73
205
|
|
|
206
|
+
/**
|
|
207
|
+
* Whether the right eye is occluded.
|
|
208
|
+
* The range is from 0 to 1 where 1 is the eye is fully occluded.
|
|
209
|
+
*/
|
|
74
210
|
eyeRightOccluded(): ImageQualityCharacteristic
|
|
75
211
|
|
|
212
|
+
/**
|
|
213
|
+
* Whether the left eye is occluded.
|
|
214
|
+
* The range is from 0 to 1 where 1 is the eye is fully occluded.
|
|
215
|
+
*/
|
|
76
216
|
eyeLeftOccluded(): ImageQualityCharacteristic
|
|
77
217
|
|
|
218
|
+
/**
|
|
219
|
+
* Whether there is the red-eye effect.
|
|
220
|
+
* The range is from 0 to 1 where 0 is the absence of red-eye effect.
|
|
221
|
+
*/
|
|
78
222
|
eyesRed(): ImageQualityCharacteristic
|
|
79
223
|
|
|
224
|
+
/**
|
|
225
|
+
* Whether the right eye is covered with hair.
|
|
226
|
+
* The range is from 0 to 1 where 1 is 100% of the eye is covered by hair.
|
|
227
|
+
*/
|
|
80
228
|
eyeRightCoveredWithHair(): ImageQualityCharacteristic
|
|
81
229
|
|
|
230
|
+
/**
|
|
231
|
+
* Whether the left eye is covered with hair.
|
|
232
|
+
* The range is from 0 to 1 where 1 is 100% of the eye is covered by hair.
|
|
233
|
+
*/
|
|
82
234
|
eyeLeftCoveredWithHair(): ImageQualityCharacteristic
|
|
83
235
|
|
|
236
|
+
/**
|
|
237
|
+
* Whether the person is not looking directly at the camera.
|
|
238
|
+
* The range is from 0 to 1 where 0 is for absolutely direct look.
|
|
239
|
+
*/
|
|
84
240
|
offGaze(): ImageQualityCharacteristic
|
|
85
241
|
|
|
242
|
+
/**
|
|
243
|
+
* All Group characteristics with default (recommended) values.
|
|
244
|
+
* Doesn't include characteristics without default values.
|
|
245
|
+
*/
|
|
86
246
|
allRecommended(): Array<ImageQualityCharacteristic>
|
|
87
247
|
|
|
88
248
|
private constructor()
|
|
89
249
|
}
|
|
90
250
|
|
|
91
251
|
export class _ShadowsAndLightning {
|
|
252
|
+
/**
|
|
253
|
+
* Whether the photo is too dark.
|
|
254
|
+
* The range is from 0 to 1.
|
|
255
|
+
*/
|
|
92
256
|
tooDark(): ImageQualityCharacteristic
|
|
93
257
|
|
|
258
|
+
/**
|
|
259
|
+
* Whether the photo is overexposed.
|
|
260
|
+
* The range is from 0 to 1.
|
|
261
|
+
*/
|
|
94
262
|
tooLight(): ImageQualityCharacteristic
|
|
95
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Whether there is glare on the face.
|
|
266
|
+
* The range is from 0 to 1 where 0 is the absence of glare.
|
|
267
|
+
*/
|
|
96
268
|
faceGlare(): ImageQualityCharacteristic
|
|
97
269
|
|
|
270
|
+
/**
|
|
271
|
+
* Whether there are shadows on the face.
|
|
272
|
+
* The range is from 0 to 1 where 0 is the absence of shadows on the face.
|
|
273
|
+
*/
|
|
98
274
|
shadowsOnFace(): ImageQualityCharacteristic
|
|
99
275
|
|
|
276
|
+
/**
|
|
277
|
+
* All Group characteristics with default (recommended) values.
|
|
278
|
+
* Doesn't include characteristics without default values.
|
|
279
|
+
*/
|
|
100
280
|
allRecommended(): Array<ImageQualityCharacteristic>
|
|
101
281
|
|
|
102
282
|
private constructor()
|
|
103
283
|
}
|
|
104
284
|
|
|
105
285
|
export class _PoseAndExpression {
|
|
286
|
+
/**
|
|
287
|
+
* Checks the symmetry of the shoulders.
|
|
288
|
+
* The range is from 0 to 1 where 1 is for absolutely symmetrical shoulders.
|
|
289
|
+
*/
|
|
106
290
|
shouldersPose(): ImageQualityCharacteristic
|
|
107
291
|
|
|
292
|
+
/**
|
|
293
|
+
* Checks the presence of any emotional facial expression.
|
|
294
|
+
* The range is from 0 to 1 where 0 is for absolutely non-emotional expression.
|
|
295
|
+
*/
|
|
108
296
|
expressionLevel(): ImageQualityCharacteristic
|
|
109
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Whether the mouth is open.
|
|
300
|
+
* The range is from 0 to 1 where 0 is closed mouth.
|
|
301
|
+
*/
|
|
110
302
|
mouthOpen(): ImageQualityCharacteristic
|
|
111
303
|
|
|
304
|
+
/**
|
|
305
|
+
* Whether the person smiles.
|
|
306
|
+
* The range is from 0 to 1 where 0 is smile absence.
|
|
307
|
+
*/
|
|
112
308
|
smile(): ImageQualityCharacteristic
|
|
113
309
|
|
|
310
|
+
/**
|
|
311
|
+
* All Group characteristics with default (recommended) values.
|
|
312
|
+
* Doesn't include characteristics without default values.
|
|
313
|
+
*/
|
|
114
314
|
allRecommended(): Array<ImageQualityCharacteristic>
|
|
115
315
|
|
|
116
316
|
private constructor()
|
|
117
317
|
}
|
|
118
318
|
|
|
119
319
|
export class _HeadOcclusion {
|
|
320
|
+
/**
|
|
321
|
+
* Whether the person wears dark glasses.
|
|
322
|
+
* The range is from 0 to 1 where 0 is dark glasses absence.
|
|
323
|
+
*/
|
|
120
324
|
darkGlasses(): ImageQualityCharacteristic
|
|
121
325
|
|
|
326
|
+
/**
|
|
327
|
+
* Whether there are reflections on glasses.
|
|
328
|
+
* The range is from 0 to 1 where 0 is reflections absence.
|
|
329
|
+
* In the current release, always succeeds. Will be developed in the coming releases.
|
|
330
|
+
*/
|
|
122
331
|
reflectionOnGlasses(): ImageQualityCharacteristic
|
|
123
332
|
|
|
333
|
+
/**
|
|
334
|
+
* Whether the glasses frames do not obscure eye details and the irises of both eyes are visible.
|
|
335
|
+
* The range is from 0 to 20 where 0 the absence of frames (glasses).
|
|
336
|
+
*/
|
|
124
337
|
framesTooHeavy(): ImageQualityCharacteristic
|
|
125
338
|
|
|
339
|
+
/**
|
|
340
|
+
* Whether the face is visible and not occluded.
|
|
341
|
+
* The range is from 0 to 1 where 0 is face occlusion absence.
|
|
342
|
+
*/
|
|
126
343
|
faceOccluded(): ImageQualityCharacteristic
|
|
127
344
|
|
|
345
|
+
/**
|
|
346
|
+
* Whether there is any head coverage other than religious headwear.
|
|
347
|
+
* The range is from 0 to 1.
|
|
348
|
+
*/
|
|
128
349
|
headCovering(): ImageQualityCharacteristic
|
|
129
350
|
|
|
351
|
+
/**
|
|
352
|
+
* Whether the forehead is covered.
|
|
353
|
+
* The range is from 0 to 1.
|
|
354
|
+
*/
|
|
130
355
|
foreheadCovering(): ImageQualityCharacteristic
|
|
131
356
|
|
|
357
|
+
/**
|
|
358
|
+
* Whether the makeup is too strong.
|
|
359
|
+
* In the current release, always succeeds. Will be developed in the coming releases.
|
|
360
|
+
* The range is from 0 to 1.
|
|
361
|
+
*/
|
|
132
362
|
strongMakeup(): ImageQualityCharacteristic
|
|
133
363
|
|
|
364
|
+
/**
|
|
365
|
+
* Whether the person is wearing headphones.
|
|
366
|
+
* The range is from 0 to 1 where 0 is headphones absence.
|
|
367
|
+
*/
|
|
134
368
|
headphones(): ImageQualityCharacteristic
|
|
135
369
|
|
|
370
|
+
/**
|
|
371
|
+
* Whether the person is wearing a medical mask.
|
|
372
|
+
* The range is from 0 to 1 where 0 is medical mask absence.
|
|
373
|
+
*/
|
|
136
374
|
medicalMask(): ImageQualityCharacteristic
|
|
137
375
|
|
|
376
|
+
/**
|
|
377
|
+
* All Group characteristics with default (recommended) values.
|
|
378
|
+
* Doesn't include characteristics without default values.
|
|
379
|
+
*/
|
|
138
380
|
allRecommended(): Array<ImageQualityCharacteristic>
|
|
139
381
|
|
|
140
382
|
private constructor()
|
|
141
383
|
}
|
|
142
384
|
|
|
143
385
|
export class _Background {
|
|
386
|
+
/**
|
|
387
|
+
* Checks uniformity of the portrait background.
|
|
388
|
+
* The range is from 0 to 1 where 1 is absolute background uniformity.
|
|
389
|
+
*/
|
|
144
390
|
backgroundUniformity(): ImageQualityCharacteristic
|
|
145
391
|
|
|
392
|
+
/**
|
|
393
|
+
* Whether there are shadows on the portrait background.
|
|
394
|
+
* The range is from 0 to 1 where 1 is the absence of shadows on the portrait background.
|
|
395
|
+
*/
|
|
146
396
|
shadowsOnBackground(): ImageQualityCharacteristic
|
|
147
397
|
|
|
398
|
+
/**
|
|
399
|
+
* The number of faces on the photo.
|
|
400
|
+
* The range is from 0 to 1 where 1 is full background color match.
|
|
401
|
+
*/
|
|
148
402
|
otherFaces(): ImageQualityCharacteristic
|
|
149
403
|
|
|
404
|
+
/**
|
|
405
|
+
* Whether the background color matches default background color.
|
|
406
|
+
* Default color is white (RGB(255,255,255) or hex #FFFFFF)
|
|
407
|
+
* The range is from 0 to 1 where 1 is full background color match.
|
|
408
|
+
*/
|
|
150
409
|
backgroundColorMatch(params?: { color?: number }): ImageQualityCharacteristic
|
|
151
410
|
|
|
411
|
+
/**
|
|
412
|
+
* Whether the background color matches the required color.
|
|
413
|
+
* The range is from 0 to 1 where 1 is full background color match.
|
|
414
|
+
*/
|
|
152
415
|
allRecommended(): Array<ImageQualityCharacteristic>
|
|
153
416
|
|
|
154
417
|
private constructor()
|
package/www/types/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { CustomizationImages } from './customization/customization_images'
|
|
|
5
5
|
import { Customization, CustomButtonTappedCompletion } from './customization/customization'
|
|
6
6
|
import { Font } from './customization/font'
|
|
7
7
|
import { ScreenOrientation } from './customization/screen_orientation'
|
|
8
|
-
|
|
9
8
|
export { CameraPosition, CustomizationColors, CustomizationFonts, CustomizationImages, Customization, CustomButtonTappedCompletion, Font, ScreenOrientation }
|
|
10
9
|
|
|
11
10
|
import { FaceSDKVersion } from './init/face_sdk_version'
|
|
@@ -14,7 +13,6 @@ import { InitException } from './init/init_exception'
|
|
|
14
13
|
import { InitErrorCode } from './init/init_exception'
|
|
15
14
|
import { LicenseException } from './init/license_exception'
|
|
16
15
|
import { LicensingResultCode } from './init/license_exception'
|
|
17
|
-
|
|
18
16
|
export { FaceSDKVersion, InitConfig, InitException, InitErrorCode, LicenseException, LicensingResultCode }
|
|
19
17
|
|
|
20
18
|
import { DetectFaceResult } from './detect_faces/detect_face_result'
|
|
@@ -26,14 +24,12 @@ import { DetectFacesException, DetectFacesErrorCode } from './detect_faces/detec
|
|
|
26
24
|
import { DetectFacesRequest } from './detect_faces/detect_faces_request'
|
|
27
25
|
import { DetectFacesResponse } from './detect_faces/detect_faces_response'
|
|
28
26
|
import { DetectFacesScenario } from './detect_faces/detect_faces_scenario'
|
|
29
|
-
|
|
30
27
|
export { DetectFaceResult, DetectFacesAttributeResult, DetectFacesAttribute, DetectFacesBackendException, DetectFacesBackendErrorCode, DetectFacesConfig, DetectFacesException, DetectFacesErrorCode, DetectFacesRequest, DetectFacesResponse, DetectFacesScenario }
|
|
31
28
|
|
|
32
29
|
import { FaceCaptureConfig } from './face_capture/face_capture_config'
|
|
33
30
|
import { FaceCaptureException, FaceCaptureErrorCode } from './face_capture/face_capture_exception'
|
|
34
31
|
import { FaceCaptureImage, ImageType } from './face_capture/face_capture_image'
|
|
35
32
|
import { FaceCaptureResponse } from './face_capture/face_capture_response'
|
|
36
|
-
|
|
37
33
|
export { FaceCaptureConfig, FaceCaptureException, FaceCaptureErrorCode, FaceCaptureImage, ImageType, FaceCaptureResponse }
|
|
38
34
|
|
|
39
35
|
import { OutputImageCrop, OutputImageCropAspectRatio } from './image_params/output_image_crop'
|
|
@@ -41,7 +37,6 @@ import { OutputImageParams } from './image_params/output_image_params'
|
|
|
41
37
|
import { Point } from './image_params/point'
|
|
42
38
|
import { Rect } from './image_params/rect'
|
|
43
39
|
import { Size } from './image_params/size'
|
|
44
|
-
|
|
45
40
|
export { OutputImageCrop, OutputImageCropAspectRatio, OutputImageParams, Point, Rect, Size }
|
|
46
41
|
|
|
47
42
|
import { ImageQualityCharacteristicName } from './image_quality/image_quality_characteristic_name'
|
|
@@ -49,7 +44,6 @@ import { ImageQualityCharacteristic } from './image_quality/image_quality_charac
|
|
|
49
44
|
import { ImageQualityGroup } from './image_quality/image_quality_group'
|
|
50
45
|
import { ImageQualityRange } from './image_quality/image_quality_range'
|
|
51
46
|
import { ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus } from './image_quality/image_quality_result'
|
|
52
|
-
|
|
53
47
|
export { ImageQualityCharacteristicName, ImageQualityCharacteristic, ImageQualityGroup, ImageQualityRange, ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus }
|
|
54
48
|
|
|
55
49
|
import { LivenessBackendException, LivenessBackendErrorCode } from './liveness/liveness_backend_exception'
|
|
@@ -57,7 +51,6 @@ import { LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep } from
|
|
|
57
51
|
import { LivenessException, LivenessErrorCode } from './liveness/liveness_exception'
|
|
58
52
|
import { LivenessNotification, LivenessProcessStatus, LivenessNotificationCompletion } from './liveness/liveness_notification'
|
|
59
53
|
import { LivenessResponse, LivenessStatus } from './liveness/liveness_response'
|
|
60
|
-
|
|
61
54
|
export { LivenessBackendException, LivenessBackendErrorCode, LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep, LivenessException, LivenessErrorCode, LivenessNotification, LivenessProcessStatus, LivenessNotificationCompletion, LivenessResponse, LivenessStatus }
|
|
62
55
|
|
|
63
56
|
import { ComparedFace } from './match_faces/compared_face'
|
|
@@ -71,7 +64,6 @@ import { MatchFacesException, MatchFacesErrorCode } from './match_faces/match_fa
|
|
|
71
64
|
import { MatchFacesImage } from './match_faces/match_faces_image'
|
|
72
65
|
import { MatchFacesRequest } from './match_faces/match_faces_request'
|
|
73
66
|
import { MatchFacesResponse } from './match_faces/match_faces_response'
|
|
74
|
-
|
|
75
67
|
export { ComparedFace, ComparedFacesPair, ComparedFacesSplit, MatchFacesBackendException, MatchFacesConfig, ProcessingMode, MatchFacesDetectionFace, MatchFacesDetection, MatchFacesException, MatchFacesErrorCode, MatchFacesImage, MatchFacesRequest, MatchFacesResponse }
|
|
76
68
|
|
|
77
69
|
import { EditGroupPersonsRequest } from './person_database/edit_group_persons_request'
|
|
@@ -85,39 +77,77 @@ import { SearchPersonDetection } from './person_database/search_person_detection
|
|
|
85
77
|
import { SearchPersonImage } from './person_database/search_person_image'
|
|
86
78
|
import { SearchPersonRequest } from './person_database/search_person_request'
|
|
87
79
|
import { SearchPerson } from './person_database/search_person'
|
|
88
|
-
|
|
89
80
|
export { EditGroupPersonsRequest, ImageUpload, PageableItemList, PersonDatabase, PersonGroup, PersonImage, Person, SearchPersonDetection, SearchPersonImage, SearchPersonRequest, SearchPerson }
|
|
90
81
|
|
|
91
|
-
|
|
82
|
+
/**
|
|
83
|
+
* Entry point of the Regula Face SDK.
|
|
84
|
+
*/
|
|
92
85
|
export class FaceSDK {
|
|
86
|
+
/**
|
|
87
|
+
* The only instance of singleton class {@link FaceSDK}.
|
|
88
|
+
*/
|
|
93
89
|
static get instance(): FaceSDK
|
|
90
|
+
private constructor()
|
|
94
91
|
|
|
92
|
+
/**
|
|
93
|
+
* Information about the SDK.
|
|
94
|
+
*/
|
|
95
95
|
get version(): FaceSDKVersion | null
|
|
96
96
|
|
|
97
97
|
get serviceUrl(): string | null
|
|
98
98
|
set serviceUrl(val: string | null)
|
|
99
99
|
|
|
100
|
+
/**
|
|
101
|
+
* A localization dictionary to override default localization logic.
|
|
102
|
+
* Allows to replace any string of FaceSDK with an arbitrary string.
|
|
103
|
+
*
|
|
104
|
+
* To see all the localization keys, look up the RegulaSDK.strings file at
|
|
105
|
+
* ios/Pods/FaceSDK/FaceSDK.xcframework/ios-arm64/FaceSDK.framework/FaceSDK.bundle/en.lproj/FaceSDK.strings.
|
|
106
|
+
*
|
|
107
|
+
* Immutable property. Use setter instead of editing.
|
|
108
|
+
*/
|
|
100
109
|
get localizationDictionary(): Record<string, string> | null
|
|
101
110
|
set localizationDictionary(val: Record<string, string> | null)
|
|
102
111
|
|
|
112
|
+
/**
|
|
113
|
+
* Immutable property. Use setter instead of editing.
|
|
114
|
+
*/
|
|
103
115
|
get requestHeaders(): Record<string, string> | null
|
|
104
116
|
set requestHeaders(val: Record<string, string> | null)
|
|
105
117
|
|
|
106
118
|
get customization(): Customization
|
|
107
119
|
set customization(val: Customization)
|
|
108
120
|
|
|
121
|
+
/**
|
|
122
|
+
* Allows user to receive a video file of current session.
|
|
123
|
+
*/
|
|
109
124
|
set videoEncoderCompletion(completion: VideoEncoderCompletion)
|
|
110
125
|
|
|
111
126
|
get personDatabase(): PersonDatabase
|
|
112
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Checks if FaceSDK is initialized.
|
|
130
|
+
*/
|
|
113
131
|
isInitialized(): Promise<boolean>
|
|
114
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Allows you to initialize FaceSDK.
|
|
135
|
+
*
|
|
136
|
+
* @param params.config - configuration file for FaceSDK initialization.
|
|
137
|
+
*
|
|
138
|
+
* @returns Returns boolean indicating success of initialization
|
|
139
|
+
* and a nullable {@link InitException}.
|
|
140
|
+
*/
|
|
115
141
|
initialize(
|
|
116
142
|
params?: {
|
|
117
143
|
config?: InitConfig
|
|
118
144
|
}
|
|
119
145
|
): Promise<[boolean, InitException | null]>
|
|
120
146
|
|
|
147
|
+
/**
|
|
148
|
+
* Used to deinitialize FaceSDK and free up RAM as a
|
|
149
|
+
* consequence of this.
|
|
150
|
+
*/
|
|
121
151
|
deinitialize(): void
|
|
122
152
|
|
|
123
153
|
startFaceCapture(
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
export class FaceSDKVersion {
|
|
2
|
+
/**
|
|
3
|
+
* Version of the API module.
|
|
4
|
+
*/
|
|
2
5
|
get api(): string | null
|
|
6
|
+
/**
|
|
7
|
+
* Version of the CORE module.
|
|
8
|
+
*/
|
|
3
9
|
get core(): string | null
|
|
10
|
+
/**
|
|
11
|
+
* CORE module variant.
|
|
12
|
+
*/
|
|
4
13
|
get coreMode(): string | null
|
|
5
14
|
|
|
6
15
|
private constructor()
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A configuration file for FaceSDK initialization.
|
|
3
|
+
* Allows to initialize using license binary.
|
|
4
|
+
* Also controls initialization time properties such as licenseUpdate.
|
|
5
|
+
*/
|
|
1
6
|
export class InitConfig {
|
|
7
|
+
/**
|
|
8
|
+
* @param license - The license binary file.
|
|
9
|
+
* @param params.licenseUpdate - Enables automatic license update check during {@link FaceSDK} initialization.
|
|
10
|
+
*/
|
|
2
11
|
constructor(
|
|
3
12
|
license: string,
|
|
4
13
|
params?: {
|
|
@@ -1,21 +1,87 @@
|
|
|
1
1
|
import { CameraPosition } from '../customization/camera_position'
|
|
2
2
|
import { ScreenOrientation } from '../customization/screen_orientation'
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Configuration for the Liveness processing.
|
|
6
|
+
* The configuration provides convenient properties to change the behavior and the appearance of the Liveness UI module.
|
|
7
|
+
*/
|
|
4
8
|
export class LivenessConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Defines, whether the logo is visible on the bottom of Liveness UI screens. Defaults to `true`.
|
|
11
|
+
*/
|
|
5
12
|
copyright: boolean
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Defines, whether the camera's toolbar switch camera button is available on the Liveness UI. Defaults to `false`.
|
|
16
|
+
* When set to `true` the CameraToolbarView will contain a button to change current `cameraPosition`.
|
|
17
|
+
* Only for livenessType = {@link LivenessType.PASSIVE}.
|
|
18
|
+
*/
|
|
6
19
|
cameraSwitchEnabled: boolean
|
|
20
|
+
|
|
7
21
|
closeButtonEnabled: boolean
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Defines, whether the camera's toolbar torch button is available on the Liveness UI. Defaults to `true`.
|
|
25
|
+
* When set to `false` the CameraToolbarView won't contain a button to toggle camera's flashlight.
|
|
26
|
+
* Only for livenessType = {@link LivenessType.PASSIVE}.
|
|
27
|
+
*/
|
|
8
28
|
torchButtonEnabled: boolean
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Enables vibration during Liveness processing. Defaults to `true`.
|
|
32
|
+
*/
|
|
9
33
|
vibrateOnSteps: boolean
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Android only.
|
|
37
|
+
*/
|
|
10
38
|
cameraPositionAndroid?: number
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* IOS only.
|
|
42
|
+
*/
|
|
11
43
|
cameraPositionIOS: CameraPosition
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Android only.
|
|
47
|
+
*/
|
|
12
48
|
screenOrientation?: Array<ScreenOrientation>
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Defines whether the liveness request sends a location of a device. Defaults to `true`.
|
|
52
|
+
* When set to `true` the liveness request to web service will contain the `location`
|
|
53
|
+
* object within the json `metadata` object.
|
|
54
|
+
* The location is used only when permissions are granted and the location is available.
|
|
55
|
+
*/
|
|
13
56
|
locationTrackingEnabled: boolean
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The number of attempts to pass the Liveness before completing with error. Defaults to `0`.
|
|
60
|
+
* When set to `0` the Liveness will always ask to retry on error.
|
|
61
|
+
*/
|
|
14
62
|
attemptsCount: number
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Defines whether the liveness recording video of processing.
|
|
66
|
+
* Defaults to {@link RecordingProcess.ASYNCHRONOUS_UPLOAD}.
|
|
67
|
+
*/
|
|
15
68
|
recordingProcess: RecordingProcess
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Defines whether the liveness processing type. Defaults to {@link LivenessType.ACTIVE}.
|
|
72
|
+
*/
|
|
16
73
|
livenessType: LivenessType
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Defines tag that can be used in Liveness processing. Defaults to `null`.
|
|
77
|
+
*/
|
|
17
78
|
tag?: string
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Defines which steps of the user interface can be omitted. See {@link LivenessSkipStep} enum for details.
|
|
82
|
+
*/
|
|
18
83
|
skipStep: Array<LivenessSkipStep>
|
|
84
|
+
|
|
19
85
|
metadata?: Record<string, any>
|
|
20
86
|
|
|
21
87
|
constructor(
|