@regulaforensics/face-sdk 6.5.63-beta → 6.5.67-beta

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.
Files changed (181) hide show
  1. package/RNFaceSDK.podspec +1 -1
  2. package/examples/capacitor/README.md +4 -4
  3. package/examples/capacitor/package.json +4 -4
  4. package/examples/cordova/README.md +4 -4
  5. package/examples/cordova/package.json +10 -5
  6. package/examples/ionic/README.md +4 -4
  7. package/examples/ionic/package.json +4 -4
  8. package/examples/ionic/src/app/home/home.page.ts +5 -56
  9. package/examples/react-native/README.md +4 -4
  10. package/examples/react-native/package.json +5 -4
  11. package/package.json +1 -2
  12. package/plugin.xml +1 -1
  13. package/www/capacitor/index.js +4 -179
  14. package/www/cordova.js +406 -3499
  15. package/www/react-native/index.js +4 -179
  16. package/www/types/index.d.ts +4 -140
  17. package/examples/capacitor/scripts/android.sh +0 -9
  18. package/examples/capacitor/scripts/ios.sh +0 -8
  19. package/examples/capacitor/scripts/setup.sh +0 -4
  20. package/examples/cordova/scripts/android.sh +0 -8
  21. package/examples/cordova/scripts/ios.sh +0 -8
  22. package/examples/cordova/scripts/setup.sh +0 -5
  23. package/examples/ionic/scripts/android.sh +0 -8
  24. package/examples/ionic/scripts/ios.sh +0 -8
  25. package/examples/ionic/scripts/setup.sh +0 -5
  26. package/examples/react-native/scripts/android.sh +0 -8
  27. package/examples/react-native/scripts/ios.sh +0 -8
  28. package/examples/react-native/scripts/setup.sh +0 -8
  29. package/www/capacitor/customization/customization.js +0 -66
  30. package/www/capacitor/customization/customization_colors.js +0 -233
  31. package/www/capacitor/customization/customization_fonts.js +0 -106
  32. package/www/capacitor/customization/customization_images.js +0 -129
  33. package/www/capacitor/customization/font.js +0 -29
  34. package/www/capacitor/detect_faces/detect_face_result.js +0 -38
  35. package/www/capacitor/detect_faces/detect_faces_attribute.js +0 -15
  36. package/www/capacitor/detect_faces/detect_faces_attribute_result.js +0 -20
  37. package/www/capacitor/detect_faces/detect_faces_backend_exception.js +0 -23
  38. package/www/capacitor/detect_faces/detect_faces_config.js +0 -14
  39. package/www/capacitor/detect_faces/detect_faces_exception.js +0 -30
  40. package/www/capacitor/detect_faces/detect_faces_request.js +0 -67
  41. package/www/capacitor/detect_faces/detect_faces_response.js +0 -24
  42. package/www/capacitor/detect_faces/detect_faces_scenario.js +0 -10
  43. package/www/capacitor/face_capture/face_capture_config.js +0 -28
  44. package/www/capacitor/face_capture/face_capture_exception.js +0 -25
  45. package/www/capacitor/face_capture/face_capture_image.js +0 -26
  46. package/www/capacitor/face_capture/face_capture_response.js +0 -17
  47. package/www/capacitor/image_params/output_image_crop.js +0 -21
  48. package/www/capacitor/image_params/output_image_params.js +0 -9
  49. package/www/capacitor/image_params/point.js +0 -14
  50. package/www/capacitor/image_params/rect.js +0 -18
  51. package/www/capacitor/image_params/size.js +0 -9
  52. package/www/capacitor/image_quality/image_quality_characteristic.js +0 -24
  53. package/www/capacitor/image_quality/image_quality_characteristic_name.js +0 -58
  54. package/www/capacitor/image_quality/image_quality_group.js +0 -332
  55. package/www/capacitor/image_quality/image_quality_range.js +0 -26
  56. package/www/capacitor/image_quality/image_quality_result.js +0 -40
  57. package/www/capacitor/init/face_sdk_version.js +0 -16
  58. package/www/capacitor/match_faces/compared_face.js +0 -21
  59. package/www/capacitor/match_faces/compared_faces_pair.js +0 -23
  60. package/www/capacitor/match_faces/compared_faces_split.js +0 -22
  61. package/www/capacitor/match_faces/match_faces_backend_exception.js +0 -14
  62. package/www/capacitor/match_faces/match_faces_config.js +0 -12
  63. package/www/capacitor/match_faces/match_faces_detection.js +0 -25
  64. package/www/capacitor/match_faces/match_faces_detection_face.js +0 -28
  65. package/www/capacitor/match_faces/match_faces_exception.js +0 -30
  66. package/www/capacitor/match_faces/match_faces_image.js +0 -25
  67. package/www/capacitor/match_faces/match_faces_request.js +0 -13
  68. package/www/capacitor/match_faces/match_faces_response.js +0 -28
  69. package/www/capacitor/person_database/edit_group_persons_request.js +0 -9
  70. package/www/capacitor/person_database/image_upload.js +0 -16
  71. package/www/capacitor/person_database/pageable_item_list.js +0 -22
  72. package/www/capacitor/person_database/person.js +0 -22
  73. package/www/capacitor/person_database/person_database.js +0 -145
  74. package/www/capacitor/person_database/person_group.js +0 -18
  75. package/www/capacitor/person_database/person_image.js +0 -22
  76. package/www/capacitor/person_database/search_person.js +0 -31
  77. package/www/capacitor/person_database/search_person_detection.js +0 -22
  78. package/www/capacitor/person_database/search_person_image.js +0 -26
  79. package/www/capacitor/person_database/search_person_request.js +0 -17
  80. package/www/react-native/customization/customization.js +0 -66
  81. package/www/react-native/customization/customization_colors.js +0 -233
  82. package/www/react-native/customization/customization_fonts.js +0 -106
  83. package/www/react-native/customization/customization_images.js +0 -129
  84. package/www/react-native/customization/font.js +0 -29
  85. package/www/react-native/detect_faces/detect_face_result.js +0 -38
  86. package/www/react-native/detect_faces/detect_faces_attribute.js +0 -15
  87. package/www/react-native/detect_faces/detect_faces_attribute_result.js +0 -20
  88. package/www/react-native/detect_faces/detect_faces_backend_exception.js +0 -23
  89. package/www/react-native/detect_faces/detect_faces_config.js +0 -14
  90. package/www/react-native/detect_faces/detect_faces_exception.js +0 -30
  91. package/www/react-native/detect_faces/detect_faces_request.js +0 -67
  92. package/www/react-native/detect_faces/detect_faces_response.js +0 -24
  93. package/www/react-native/detect_faces/detect_faces_scenario.js +0 -10
  94. package/www/react-native/face_capture/face_capture_config.js +0 -28
  95. package/www/react-native/face_capture/face_capture_exception.js +0 -25
  96. package/www/react-native/face_capture/face_capture_image.js +0 -26
  97. package/www/react-native/face_capture/face_capture_response.js +0 -17
  98. package/www/react-native/image_params/output_image_crop.js +0 -21
  99. package/www/react-native/image_params/output_image_params.js +0 -9
  100. package/www/react-native/image_params/point.js +0 -14
  101. package/www/react-native/image_params/rect.js +0 -18
  102. package/www/react-native/image_params/size.js +0 -9
  103. package/www/react-native/image_quality/image_quality_characteristic.js +0 -24
  104. package/www/react-native/image_quality/image_quality_characteristic_name.js +0 -58
  105. package/www/react-native/image_quality/image_quality_group.js +0 -332
  106. package/www/react-native/image_quality/image_quality_range.js +0 -26
  107. package/www/react-native/image_quality/image_quality_result.js +0 -40
  108. package/www/react-native/init/face_sdk_version.js +0 -16
  109. package/www/react-native/match_faces/compared_face.js +0 -21
  110. package/www/react-native/match_faces/compared_faces_pair.js +0 -23
  111. package/www/react-native/match_faces/compared_faces_split.js +0 -22
  112. package/www/react-native/match_faces/match_faces_backend_exception.js +0 -14
  113. package/www/react-native/match_faces/match_faces_config.js +0 -12
  114. package/www/react-native/match_faces/match_faces_detection.js +0 -25
  115. package/www/react-native/match_faces/match_faces_detection_face.js +0 -28
  116. package/www/react-native/match_faces/match_faces_exception.js +0 -30
  117. package/www/react-native/match_faces/match_faces_image.js +0 -25
  118. package/www/react-native/match_faces/match_faces_request.js +0 -13
  119. package/www/react-native/match_faces/match_faces_response.js +0 -28
  120. package/www/react-native/person_database/edit_group_persons_request.js +0 -9
  121. package/www/react-native/person_database/image_upload.js +0 -16
  122. package/www/react-native/person_database/pageable_item_list.js +0 -22
  123. package/www/react-native/person_database/person.js +0 -22
  124. package/www/react-native/person_database/person_database.js +0 -145
  125. package/www/react-native/person_database/person_group.js +0 -18
  126. package/www/react-native/person_database/person_image.js +0 -22
  127. package/www/react-native/person_database/search_person.js +0 -31
  128. package/www/react-native/person_database/search_person_detection.js +0 -22
  129. package/www/react-native/person_database/search_person_image.js +0 -26
  130. package/www/react-native/person_database/search_person_request.js +0 -17
  131. package/www/types/customization/customization.d.ts +0 -46
  132. package/www/types/customization/customization_colors.d.ts +0 -37
  133. package/www/types/customization/customization_fonts.d.ts +0 -23
  134. package/www/types/customization/customization_images.d.ts +0 -24
  135. package/www/types/customization/font.d.ts +0 -41
  136. package/www/types/detect_faces/detect_face_result.d.ts +0 -16
  137. package/www/types/detect_faces/detect_faces_attribute.d.ts +0 -15
  138. package/www/types/detect_faces/detect_faces_attribute_result.d.ts +0 -11
  139. package/www/types/detect_faces/detect_faces_backend_exception.d.ts +0 -15
  140. package/www/types/detect_faces/detect_faces_config.d.ts +0 -37
  141. package/www/types/detect_faces/detect_faces_exception.d.ts +0 -24
  142. package/www/types/detect_faces/detect_faces_request.d.ts +0 -80
  143. package/www/types/detect_faces/detect_faces_response.d.ts +0 -12
  144. package/www/types/detect_faces/detect_faces_scenario.d.ts +0 -10
  145. package/www/types/face_capture/face_capture_config.d.ts +0 -39
  146. package/www/types/face_capture/face_capture_exception.d.ts +0 -17
  147. package/www/types/face_capture/face_capture_image.d.ts +0 -39
  148. package/www/types/face_capture/face_capture_response.d.ts +0 -9
  149. package/www/types/image_params/output_image_crop.d.ts +0 -49
  150. package/www/types/image_params/output_image_params.d.ts +0 -28
  151. package/www/types/image_params/point.d.ts +0 -9
  152. package/www/types/image_params/rect.d.ts +0 -8
  153. package/www/types/image_params/size.d.ts +0 -6
  154. package/www/types/image_quality/image_quality_characteristic.d.ts +0 -7
  155. package/www/types/image_quality/image_quality_characteristic_name.d.ts +0 -61
  156. package/www/types/image_quality/image_quality_group.d.ts +0 -418
  157. package/www/types/image_quality/image_quality_range.d.ts +0 -8
  158. package/www/types/image_quality/image_quality_result.d.ts +0 -30
  159. package/www/types/init/face_sdk_version.d.ts +0 -16
  160. package/www/types/match_faces/compared_face.d.ts +0 -29
  161. package/www/types/match_faces/compared_faces_pair.d.ts +0 -36
  162. package/www/types/match_faces/compared_faces_split.d.ts +0 -8
  163. package/www/types/match_faces/match_faces_backend_exception.d.ts +0 -6
  164. package/www/types/match_faces/match_faces_config.d.ts +0 -14
  165. package/www/types/match_faces/match_faces_detection.d.ts +0 -30
  166. package/www/types/match_faces/match_faces_detection_face.d.ts +0 -43
  167. package/www/types/match_faces/match_faces_exception.d.ts +0 -21
  168. package/www/types/match_faces/match_faces_image.d.ts +0 -34
  169. package/www/types/match_faces/match_faces_request.d.ts +0 -34
  170. package/www/types/match_faces/match_faces_response.d.ts +0 -27
  171. package/www/types/person_database/edit_group_persons_request.d.ts +0 -8
  172. package/www/types/person_database/image_upload.d.ts +0 -20
  173. package/www/types/person_database/pageable_item_list.d.ts +0 -7
  174. package/www/types/person_database/person.d.ts +0 -33
  175. package/www/types/person_database/person_database.d.ts +0 -95
  176. package/www/types/person_database/person_group.d.ts +0 -22
  177. package/www/types/person_database/person_image.d.ts +0 -10
  178. package/www/types/person_database/search_person.d.ts +0 -31
  179. package/www/types/person_database/search_person_detection.d.ts +0 -11
  180. package/www/types/person_database/search_person_image.d.ts +0 -25
  181. package/www/types/person_database/search_person_request.d.ts +0 -39
@@ -1,418 +0,0 @@
1
- import { ImageQualityCharacteristic } from './image_quality_characteristic'
2
- import { ImageQualityRange } from './image_quality_range'
3
-
4
- /**
5
- * Image Quality characteristic group
6
- */
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
- */
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
- */
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
- */
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
- */
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
- */
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
- */
38
- static get poseAndExpression(): _PoseAndExpression
39
- /**
40
- * The Head occlusion group includes checks of glasses, face occlusion, and head coverage.
41
- */
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
- */
47
- static get background(): _Background
48
- }
49
-
50
- export class _Image {
51
- /**
52
- * The image width, pixels.
53
- * Doesn't have recommended value.
54
- */
55
- imageWidth(range: ImageQualityRange): ImageQualityCharacteristic
56
-
57
- /**
58
- * The image height, pixels.
59
- * Doesn't have recommended value.
60
- */
61
- imageHeight(range: ImageQualityRange): ImageQualityCharacteristic
62
-
63
- /**
64
- * The image width to height proportion.
65
- * Doesn't have recommended value.
66
- */
67
- imageWidthToHeight(range: ImageQualityRange): ImageQualityCharacteristic
68
-
69
- /**
70
- * The image RGB channels number.
71
- * Doesn't have recommended value.
72
- *
73
- * @param channelsNumber - 3 is for RGB images.
74
- */
75
- imageChannelsNumber(channelsNumber: number): ImageQualityCharacteristic
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
- */
83
- paddingRatio(range: ImageQualityRange): ImageQualityCharacteristic
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
- */
90
- artFace(): ImageQualityCharacteristic
91
-
92
- /**
93
- * All Group characteristics with default (recommended) values.
94
- * Doesn't include characteristics without default values.
95
- */
96
- allRecommended(): Array<ImageQualityCharacteristic>
97
-
98
- private constructor()
99
- }
100
-
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
- */
107
- faceMidPointHorizontalPosition(): ImageQualityCharacteristic
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
- */
114
- faceMidPointVerticalPosition(): ImageQualityCharacteristic
115
-
116
- /**
117
- * The head width to the image width ratio.
118
- * The range is from 0 to 1.
119
- */
120
- headWidthRatio(): ImageQualityCharacteristic
121
-
122
- /**
123
- * The head height to the image height ratio.
124
- * The range is from 0 to 1.
125
- */
126
- headHeightRatio(): ImageQualityCharacteristic
127
-
128
- /**
129
- * Inter-eye distance — the length of the line connecting the eye centers of the left and right eye, pixels.
130
- */
131
- eyesDistance(): ImageQualityCharacteristic
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
- */
137
- yaw(): ImageQualityCharacteristic
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
- */
143
- pitch(): ImageQualityCharacteristic
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
- */
149
- roll(): ImageQualityCharacteristic
150
-
151
- /**
152
- * All Group characteristics with default (recommended) values.
153
- * Doesn't include characteristics without default values.
154
- */
155
- allRecommended(): Array<ImageQualityCharacteristic>
156
-
157
- private constructor()
158
- }
159
-
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
- */
165
- blurLevel(): ImageQualityCharacteristic
166
-
167
- /**
168
- * The noise level.
169
- * The range is from 0 to 1 where 0 is minimal noise level.
170
- */
171
- noiseLevel(): ImageQualityCharacteristic
172
-
173
- /**
174
- * The true-colour representation of the skin colour.
175
- * The range is from 0 to 1.
176
- */
177
- unnaturalSkinTone(): ImageQualityCharacteristic
178
-
179
- /**
180
- * The range of tonal difference between the lightest light and darkest dark of an image, bits.
181
- */
182
- faceDynamicRange(): ImageQualityCharacteristic
183
-
184
- /**
185
- * All Group characteristics with default (recommended) values.
186
- * Doesn't include characteristics without default values.
187
- */
188
- allRecommended(): Array<ImageQualityCharacteristic>
189
-
190
- private constructor()
191
- }
192
-
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
- */
198
- eyeRightClosed(): ImageQualityCharacteristic
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
- */
204
- eyeLeftClosed(): ImageQualityCharacteristic
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
- */
210
- eyeRightOccluded(): ImageQualityCharacteristic
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
- */
216
- eyeLeftOccluded(): ImageQualityCharacteristic
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
- */
222
- eyesRed(): ImageQualityCharacteristic
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
- */
228
- eyeRightCoveredWithHair(): ImageQualityCharacteristic
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
- */
234
- eyeLeftCoveredWithHair(): ImageQualityCharacteristic
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
- */
240
- offGaze(): ImageQualityCharacteristic
241
-
242
- /**
243
- * All Group characteristics with default (recommended) values.
244
- * Doesn't include characteristics without default values.
245
- */
246
- allRecommended(): Array<ImageQualityCharacteristic>
247
-
248
- private constructor()
249
- }
250
-
251
- export class _ShadowsAndLightning {
252
- /**
253
- * Whether the photo is too dark.
254
- * The range is from 0 to 1.
255
- */
256
- tooDark(): ImageQualityCharacteristic
257
-
258
- /**
259
- * Whether the photo is overexposed.
260
- * The range is from 0 to 1.
261
- */
262
- tooLight(): ImageQualityCharacteristic
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
- */
268
- faceGlare(): ImageQualityCharacteristic
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
- */
274
- shadowsOnFace(): ImageQualityCharacteristic
275
-
276
- /**
277
- * All Group characteristics with default (recommended) values.
278
- * Doesn't include characteristics without default values.
279
- */
280
- allRecommended(): Array<ImageQualityCharacteristic>
281
-
282
- private constructor()
283
- }
284
-
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
- */
290
- shouldersPose(): ImageQualityCharacteristic
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
- */
296
- expressionLevel(): ImageQualityCharacteristic
297
-
298
- /**
299
- * Whether the mouth is open.
300
- * The range is from 0 to 1 where 0 is closed mouth.
301
- */
302
- mouthOpen(): ImageQualityCharacteristic
303
-
304
- /**
305
- * Whether the person smiles.
306
- * The range is from 0 to 1 where 0 is smile absence.
307
- */
308
- smile(): ImageQualityCharacteristic
309
-
310
- /**
311
- * All Group characteristics with default (recommended) values.
312
- * Doesn't include characteristics without default values.
313
- */
314
- allRecommended(): Array<ImageQualityCharacteristic>
315
-
316
- private constructor()
317
- }
318
-
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
- */
324
- darkGlasses(): ImageQualityCharacteristic
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
- */
331
- reflectionOnGlasses(): ImageQualityCharacteristic
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
- */
337
- framesTooHeavy(): ImageQualityCharacteristic
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
- */
343
- faceOccluded(): ImageQualityCharacteristic
344
-
345
- /**
346
- * Whether there is any head coverage other than religious headwear.
347
- * The range is from 0 to 1.
348
- */
349
- headCovering(): ImageQualityCharacteristic
350
-
351
- /**
352
- * Whether the forehead is covered.
353
- * The range is from 0 to 1.
354
- */
355
- foreheadCovering(): ImageQualityCharacteristic
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
- */
362
- strongMakeup(): ImageQualityCharacteristic
363
-
364
- /**
365
- * Whether the person is wearing headphones.
366
- * The range is from 0 to 1 where 0 is headphones absence.
367
- */
368
- headphones(): ImageQualityCharacteristic
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
- */
374
- medicalMask(): ImageQualityCharacteristic
375
-
376
- /**
377
- * All Group characteristics with default (recommended) values.
378
- * Doesn't include characteristics without default values.
379
- */
380
- allRecommended(): Array<ImageQualityCharacteristic>
381
-
382
- private constructor()
383
- }
384
-
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
- */
390
- backgroundUniformity(): ImageQualityCharacteristic
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
- */
396
- shadowsOnBackground(): ImageQualityCharacteristic
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
- */
402
- otherFaces(): ImageQualityCharacteristic
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
- */
409
- backgroundColorMatch(params?: { color?: number }): ImageQualityCharacteristic
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
- */
415
- allRecommended(): Array<ImageQualityCharacteristic>
416
-
417
- private constructor()
418
- }
@@ -1,8 +0,0 @@
1
- export class ImageQualityRange {
2
- get min(): number
3
- get max(): number
4
-
5
- constructor(min: number, max: number)
6
-
7
- static withValue(value: number): ImageQualityRange
8
- }
@@ -1,30 +0,0 @@
1
- import { ImageQualityRange } from './image_quality_range'
2
- import { ImageQualityCharacteristicName } from './image_quality_characteristic_name'
3
-
4
- export class ImageQualityResult {
5
- get group(): ImageQualityGroupName
6
- get name(): ImageQualityCharacteristicName
7
- get status(): ImageQualityResultStatus
8
- get value(): number
9
- get range(): ImageQualityRange
10
-
11
- private constructor()
12
- }
13
-
14
- export enum ImageQualityGroupName {
15
- IMAGE_CHARACTERISTICS,
16
- HEAD_SIZE_AND_POSITION,
17
- FACE_QUALITY,
18
- EYES_CHARACTERISTICS,
19
- SHADOWS_AND_LIGHTNING,
20
- POSE_AND_EXPRESSION,
21
- HEAD_OCCLUSION,
22
- BACKGROUND,
23
- UNKNOWN,
24
- }
25
-
26
- export enum ImageQualityResultStatus {
27
- FALSE,
28
- TRUE,
29
- UNDETERMINED,
30
- }
@@ -1,16 +0,0 @@
1
- export class FaceSDKVersion {
2
- /**
3
- * Version of the API module.
4
- */
5
- get api(): string | null
6
- /**
7
- * Version of the CORE module.
8
- */
9
- get core(): string | null
10
- /**
11
- * CORE module variant.
12
- */
13
- get coreMode(): string | null
14
-
15
- private constructor()
16
- }
@@ -1,29 +0,0 @@
1
- import { MatchFacesImage } from './match_faces_image'
2
- import { MatchFacesDetectionFace } from './match_faces_detection_face'
3
-
4
- /**
5
- * Represents a reference information of the compared face.
6
- */
7
- export class ComparedFace {
8
- /**
9
- * The index to the input image in the input array provided to the request.
10
- */
11
- get imageIndex(): number
12
-
13
- /**
14
- * The input image used for comparison operation.
15
- */
16
- get image(): MatchFacesImage
17
-
18
- /**
19
- * The index to the array of `faces` in the `detection` results.
20
- */
21
- get faceIndex(): number | null
22
-
23
- /**
24
- * The face detection result.
25
- */
26
- get face(): MatchFacesDetectionFace | null
27
-
28
- private constructor()
29
- }
@@ -1,36 +0,0 @@
1
- import { ComparedFace } from './compared_face'
2
- import { MatchFacesException } from './match_faces_exception'
3
-
4
- /**
5
- * Represents a result of the {@link ComparedFace} attempt to compare input images.
6
- */
7
- export class ComparedFacesPair {
8
- /**
9
- * The first face in the comparison pair.
10
- */
11
- get first(): ComparedFace
12
-
13
- /**
14
- * The second face in the comparison pair.
15
- */
16
- get second(): ComparedFace
17
-
18
- /**
19
- * Similarity of the faces pair. Floating point value from 0 to 1.
20
- */
21
- get similarity(): number
22
-
23
- /**
24
- * The raw value returned by the service without applying any thresholds or comparison rules.
25
- * The value shows the degree of similarity of compared faces, the lower - the more similar, and vice versa less similar.
26
- * The `score` is used in conjunction with the input image `imageType` to evaluate `similarity`.
27
- */
28
- get score(): number
29
-
30
- /**
31
- * The error describes a failed pair comparison and contains {@link MatchFacesErrorCode} codes.
32
- */
33
- get error(): MatchFacesException | null
34
-
35
- private constructor()
36
- }
@@ -1,8 +0,0 @@
1
- import { ComparedFacesPair } from './compared_faces_pair'
2
-
3
- export class ComparedFacesSplit {
4
- get matchedFaces(): Array<ComparedFacesPair>
5
- get unmatchedFaces(): Array<ComparedFacesPair>
6
-
7
- private constructor()
8
- }
@@ -1,6 +0,0 @@
1
- export class MatchFacesBackendException {
2
- get code(): number
3
- get message(): string
4
-
5
- private constructor()
6
- }
@@ -1,14 +0,0 @@
1
- export class MatchFacesConfig {
2
- processingMode: ProcessingMode
3
-
4
- constructor(
5
- params?: {
6
- processingMode?: ProcessingMode
7
- }
8
- )
9
- }
10
-
11
- export enum ProcessingMode {
12
- ONLINE,
13
- OFFLINE,
14
- }
@@ -1,30 +0,0 @@
1
- import { MatchFacesImage } from './match_faces_image'
2
- import { MatchFacesDetectionFace } from './match_faces_detection_face'
3
- import { MatchFacesException } from './match_faces_exception'
4
-
5
- /**
6
- * Represents detection results on an input image as a part of {@link MatchFacesResponse}.
7
- */
8
- export class MatchFacesDetection {
9
- /**
10
- * The index to the input image in the input array provided to the request.
11
- */
12
- get imageIndex(): number
13
-
14
- /**
15
- * The input image used for comparison operation.
16
- */
17
- get image(): MatchFacesImage
18
-
19
- /**
20
- * The array of faces detected on the image.
21
- */
22
- get faces(): Array<MatchFacesDetectionFace>
23
-
24
- /**
25
- * The error describes a failed face detection and contains {@link MatchFacesErrorCode} codes.
26
- */
27
- get error(): MatchFacesException | null
28
-
29
- private constructor()
30
- }
@@ -1,43 +0,0 @@
1
- import { Point } from '../image_params/point'
2
- import { Rect } from '../image_params/rect'
3
-
4
- /**
5
- * Represents face detection information as a part of {@link MatchFacesResponse}.
6
- */
7
- export class MatchFacesDetectionFace {
8
- /**
9
- * The index of the face detection object in the array of detections.
10
- */
11
- get faceIndex(): number
12
-
13
- /**
14
- * Main coordinates of the detected face (eyes, nose, lips, ears and etc.).
15
- */
16
- get landmarks(): Array<Point>
17
-
18
- /**
19
- * Rectangular area of the detected face in the original image.
20
- */
21
- get faceRect(): Rect
22
-
23
- /**
24
- * Rotation is measured counterclockwise in degrees, with zero indicating
25
- * that a line drawn between the eyes is horizontal relative to the image orientation.
26
- */
27
- get rotationAngle(): number | null
28
-
29
- /**
30
- * Coordinates of the rectangle with the face on the original image prepared for the face crop.
31
- * Requires {@link OutputImageCrop.returnOriginalRect} is set.
32
- * Returns `null` if {@link OutputImageCrop.returnOriginalRect} isn't set.
33
- */
34
- get originalRect(): Rect | null
35
-
36
- /**
37
- * String image of the aligned and cropped portrait.
38
- * Returned if {@link MatchFacesRequest.outputImageParams} is set or predefined scenario is used.
39
- */
40
- get crop(): string | null
41
-
42
- private constructor()
43
- }
@@ -1,21 +0,0 @@
1
- import { MatchFacesBackendException } from './match_faces_backend_exception'
2
-
3
- export class MatchFacesException {
4
- get code(): MatchFacesErrorCode
5
- get message(): string
6
- get underlyingError(): MatchFacesBackendException | null
7
-
8
- private constructor()
9
- }
10
-
11
- export enum MatchFacesErrorCode {
12
- IMAGE_EMPTY,
13
- FACE_NOT_DETECTED,
14
- LANDMARKS_NOT_DETECTED,
15
- FACE_ALIGNER_FAILED,
16
- DESCRIPTOR_EXTRACTOR_ERROR,
17
- IMAGES_COUNT_LIMIT_EXCEEDED,
18
- API_CALL_FAILED,
19
- PROCESSING_FAILED,
20
- NO_LICENSE
21
- }