@regulaforensics/face-sdk 6.5.64-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 (182) 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/ios/Podfile.lock +303 -319
  11. package/examples/react-native/package.json +5 -4
  12. package/package.json +1 -2
  13. package/plugin.xml +1 -1
  14. package/www/capacitor/index.js +4 -179
  15. package/www/cordova.js +406 -3499
  16. package/www/react-native/index.js +4 -179
  17. package/www/types/index.d.ts +4 -140
  18. package/examples/capacitor/scripts/android.sh +0 -9
  19. package/examples/capacitor/scripts/ios.sh +0 -8
  20. package/examples/capacitor/scripts/setup.sh +0 -4
  21. package/examples/cordova/scripts/android.sh +0 -8
  22. package/examples/cordova/scripts/ios.sh +0 -8
  23. package/examples/cordova/scripts/setup.sh +0 -5
  24. package/examples/ionic/scripts/android.sh +0 -8
  25. package/examples/ionic/scripts/ios.sh +0 -8
  26. package/examples/ionic/scripts/setup.sh +0 -5
  27. package/examples/react-native/scripts/android.sh +0 -8
  28. package/examples/react-native/scripts/ios.sh +0 -8
  29. package/examples/react-native/scripts/setup.sh +0 -8
  30. package/www/capacitor/customization/customization.js +0 -66
  31. package/www/capacitor/customization/customization_colors.js +0 -233
  32. package/www/capacitor/customization/customization_fonts.js +0 -106
  33. package/www/capacitor/customization/customization_images.js +0 -129
  34. package/www/capacitor/customization/font.js +0 -29
  35. package/www/capacitor/detect_faces/detect_face_result.js +0 -38
  36. package/www/capacitor/detect_faces/detect_faces_attribute.js +0 -15
  37. package/www/capacitor/detect_faces/detect_faces_attribute_result.js +0 -20
  38. package/www/capacitor/detect_faces/detect_faces_backend_exception.js +0 -23
  39. package/www/capacitor/detect_faces/detect_faces_config.js +0 -14
  40. package/www/capacitor/detect_faces/detect_faces_exception.js +0 -30
  41. package/www/capacitor/detect_faces/detect_faces_request.js +0 -67
  42. package/www/capacitor/detect_faces/detect_faces_response.js +0 -24
  43. package/www/capacitor/detect_faces/detect_faces_scenario.js +0 -10
  44. package/www/capacitor/face_capture/face_capture_config.js +0 -28
  45. package/www/capacitor/face_capture/face_capture_exception.js +0 -25
  46. package/www/capacitor/face_capture/face_capture_image.js +0 -26
  47. package/www/capacitor/face_capture/face_capture_response.js +0 -17
  48. package/www/capacitor/image_params/output_image_crop.js +0 -21
  49. package/www/capacitor/image_params/output_image_params.js +0 -9
  50. package/www/capacitor/image_params/point.js +0 -14
  51. package/www/capacitor/image_params/rect.js +0 -18
  52. package/www/capacitor/image_params/size.js +0 -9
  53. package/www/capacitor/image_quality/image_quality_characteristic.js +0 -24
  54. package/www/capacitor/image_quality/image_quality_characteristic_name.js +0 -58
  55. package/www/capacitor/image_quality/image_quality_group.js +0 -332
  56. package/www/capacitor/image_quality/image_quality_range.js +0 -26
  57. package/www/capacitor/image_quality/image_quality_result.js +0 -40
  58. package/www/capacitor/init/face_sdk_version.js +0 -16
  59. package/www/capacitor/match_faces/compared_face.js +0 -21
  60. package/www/capacitor/match_faces/compared_faces_pair.js +0 -23
  61. package/www/capacitor/match_faces/compared_faces_split.js +0 -22
  62. package/www/capacitor/match_faces/match_faces_backend_exception.js +0 -14
  63. package/www/capacitor/match_faces/match_faces_config.js +0 -12
  64. package/www/capacitor/match_faces/match_faces_detection.js +0 -25
  65. package/www/capacitor/match_faces/match_faces_detection_face.js +0 -28
  66. package/www/capacitor/match_faces/match_faces_exception.js +0 -30
  67. package/www/capacitor/match_faces/match_faces_image.js +0 -25
  68. package/www/capacitor/match_faces/match_faces_request.js +0 -13
  69. package/www/capacitor/match_faces/match_faces_response.js +0 -28
  70. package/www/capacitor/person_database/edit_group_persons_request.js +0 -9
  71. package/www/capacitor/person_database/image_upload.js +0 -16
  72. package/www/capacitor/person_database/pageable_item_list.js +0 -22
  73. package/www/capacitor/person_database/person.js +0 -22
  74. package/www/capacitor/person_database/person_database.js +0 -145
  75. package/www/capacitor/person_database/person_group.js +0 -18
  76. package/www/capacitor/person_database/person_image.js +0 -22
  77. package/www/capacitor/person_database/search_person.js +0 -31
  78. package/www/capacitor/person_database/search_person_detection.js +0 -22
  79. package/www/capacitor/person_database/search_person_image.js +0 -26
  80. package/www/capacitor/person_database/search_person_request.js +0 -17
  81. package/www/react-native/customization/customization.js +0 -66
  82. package/www/react-native/customization/customization_colors.js +0 -233
  83. package/www/react-native/customization/customization_fonts.js +0 -106
  84. package/www/react-native/customization/customization_images.js +0 -129
  85. package/www/react-native/customization/font.js +0 -29
  86. package/www/react-native/detect_faces/detect_face_result.js +0 -38
  87. package/www/react-native/detect_faces/detect_faces_attribute.js +0 -15
  88. package/www/react-native/detect_faces/detect_faces_attribute_result.js +0 -20
  89. package/www/react-native/detect_faces/detect_faces_backend_exception.js +0 -23
  90. package/www/react-native/detect_faces/detect_faces_config.js +0 -14
  91. package/www/react-native/detect_faces/detect_faces_exception.js +0 -30
  92. package/www/react-native/detect_faces/detect_faces_request.js +0 -67
  93. package/www/react-native/detect_faces/detect_faces_response.js +0 -24
  94. package/www/react-native/detect_faces/detect_faces_scenario.js +0 -10
  95. package/www/react-native/face_capture/face_capture_config.js +0 -28
  96. package/www/react-native/face_capture/face_capture_exception.js +0 -25
  97. package/www/react-native/face_capture/face_capture_image.js +0 -26
  98. package/www/react-native/face_capture/face_capture_response.js +0 -17
  99. package/www/react-native/image_params/output_image_crop.js +0 -21
  100. package/www/react-native/image_params/output_image_params.js +0 -9
  101. package/www/react-native/image_params/point.js +0 -14
  102. package/www/react-native/image_params/rect.js +0 -18
  103. package/www/react-native/image_params/size.js +0 -9
  104. package/www/react-native/image_quality/image_quality_characteristic.js +0 -24
  105. package/www/react-native/image_quality/image_quality_characteristic_name.js +0 -58
  106. package/www/react-native/image_quality/image_quality_group.js +0 -332
  107. package/www/react-native/image_quality/image_quality_range.js +0 -26
  108. package/www/react-native/image_quality/image_quality_result.js +0 -40
  109. package/www/react-native/init/face_sdk_version.js +0 -16
  110. package/www/react-native/match_faces/compared_face.js +0 -21
  111. package/www/react-native/match_faces/compared_faces_pair.js +0 -23
  112. package/www/react-native/match_faces/compared_faces_split.js +0 -22
  113. package/www/react-native/match_faces/match_faces_backend_exception.js +0 -14
  114. package/www/react-native/match_faces/match_faces_config.js +0 -12
  115. package/www/react-native/match_faces/match_faces_detection.js +0 -25
  116. package/www/react-native/match_faces/match_faces_detection_face.js +0 -28
  117. package/www/react-native/match_faces/match_faces_exception.js +0 -30
  118. package/www/react-native/match_faces/match_faces_image.js +0 -25
  119. package/www/react-native/match_faces/match_faces_request.js +0 -13
  120. package/www/react-native/match_faces/match_faces_response.js +0 -28
  121. package/www/react-native/person_database/edit_group_persons_request.js +0 -9
  122. package/www/react-native/person_database/image_upload.js +0 -16
  123. package/www/react-native/person_database/pageable_item_list.js +0 -22
  124. package/www/react-native/person_database/person.js +0 -22
  125. package/www/react-native/person_database/person_database.js +0 -145
  126. package/www/react-native/person_database/person_group.js +0 -18
  127. package/www/react-native/person_database/person_image.js +0 -22
  128. package/www/react-native/person_database/search_person.js +0 -31
  129. package/www/react-native/person_database/search_person_detection.js +0 -22
  130. package/www/react-native/person_database/search_person_image.js +0 -26
  131. package/www/react-native/person_database/search_person_request.js +0 -17
  132. package/www/types/customization/customization.d.ts +0 -46
  133. package/www/types/customization/customization_colors.d.ts +0 -37
  134. package/www/types/customization/customization_fonts.d.ts +0 -23
  135. package/www/types/customization/customization_images.d.ts +0 -24
  136. package/www/types/customization/font.d.ts +0 -41
  137. package/www/types/detect_faces/detect_face_result.d.ts +0 -16
  138. package/www/types/detect_faces/detect_faces_attribute.d.ts +0 -15
  139. package/www/types/detect_faces/detect_faces_attribute_result.d.ts +0 -11
  140. package/www/types/detect_faces/detect_faces_backend_exception.d.ts +0 -15
  141. package/www/types/detect_faces/detect_faces_config.d.ts +0 -37
  142. package/www/types/detect_faces/detect_faces_exception.d.ts +0 -24
  143. package/www/types/detect_faces/detect_faces_request.d.ts +0 -80
  144. package/www/types/detect_faces/detect_faces_response.d.ts +0 -12
  145. package/www/types/detect_faces/detect_faces_scenario.d.ts +0 -10
  146. package/www/types/face_capture/face_capture_config.d.ts +0 -39
  147. package/www/types/face_capture/face_capture_exception.d.ts +0 -17
  148. package/www/types/face_capture/face_capture_image.d.ts +0 -39
  149. package/www/types/face_capture/face_capture_response.d.ts +0 -9
  150. package/www/types/image_params/output_image_crop.d.ts +0 -49
  151. package/www/types/image_params/output_image_params.d.ts +0 -28
  152. package/www/types/image_params/point.d.ts +0 -9
  153. package/www/types/image_params/rect.d.ts +0 -8
  154. package/www/types/image_params/size.d.ts +0 -6
  155. package/www/types/image_quality/image_quality_characteristic.d.ts +0 -7
  156. package/www/types/image_quality/image_quality_characteristic_name.d.ts +0 -61
  157. package/www/types/image_quality/image_quality_group.d.ts +0 -418
  158. package/www/types/image_quality/image_quality_range.d.ts +0 -8
  159. package/www/types/image_quality/image_quality_result.d.ts +0 -30
  160. package/www/types/init/face_sdk_version.d.ts +0 -16
  161. package/www/types/match_faces/compared_face.d.ts +0 -29
  162. package/www/types/match_faces/compared_faces_pair.d.ts +0 -36
  163. package/www/types/match_faces/compared_faces_split.d.ts +0 -8
  164. package/www/types/match_faces/match_faces_backend_exception.d.ts +0 -6
  165. package/www/types/match_faces/match_faces_config.d.ts +0 -14
  166. package/www/types/match_faces/match_faces_detection.d.ts +0 -30
  167. package/www/types/match_faces/match_faces_detection_face.d.ts +0 -43
  168. package/www/types/match_faces/match_faces_exception.d.ts +0 -21
  169. package/www/types/match_faces/match_faces_image.d.ts +0 -34
  170. package/www/types/match_faces/match_faces_request.d.ts +0 -34
  171. package/www/types/match_faces/match_faces_response.d.ts +0 -27
  172. package/www/types/person_database/edit_group_persons_request.d.ts +0 -8
  173. package/www/types/person_database/image_upload.d.ts +0 -20
  174. package/www/types/person_database/pageable_item_list.d.ts +0 -7
  175. package/www/types/person_database/person.d.ts +0 -33
  176. package/www/types/person_database/person_database.d.ts +0 -95
  177. package/www/types/person_database/person_group.d.ts +0 -22
  178. package/www/types/person_database/person_image.d.ts +0 -10
  179. package/www/types/person_database/search_person.d.ts +0 -31
  180. package/www/types/person_database/search_person_detection.d.ts +0 -11
  181. package/www/types/person_database/search_person_image.d.ts +0 -25
  182. package/www/types/person_database/search_person_request.d.ts +0 -39
@@ -1,332 +0,0 @@
1
- import { ImageQualityCharacteristic } from './image_quality_characteristic'
2
- import { ImageQualityRange } from './image_quality_range'
3
-
4
- export class _Image {
5
- imageWidth(range) {
6
- return ImageQualityCharacteristic._create(
7
- ImageQualityCharacteristicName.IMAGE_WIDTH,
8
- { recommended: range }
9
- )
10
- }
11
-
12
- imageHeight(range) {
13
- return ImageQualityCharacteristic._create(
14
- ImageQualityCharacteristicName.IMAGE_HEIGHT,
15
- { recommended: range }
16
- )
17
- }
18
-
19
- imageWidthToHeight(range) {
20
- return ImageQualityCharacteristic._create(
21
- ImageQualityCharacteristicName.IMAGE_WIDTH_TO_HEIGHT,
22
- { recommended: range }
23
- )
24
- }
25
-
26
- imageChannelsNumber(channelsNumber) {
27
- return ImageQualityCharacteristic._create(
28
- ImageQualityCharacteristicName.IMAGE_CHANNELS_NUMBER,
29
- { recommended: ImageQualityRange.withValue(channelsNumber) }
30
- )
31
- }
32
-
33
- paddingRatio(range) {
34
- return ImageQualityCharacteristic._create(
35
- ImageQualityCharacteristicName.PADDING_RATIO,
36
- { recommended: range }
37
- )
38
- }
39
-
40
- artFace() {
41
- return ImageQualityCharacteristic._create(
42
- ImageQualityCharacteristicName.ART_FACE,
43
- )
44
- }
45
-
46
- allRecommended() {
47
- return [this.artFace()]
48
- }
49
- }
50
-
51
- export class _HeadSizeAndPosition {
52
- faceMidPointHorizontalPosition() {
53
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_MID_POINT_HORIZONTAL_POSITION)
54
- }
55
-
56
- faceMidPointVerticalPosition() {
57
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_MID_POINT_VERTICAL_POSITION)
58
- }
59
-
60
- headWidthRatio() {
61
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.HEAD_WIDTH_RATIO)
62
- }
63
-
64
- headHeightRatio() {
65
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.HEAD_HEIGHT_RATIO)
66
- }
67
-
68
- eyesDistance() {
69
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYES_DISTANCE)
70
- }
71
-
72
- yaw() {
73
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.YAW)
74
- }
75
-
76
- pitch() {
77
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.PITCH)
78
- }
79
-
80
- roll() {
81
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.ROLL)
82
- }
83
-
84
- allRecommended() {
85
- return [
86
- this.faceMidPointHorizontalPosition(),
87
- this.faceMidPointVerticalPosition(),
88
- this.headHeightRatio(),
89
- this.headWidthRatio(),
90
- this.eyesDistance(),
91
- this.yaw(),
92
- this.pitch(),
93
- this.roll(),
94
- ]
95
- }
96
- }
97
-
98
- export class _FaceImage {
99
- blurLevel() {
100
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.BLUR_LEVEL)
101
- }
102
-
103
- noiseLevel() {
104
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.NOISE_LEVEL)
105
- }
106
-
107
- unnaturalSkinTone() {
108
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.UNNATURAL_SKIN_TONE)
109
- }
110
-
111
- faceDynamicRange() {
112
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_DYNAMIC_RANGE)
113
- }
114
-
115
- allRecommended() {
116
- return [
117
- this.blurLevel(),
118
- this.noiseLevel(),
119
- this.unnaturalSkinTone(),
120
- this.faceDynamicRange(),
121
- ]
122
- }
123
- }
124
-
125
- export class _Eyes {
126
- eyeRightClosed() {
127
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_RIGHT_CLOSED)
128
- }
129
-
130
- eyeLeftClosed() {
131
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_LEFT_CLOSED)
132
- }
133
-
134
- eyeRightOccluded() {
135
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_RIGHT_OCCLUDED)
136
- }
137
-
138
- eyeLeftOccluded() {
139
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_LEFT_OCCLUDED)
140
- }
141
-
142
- eyesRed() {
143
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYES_RED)
144
- }
145
-
146
- eyeRightCoveredWithHair() {
147
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_RIGHT_COVERED_WITH_HAIR)
148
- }
149
-
150
- eyeLeftCoveredWithHair() {
151
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_LEFT_COVERED_WITH_HAIR)
152
- }
153
-
154
- offGaze() {
155
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.OFF_GAZE)
156
- }
157
-
158
- allRecommended() {
159
- return [
160
- this.eyeRightClosed(),
161
- this.eyeLeftClosed(),
162
- this.eyeRightOccluded(),
163
- this.eyeLeftOccluded(),
164
- this.eyesRed(),
165
- this.eyeRightCoveredWithHair(),
166
- this.eyeLeftCoveredWithHair(),
167
- this.offGaze(),
168
- ]
169
- }
170
- }
171
-
172
- export class _ShadowsAndLightning {
173
- tooDark() {
174
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.TOO_DARK)
175
- }
176
-
177
- tooLight() {
178
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.TOO_LIGHT)
179
- }
180
-
181
- faceGlare() {
182
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_GLARE)
183
- }
184
-
185
- shadowsOnFace() {
186
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.SHADOWS_ON_FACE)
187
- }
188
-
189
- allRecommended() {
190
- return [
191
- this.tooDark(),
192
- this.tooLight(),
193
- this.faceGlare(),
194
- this.shadowsOnFace(),
195
- ]
196
- }
197
- }
198
-
199
- export class _PoseAndExpression {
200
- shouldersPose() {
201
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.SHOULDERS_POSE)
202
- }
203
-
204
- expressionLevel() {
205
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EXPRESSION_LEVEL)
206
- }
207
-
208
- mouthOpen() {
209
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.MOUTH_OPEN)
210
- }
211
-
212
- smile() {
213
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.SMILE)
214
- }
215
-
216
- allRecommended() {
217
- return [
218
- this.shouldersPose(),
219
- this.expressionLevel(),
220
- this.mouthOpen(),
221
- this.smile(),
222
- ]
223
- }
224
- }
225
-
226
- export class _HeadOcclusion {
227
- darkGlasses() {
228
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.DARK_GLASSES)
229
- }
230
-
231
- reflectionOnGlasses() {
232
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.REFLECTION_ON_GLASSES)
233
- }
234
-
235
- framesTooHeavy() {
236
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FRAMES_TOO_HEAVY)
237
- }
238
-
239
- faceOccluded() {
240
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_OCCLUDED)
241
- }
242
-
243
- headCovering() {
244
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.HEAD_COVERING)
245
- }
246
-
247
- foreheadCovering() {
248
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FOREHEAD_COVERING)
249
- }
250
-
251
- strongMakeup() {
252
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.STRONG_MAKEUP)
253
- }
254
-
255
- headphones() {
256
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.HEAD_PHONES)
257
- }
258
-
259
- medicalMask() {
260
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.MEDICAL_MASK)
261
- }
262
-
263
- allRecommended() {
264
- return [
265
- this.darkGlasses(),
266
- this.reflectionOnGlasses(),
267
- this.framesTooHeavy(),
268
- this.faceOccluded(),
269
- this.headCovering(),
270
- this.foreheadCovering(),
271
- this.strongMakeup(),
272
- this.headphones(),
273
- this.medicalMask(),
274
- ]
275
- }
276
- }
277
-
278
- export class _Background {
279
- backgroundUniformity() {
280
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.BACKGROUND_UNIFORMITY)
281
- }
282
-
283
- shadowsOnBackground() {
284
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.SHADOWS_ON_BACKGROUND)
285
- }
286
-
287
- otherFaces() {
288
- return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.OTHER_FACES)
289
- }
290
-
291
- backgroundColorMatch(params) {
292
- return ImageQualityCharacteristic._create(
293
- ImageQualityCharacteristicName.BACKGROUND_COLOR_MATCH,
294
- { color: params?.color }
295
- )
296
- }
297
-
298
- allRecommended() {
299
- return [
300
- this.backgroundUniformity(),
301
- this.shadowsOnBackground(),
302
- this.otherFaces(),
303
- this.backgroundColorMatch(),
304
- ]
305
- }
306
- }
307
-
308
- export class ImageQualityGroup {
309
- static get image() { return ImageQualityGroup._image }
310
- static _image = new _Image()
311
-
312
- static get headSizeAndPosition() { return ImageQualityGroup._headSizeAndPosition }
313
- static _headSizeAndPosition = new _HeadSizeAndPosition()
314
-
315
- static get faceImage() { return ImageQualityGroup._faceImage }
316
- static _faceImage = new _FaceImage()
317
-
318
- static get eyes() { return ImageQualityGroup._eyes }
319
- static _eyes = new _Eyes()
320
-
321
- static get shadowsAndLightning() { return ImageQualityGroup._shadowsAndLightning }
322
- static _shadowsAndLightning = new _ShadowsAndLightning()
323
-
324
- static get poseAndExpression() { return ImageQualityGroup._poseAndExpression }
325
- static _poseAndExpression = new _PoseAndExpression()
326
-
327
- static get headOcclusion() { return ImageQualityGroup._headOcclusion }
328
- static _headOcclusion = new _HeadOcclusion()
329
-
330
- static get background() { return ImageQualityGroup._background }
331
- static _background = new _Background()
332
- }
@@ -1,26 +0,0 @@
1
- export class ImageQualityRange {
2
- min
3
- max
4
-
5
- constructor(min, max) {
6
- this.min = min
7
- this.max = max
8
- }
9
-
10
- static withValue(value) {
11
- var result = new ImageQualityRange()
12
- result.min = value
13
- result.max = value
14
- return result
15
- }
16
-
17
- static fromJson(jsonObject) {
18
- if (jsonObject == null) return null
19
- const result = new ImageQualityRange()
20
-
21
- result.min = jsonObject["min"]
22
- result.max = jsonObject["max"]
23
-
24
- return result
25
- }
26
- }
@@ -1,40 +0,0 @@
1
- import { ImageQualityRange } from './image_quality_range'
2
-
3
- export class ImageQualityResult {
4
- group
5
- name
6
- status
7
- value
8
- range
9
-
10
- static fromJson(jsonObject) {
11
- if (jsonObject == null) return null
12
- const result = new ImageQualityResult()
13
-
14
- result.name = jsonObject["name"]
15
- result.group = jsonObject["group"]
16
- result.status = jsonObject["status"]
17
- result.range = ImageQualityRange.fromJson(jsonObject["range"])
18
- result.value = jsonObject["value"]
19
-
20
- return result
21
- }
22
- }
23
-
24
- export const ImageQualityGroupName = {
25
- IMAGE_CHARACTERISTICS: 1,
26
- HEAD_SIZE_AND_POSITION: 2,
27
- FACE_QUALITY: 3,
28
- EYES_CHARACTERISTICS: 4,
29
- SHADOWS_AND_LIGHTNING: 5,
30
- POSE_AND_EXPRESSION: 6,
31
- HEAD_OCCLUSION: 7,
32
- BACKGROUND: 8,
33
- UNKNOWN: 9,
34
- }
35
-
36
- export const ImageQualityResultStatus = {
37
- FALSE: 0,
38
- TRUE: 1,
39
- UNDETERMINED: 2,
40
- }
@@ -1,16 +0,0 @@
1
- export class FaceSDKVersion {
2
- api
3
- core
4
- coreMode
5
-
6
- static fromJson(jsonObject) {
7
- if (jsonObject == null) return null
8
- const result = new FaceSDKVersion()
9
-
10
- result.api = jsonObject["api"]
11
- result.core = jsonObject["core"]
12
- result.coreMode = jsonObject["coreMode"]
13
-
14
- return result
15
- }
16
- }
@@ -1,21 +0,0 @@
1
- import { MatchFacesImage } from './match_faces_image'
2
- import { MatchFacesDetectionFace } from './match_faces_detection_face'
3
-
4
- export class ComparedFace {
5
- imageIndex
6
- image
7
- faceIndex
8
- face
9
-
10
- static fromJson(jsonObject) {
11
- if (jsonObject == null) return null
12
- const result = new ComparedFace()
13
-
14
- result.imageIndex = jsonObject["imageIndex"]
15
- result.image = MatchFacesImage.fromJson(jsonObject["image"])
16
- result.faceIndex = jsonObject["faceIndex"]
17
- result.face = MatchFacesDetectionFace.fromJson(jsonObject["face"])
18
-
19
- return result
20
- }
21
- }
@@ -1,23 +0,0 @@
1
- import { ComparedFace } from './compared_face'
2
- import { MatchFacesException } from './match_faces_exception'
3
-
4
- export class ComparedFacesPair {
5
- first
6
- second
7
- similarity
8
- score
9
- error
10
-
11
- static fromJson(jsonObject) {
12
- if (jsonObject == null) return null
13
- const result = new ComparedFacesPair()
14
-
15
- result.first = ComparedFace.fromJson(jsonObject["first"])
16
- result.second = ComparedFace.fromJson(jsonObject["second"])
17
- result.similarity = jsonObject["similarity"]
18
- result.score = jsonObject["score"]
19
- result.error = MatchFacesException.fromJson(jsonObject["error"])
20
-
21
- return result
22
- }
23
- }
@@ -1,22 +0,0 @@
1
- import { ComparedFacesPair } from './compared_faces_pair'
2
-
3
- export class ComparedFacesSplit {
4
- matchedFaces
5
- unmatchedFaces
6
-
7
- static fromJson(jsonObject) {
8
- if (jsonObject == null) return null
9
- const result = new ComparedFacesSplit()
10
-
11
- result.matchedFaces = []
12
- if (jsonObject["matchedFaces"] != null)
13
- for (const item of jsonObject["matchedFaces"])
14
- result.matchedFaces.push(ComparedFacesPair.fromJson(item))
15
- result.unmatchedFaces = []
16
- if (jsonObject["unmatchedFaces"] != null)
17
- for (const item of jsonObject["unmatchedFaces"])
18
- result.unmatchedFaces.push(ComparedFacesPair.fromJson(item))
19
-
20
- return result
21
- }
22
- }
@@ -1,14 +0,0 @@
1
- export class MatchFacesBackendException {
2
- code
3
- message
4
-
5
- static fromJson(jsonObject) {
6
- if (jsonObject == null) return null
7
- const result = new MatchFacesBackendException()
8
-
9
- result.code = jsonObject["code"]
10
- result.message = jsonObject["message"] ?? ""
11
-
12
- return result
13
- }
14
- }
@@ -1,12 +0,0 @@
1
- export class MatchFacesConfig {
2
- processingMode
3
-
4
- constructor(params) {
5
- this.processingMode = params?.processingMode ?? ProcessingMode.ONLINE
6
- }
7
- }
8
-
9
- export const ProcessingMode = {
10
- ONLINE: 0,
11
- OFFLINE: 1,
12
- }
@@ -1,25 +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
- export class MatchFacesDetection {
6
- imageIndex
7
- image
8
- faces
9
- error
10
-
11
- static fromJson(jsonObject) {
12
- if (jsonObject == null) return null
13
- const result = new MatchFacesDetection()
14
-
15
- result.imageIndex = jsonObject["imageIndex"]
16
- result.image = MatchFacesImage.fromJson(jsonObject["image"])
17
- result.faces = []
18
- if (jsonObject["faces"] != null)
19
- for (const item of jsonObject["faces"])
20
- result.faces.push(MatchFacesDetectionFace.fromJson(item))
21
- result.error = MatchFacesException.fromJson(jsonObject["error"])
22
-
23
- return result
24
- }
25
- }
@@ -1,28 +0,0 @@
1
- import { Point } from '../image_params/point'
2
- import { Rect } from '../image_params/rect'
3
-
4
- export class MatchFacesDetectionFace {
5
- faceIndex
6
- landmarks
7
- faceRect
8
- rotationAngle
9
- originalRect
10
- crop
11
-
12
- static fromJson(jsonObject) {
13
- if (jsonObject == null) return null
14
- const result = new MatchFacesDetectionFace()
15
-
16
- result.faceIndex = jsonObject["faceIndex"]
17
- result.landmarks = []
18
- if (jsonObject["landmarks"] != null)
19
- for (const item of jsonObject["landmarks"])
20
- result.landmarks.push(Point.fromJson(item))
21
- result.faceRect = Rect.fromJson(jsonObject["faceRect"])
22
- result.rotationAngle = jsonObject["rotationAngle"]
23
- result.originalRect = Rect.fromJson(jsonObject["originalRect"])
24
- result.crop = jsonObject["crop"]
25
-
26
- return result
27
- }
28
- }
@@ -1,30 +0,0 @@
1
- import { MatchFacesBackendException } from './match_faces_backend_exception'
2
-
3
- export class MatchFacesException {
4
- code
5
- message
6
- underlyingError
7
-
8
- static fromJson(jsonObject) {
9
- if (jsonObject == null) return null
10
- const result = new MatchFacesException()
11
-
12
- result.code = jsonObject["code"]
13
- result.message = jsonObject["message"] ?? ""
14
- result.underlyingError = MatchFacesBackendException.fromJson(jsonObject["underlyingError"])
15
-
16
- return result
17
- }
18
- }
19
-
20
- export const MatchFacesErrorCode = {
21
- IMAGE_EMPTY: 0,
22
- FACE_NOT_DETECTED: 1,
23
- LANDMARKS_NOT_DETECTED: 2,
24
- FACE_ALIGNER_FAILED: 3,
25
- DESCRIPTOR_EXTRACTOR_ERROR: 4,
26
- IMAGES_COUNT_LIMIT_EXCEEDED: 5,
27
- API_CALL_FAILED: 6,
28
- PROCESSING_FAILED: 7,
29
- NO_LICENSE: 8,
30
- }
@@ -1,25 +0,0 @@
1
- export class MatchFacesImage {
2
- image
3
- imageType
4
- detectAll
5
- identifier
6
-
7
- constructor(image, imageType, params) {
8
- this.image = image
9
- this.imageType = imageType
10
- this.detectAll = params?.detectAll ?? false
11
- this.identifier = ""
12
- }
13
-
14
- static fromJson(jsonObject) {
15
- if (jsonObject == null) return null
16
- const result = new MatchFacesImage()
17
-
18
- result.image = jsonObject["image"]
19
- result.imageType = jsonObject["imageType"]
20
- result.detectAll = jsonObject["detectAll"]
21
- result.identifier = jsonObject["identifier"]
22
-
23
- return result
24
- }
25
- }
@@ -1,13 +0,0 @@
1
- export class MatchFacesRequest {
2
- images
3
- outputImageParams
4
- tag
5
- metadata
6
-
7
- constructor(images, params) {
8
- this.images = images
9
- this.outputImageParams = params?.outputImageParams
10
- this.tag = params?.tag
11
- this.metadata = params?.metadata
12
- }
13
- }
@@ -1,28 +0,0 @@
1
- import { ComparedFacesPair } from './compared_faces_pair'
2
- import { MatchFacesDetection } from './match_faces_detection'
3
- import { MatchFacesException } from './match_faces_exception'
4
-
5
- export class MatchFacesResponse {
6
- results
7
- detections
8
- tag
9
- error
10
-
11
- static fromJson(jsonObject) {
12
- if (jsonObject == null) return null
13
- const result = new MatchFacesResponse()
14
-
15
- result.results = []
16
- if (jsonObject["results"] != null)
17
- for (const item of jsonObject["results"])
18
- result.results.push(ComparedFacesPair.fromJson(item))
19
- result.detections = []
20
- if (jsonObject["detections"] != null)
21
- for (const item of jsonObject["detections"])
22
- result.detections.push(MatchFacesDetection.fromJson(item))
23
- result.tag = jsonObject["tag"]
24
- result.error = MatchFacesException.fromJson(jsonObject["error"])
25
-
26
- return result
27
- }
28
- }
@@ -1,9 +0,0 @@
1
- export class EditGroupPersonsRequest {
2
- personIdsToAdd
3
- personIdsToRemove
4
-
5
- constructor(params) {
6
- this.personIdsToAdd = params?.personIdsToAdd
7
- this.personIdsToRemove = params?.personIdsToRemove
8
- }
9
- }
@@ -1,16 +0,0 @@
1
- export class ImageUpload {
2
- imageData
3
- imageUrl
4
-
5
- static withImageData(imageData) {
6
- var result = new ImageUpload()
7
- result.imageData = imageData
8
- return result
9
- }
10
-
11
- static withImageUrl(imageUrl) {
12
- var result = new ImageUpload()
13
- result.imageUrl = imageUrl
14
- return result
15
- }
16
- }