@regulaforensics/face-sdk 7.2.414-beta → 7.2.421-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 (170) hide show
  1. package/README.md +3 -2
  2. package/RNFaceSDK.podspec +2 -2
  3. package/android/build.gradle +2 -2
  4. package/android/cordova.gradle +2 -2
  5. package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +0 -2
  6. package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +0 -18
  7. package/examples/capacitor/android/app/src/main/AndroidManifest.xml +2 -2
  8. package/examples/capacitor/index.html +7 -2
  9. package/examples/capacitor/package-lock.json +3 -17
  10. package/examples/capacitor/package.json +3 -3
  11. package/examples/capacitor/scripts/setup.sh +2 -4
  12. package/examples/capacitor/src/main.css +6 -60
  13. package/examples/capacitor/src/main.html +1 -1
  14. package/examples/capacitor/src/main.tsx +87 -51
  15. package/examples/cordova/.vscode/launch.json +28 -0
  16. package/examples/cordova/README.md +25 -0
  17. package/examples/cordova/config.xml +26 -0
  18. package/examples/cordova/package-lock.json +1313 -0
  19. package/examples/cordova/package.json +30 -0
  20. package/examples/cordova/scripts/android.sh +8 -0
  21. package/examples/cordova/scripts/ios.sh +8 -0
  22. package/examples/cordova/scripts/setup.sh +8 -0
  23. package/examples/cordova/www/images/logo.png +0 -0
  24. package/examples/cordova/www/index.html +21 -0
  25. package/examples/cordova/www/src/main.css +83 -0
  26. package/examples/cordova/www/src/main.html +25 -0
  27. package/examples/cordova/www/src/main.js +152 -0
  28. package/examples/ionic/angular.json +3 -3
  29. package/examples/ionic/config.xml +1 -1
  30. package/examples/ionic/index.ts +17 -0
  31. package/examples/ionic/package-lock.json +765 -851
  32. package/examples/ionic/package.json +3 -3
  33. package/examples/ionic/src/images/portrait.png +0 -0
  34. package/examples/ionic/src/main.css +6 -60
  35. package/examples/ionic/src/main.html +1 -1
  36. package/examples/ionic/src/{main.tsx → main.ts} +97 -52
  37. package/examples/ionic/tsconfig.json +2 -3
  38. package/examples/react_native/index.tsx +7 -49
  39. package/examples/react_native/package-lock.json +9296 -0
  40. package/examples/react_native/package.json +9 -9
  41. package/examples/react_native/src/main.css +6 -60
  42. package/examples/react_native/src/main.html +1 -1
  43. package/examples/react_native/src/main.tsx +79 -54
  44. package/ios/RFSWJSONConstructor.h +1 -0
  45. package/ios/RFSWJSONConstructor.m +14 -5
  46. package/ios/RFSWMain.m +0 -30
  47. package/package.json +1 -1
  48. package/plugin.xml +2 -2
  49. package/www/capacitor/customization/customization_fonts.js +1 -1
  50. package/www/capacitor/customization/customization_images.js +1 -1
  51. package/www/capacitor/customization/font.js +0 -8
  52. package/www/capacitor/detect_faces/detect_face_result.js +0 -12
  53. package/www/capacitor/detect_faces/detect_faces_attribute_result.js +0 -9
  54. package/www/capacitor/detect_faces/detect_faces_backend_exception.js +0 -7
  55. package/www/capacitor/detect_faces/detect_faces_config.js +0 -34
  56. package/www/capacitor/detect_faces/detect_faces_exception.js +0 -8
  57. package/www/capacitor/detect_faces/detect_faces_request.js +0 -22
  58. package/www/capacitor/detect_faces/detect_faces_response.js +0 -9
  59. package/www/capacitor/face_capture/face_capture_config.js +0 -37
  60. package/www/capacitor/face_capture/face_capture_exception.js +0 -7
  61. package/www/capacitor/face_capture/face_capture_image.js +0 -8
  62. package/www/capacitor/face_capture/face_capture_response.js +0 -7
  63. package/www/capacitor/image_params/output_image_crop.js +0 -23
  64. package/www/capacitor/image_params/output_image_params.js +0 -19
  65. package/www/capacitor/image_params/point.js +0 -7
  66. package/www/capacitor/image_params/rect.js +0 -9
  67. package/www/capacitor/image_params/size.js +0 -12
  68. package/www/capacitor/image_quality/image_quality_characteristic.js +0 -22
  69. package/www/capacitor/image_quality/image_quality_range.js +0 -7
  70. package/www/capacitor/image_quality/image_quality_result.js +0 -10
  71. package/www/capacitor/index.js +0 -48
  72. package/www/capacitor/init/face_sdk_version.js +0 -8
  73. package/www/capacitor/init/init_config.js +0 -19
  74. package/www/capacitor/init/init_exception.js +0 -8
  75. package/www/capacitor/init/license_exception.js +0 -7
  76. package/www/capacitor/internal/bridge.js +1 -20
  77. package/www/capacitor/liveness/liveness_backend_exception.js +0 -7
  78. package/www/capacitor/liveness/liveness_config.js +0 -43
  79. package/www/capacitor/liveness/liveness_exception.js +0 -8
  80. package/www/capacitor/liveness/liveness_notification.js +0 -7
  81. package/www/capacitor/liveness/liveness_response.js +0 -11
  82. package/www/capacitor/match_faces/compared_face.js +0 -9
  83. package/www/capacitor/match_faces/compared_faces_pair.js +0 -10
  84. package/www/capacitor/match_faces/compared_faces_split.js +0 -7
  85. package/www/capacitor/match_faces/match_faces_backend_exception.js +0 -7
  86. package/www/capacitor/match_faces/match_faces_config.js +0 -19
  87. package/www/capacitor/match_faces/match_faces_detection.js +0 -9
  88. package/www/capacitor/match_faces/match_faces_detection_face.js +0 -11
  89. package/www/capacitor/match_faces/match_faces_exception.js +0 -8
  90. package/www/capacitor/match_faces/match_faces_image.js +0 -9
  91. package/www/capacitor/match_faces/match_faces_request.js +0 -27
  92. package/www/capacitor/match_faces/match_faces_response.js +0 -9
  93. package/www/capacitor/person_database/edit_group_persons_request.js +0 -15
  94. package/www/capacitor/person_database/image_upload.js +0 -17
  95. package/www/capacitor/person_database/pageable_item_list.js +0 -8
  96. package/www/capacitor/person_database/person.js +0 -13
  97. package/www/capacitor/person_database/person_group.js +0 -11
  98. package/www/capacitor/person_database/person_image.js +0 -13
  99. package/www/capacitor/person_database/search_person.js +0 -14
  100. package/www/capacitor/person_database/search_person_detection.js +0 -9
  101. package/www/capacitor/person_database/search_person_image.js +0 -15
  102. package/www/capacitor/person_database/search_person_request.js +0 -29
  103. package/www/cordova.js +6 -753
  104. package/www/react-native/customization/customization_fonts.js +1 -1
  105. package/www/react-native/customization/customization_images.js +1 -1
  106. package/www/react-native/customization/font.js +0 -8
  107. package/www/react-native/detect_faces/detect_face_result.js +0 -12
  108. package/www/react-native/detect_faces/detect_faces_attribute_result.js +0 -9
  109. package/www/react-native/detect_faces/detect_faces_backend_exception.js +0 -7
  110. package/www/react-native/detect_faces/detect_faces_config.js +0 -34
  111. package/www/react-native/detect_faces/detect_faces_exception.js +0 -8
  112. package/www/react-native/detect_faces/detect_faces_request.js +0 -22
  113. package/www/react-native/detect_faces/detect_faces_response.js +0 -9
  114. package/www/react-native/face_capture/face_capture_config.js +0 -37
  115. package/www/react-native/face_capture/face_capture_exception.js +0 -7
  116. package/www/react-native/face_capture/face_capture_image.js +0 -8
  117. package/www/react-native/face_capture/face_capture_response.js +0 -7
  118. package/www/react-native/image_params/output_image_crop.js +0 -23
  119. package/www/react-native/image_params/output_image_params.js +0 -19
  120. package/www/react-native/image_params/point.js +0 -7
  121. package/www/react-native/image_params/rect.js +0 -9
  122. package/www/react-native/image_params/size.js +0 -12
  123. package/www/react-native/image_quality/image_quality_characteristic.js +0 -22
  124. package/www/react-native/image_quality/image_quality_range.js +0 -7
  125. package/www/react-native/image_quality/image_quality_result.js +0 -10
  126. package/www/react-native/index.js +0 -48
  127. package/www/react-native/init/face_sdk_version.js +0 -8
  128. package/www/react-native/init/init_config.js +0 -19
  129. package/www/react-native/init/init_exception.js +0 -8
  130. package/www/react-native/init/license_exception.js +0 -7
  131. package/www/react-native/internal/bridge.js +1 -20
  132. package/www/react-native/liveness/liveness_backend_exception.js +0 -7
  133. package/www/react-native/liveness/liveness_config.js +0 -43
  134. package/www/react-native/liveness/liveness_exception.js +0 -8
  135. package/www/react-native/liveness/liveness_notification.js +0 -7
  136. package/www/react-native/liveness/liveness_response.js +0 -11
  137. package/www/react-native/match_faces/compared_face.js +0 -9
  138. package/www/react-native/match_faces/compared_faces_pair.js +0 -10
  139. package/www/react-native/match_faces/compared_faces_split.js +0 -7
  140. package/www/react-native/match_faces/match_faces_backend_exception.js +0 -7
  141. package/www/react-native/match_faces/match_faces_config.js +0 -19
  142. package/www/react-native/match_faces/match_faces_detection.js +0 -9
  143. package/www/react-native/match_faces/match_faces_detection_face.js +0 -11
  144. package/www/react-native/match_faces/match_faces_exception.js +0 -8
  145. package/www/react-native/match_faces/match_faces_image.js +0 -9
  146. package/www/react-native/match_faces/match_faces_request.js +0 -27
  147. package/www/react-native/match_faces/match_faces_response.js +0 -9
  148. package/www/react-native/person_database/edit_group_persons_request.js +0 -15
  149. package/www/react-native/person_database/image_upload.js +0 -17
  150. package/www/react-native/person_database/pageable_item_list.js +0 -8
  151. package/www/react-native/person_database/person.js +0 -13
  152. package/www/react-native/person_database/person_group.js +0 -11
  153. package/www/react-native/person_database/person_image.js +0 -13
  154. package/www/react-native/person_database/search_person.js +0 -14
  155. package/www/react-native/person_database/search_person_detection.js +0 -9
  156. package/www/react-native/person_database/search_person_image.js +0 -15
  157. package/www/react-native/person_database/search_person_request.js +0 -29
  158. package/www/types/index.d.ts +0 -12
  159. package/www/types/match_faces/match_faces_config.d.ts +0 -2
  160. package/www/types/person_database/search_person_request.d.ts +0 -4
  161. package/examples/capacitor/index.tsx +0 -53
  162. package/examples/ionic/index.tsx +0 -68
  163. package/test/json.tsx +0 -375
  164. package/test/package-lock.json +0 -584
  165. package/test/package.json +0 -9
  166. package/test/test.tsx +0 -61
  167. package/test/utils.tsx +0 -38
  168. /package/examples/{ionic → cordova/www}/images/portrait.png +0 -0
  169. /package/examples/ionic/{assets → src/assets}/.gitkeep +0 -0
  170. /package/examples/ionic/{images → src/images}/icon.png +0 -0
package/test/json.tsx DELETED
@@ -1,375 +0,0 @@
1
- var img1 = 'data1'
2
- var img2 = 'data2'
3
- var img3 = 'data3'
4
-
5
- export var customJson = {"test1": true, "test2": 1, "test3": "test"}
6
-
7
- export var font1 = {"name": "AppleSDGothicNeo-Thin", "size": 10, "style": 2}
8
- export var font2 = {"name": "Copperplate-Light", "size": 20, "style": 1}
9
- export var customizationColors = {
10
- "100": 0xff000000,
11
- "101": 0xff000001,
12
- "102": 0xff000002,
13
- "103": 0xff000003,
14
- "104": 0xff000004,
15
- "105": 0xff000005,
16
- "200": 0xff000006,
17
- "201": 0xff000007,
18
- "202": 0xff000008,
19
- "203": 0xff000009,
20
- "204": 0xff000010,
21
- "205": 0xff000011,
22
- "206": 0xff000012,
23
- "207": 0xff000013,
24
- "208": 0xff000014,
25
- "209": 0xff000015,
26
- "300": 0xff000016,
27
- "301": 0xff000017,
28
- "302": 0xff000018,
29
- "303": 0xff000019,
30
- "304": 0xff000020,
31
- "305": 0xff000021,
32
- "400": 0xff000022,
33
- "401": 0xff000023,
34
- "402": 0xff000024,
35
- "500": 0xff000025,
36
- }
37
- export var customizationFonts = {
38
- "100": font1,
39
- "101": font2,
40
- "102": font1,
41
- "103": font2,
42
- "200": font1,
43
- "300": font2,
44
- "301": font1,
45
- "302": font2,
46
- "303": font1,
47
- "400": font2,
48
- }
49
- export var customizationImages = {
50
- "100": img1,
51
- "101": img2,
52
- "102": img3,
53
- "103": img1,
54
- "200": img2,
55
- "201": img3,
56
- "202": img1,
57
- "203": img2,
58
- "300": img3,
59
- "301": img1,
60
- "302": img2,
61
- "400": img3,
62
- "500": img1,
63
- }
64
- export var customization = {
65
- "colors": customizationColors,
66
- "fonts": customizationFonts,
67
- "images": customizationImages,
68
- "uiCustomizationLayer": customJson
69
- }
70
-
71
- export var point = {
72
- "x": 0,
73
- "y": 1,
74
- }
75
- export var rect = {
76
- "left": 0,
77
- "top": 1,
78
- "right": 2,
79
- "bottom": 3,
80
- }
81
- export var size = {
82
- "width": 68,
83
- "height": 91,
84
- }
85
- export var outputImageCrop = {
86
- "type": 0,
87
- "size": size,
88
- "padColor": 0xff000000,
89
- "returnOriginalRect": true
90
- }
91
- export var outputImageParams = {
92
- "crop": outputImageCrop,
93
- "backgroundColor": 0xff000000,
94
- }
95
-
96
- export var imageQualityRange = {
97
- "min": 0.45,
98
- "max": 0.55,
99
- }
100
- export var imageQualityResult = {
101
- "group": 1,
102
- "name": "ImageWidth",
103
- "status": 0,
104
- "value": 0.5,
105
- "range": imageQualityRange,
106
- }
107
- export var imageQualityCharacteristic = {
108
- "characteristicName": "FaceMidPointHorizontalPosition",
109
- "recommendedRange": imageQualityRange,
110
- }
111
-
112
- export var detectFacesAttributeResult = {
113
- "attribute": "Age",
114
- "confidence": 0.5,
115
- "value": "test",
116
- "range": imageQualityRange,
117
- }
118
- export var detectFaceResult = {
119
- "quality": [imageQualityResult, imageQualityResult, imageQualityResult],
120
- "crop": img1,
121
- "attributes": [
122
- detectFacesAttributeResult,
123
- detectFacesAttributeResult,
124
- detectFacesAttributeResult
125
- ],
126
- "landmarks": [point, point, point],
127
- "faceRect": rect,
128
- "originalRect": rect,
129
- "isQualityCompliant": false,
130
- }
131
- export var detectFacesConfig = {
132
- "attributes": ["Age", "EyeRight", "EyeLeft"],
133
- "customQuality": [
134
- imageQualityCharacteristic,
135
- imageQualityCharacteristic,
136
- imageQualityCharacteristic
137
- ],
138
- "outputImageParams": outputImageParams,
139
- "onlyCentralFace": true,
140
- }
141
- export var detectFacesRequest = {
142
- "tag": "test",
143
- // "scenario": "CropCentralFace",
144
- "image": img1,
145
- "configuration": detectFacesConfig,
146
- }
147
- export var detectFacesBackendException = {
148
- "code": 2,
149
- "message": "test",
150
- }
151
- export var detectFacesException = {
152
- "code": 0,
153
- "message": "In process already.",
154
- "underlyingError": detectFacesBackendException
155
- }
156
- export var detectFacesResponse = {
157
- "detection": detectFaceResult,
158
- "allDetections": [detectFaceResult, detectFaceResult, detectFaceResult],
159
- "scenario": "CropCentralFace",
160
- "error": detectFacesException,
161
- }
162
-
163
- export var faceCaptureConfig = {
164
- "copyright": true,
165
- "cameraSwitchEnabled": false,
166
- "closeButtonEnabled": true,
167
- "torchButtonEnabled": false,
168
- "vibrateOnSteps": true,
169
- "detectOcclusion": false,
170
- "showFaceAnimation": true,
171
- "cameraPositionAndroid": 0,
172
- "cameraPositionIOS": 1,
173
- "screenOrientation": [0, 1],
174
- "timeout": 0.5,
175
- "holdStillDuration": 1.5,
176
- }
177
- export var faceCaptureImage = {
178
- "image": img1,
179
- "imageType": 1,
180
- "tag": "test",
181
- }
182
- export var faceCaptureException = {
183
- "code": 0,
184
- "message": "Cancelled by user.",
185
- }
186
- export var faceCaptureResponse = {
187
- "image": faceCaptureImage,
188
- "error": faceCaptureException,
189
- }
190
-
191
- export var faceSDKVersion = {
192
- "api": "test1",
193
- "core": "test2",
194
- "coreMode": "test3",
195
- }
196
- export var initConfig = {
197
- "license": img1,
198
- "licenseUpdate": true,
199
- "useBleDevice": false,
200
- }
201
- export var licenseException = {
202
- "code": 0,
203
- "message": "",
204
- }
205
- export var initException = {
206
- "code": 0,
207
- "message": "In process already.",
208
- "underlyingError": licenseException
209
- }
210
-
211
- export var livenessConfig = {
212
- "copyright": true,
213
- "cameraSwitchEnabled": false,
214
- "closeButtonEnabled": true,
215
- "torchButtonEnabled": false,
216
- "vibrateOnSteps": true,
217
- "cameraPositionAndroid": -1,
218
- "cameraPositionIOS": 1,
219
- "screenOrientation": [0, 1],
220
- "locationTrackingEnabled": true,
221
- "attemptsCount": 2,
222
- "recordingProcess": 0,
223
- "livenessType": 1,
224
- "tag": "test",
225
- "skipStep": [0, 1],
226
- "metadata": customJson,
227
- }
228
- export var livenessBackendException = {
229
- "code": 200,
230
- "message": "No license",
231
- }
232
- export var livenessException = {
233
- "code": 0,
234
- "message": "FaceSDK Core is not initialized",
235
- "underlyingError": livenessBackendException
236
- }
237
- export var livenessResponse = {
238
- "image": img1,
239
- "liveness": 0,
240
- "tag": "test",
241
- "transactionId": "test1",
242
- "estimatedAge": 1,
243
- "error": livenessException,
244
- }
245
- export var livenessNotification = {
246
- "status": 0,
247
- "response": livenessResponse,
248
- }
249
-
250
- export var matchFacesConfig = {
251
- "processingMode": 0,
252
- "locationTrackingEnabled": false,
253
- }
254
- export var matchFacesImage = {
255
- "image": img1,
256
- "imageType": 1,
257
- "detectAll": true,
258
- "identifier": "test"
259
- }
260
- export var matchFacesRequest = {
261
- "images": [matchFacesImage, matchFacesImage, matchFacesImage],
262
- "outputImageParams": outputImageParams,
263
- "tag": "test",
264
- "metadata": customJson,
265
- }
266
- export var matchFacesDetectionFace = {
267
- "faceIndex": 0,
268
- "landmarks": [point, point, point],
269
- "faceRect": rect,
270
- "rotationAngle": 0.5,
271
- "originalRect": rect,
272
- "crop": img1,
273
- }
274
- export var matchFacesBackendException = {"code": 0, "message": "Image is empty."}
275
- export var matchFacesException = {
276
- "code": 0,
277
- "message": "Image is empty.",
278
- "underlyingError": matchFacesBackendException,
279
- }
280
- export var matchFacesDetection = {
281
- "imageIndex": 0,
282
- "image": matchFacesImage,
283
- "faces": [
284
- matchFacesDetectionFace,
285
- matchFacesDetectionFace,
286
- matchFacesDetectionFace
287
- ],
288
- "error": matchFacesException,
289
- }
290
- export var comparedFace = {
291
- "imageIndex": 0,
292
- "image": matchFacesImage,
293
- "faceIndex": 1,
294
- "face": matchFacesDetectionFace,
295
- }
296
- export var comparedFacesPair = {
297
- "first": comparedFace,
298
- "second": comparedFace,
299
- "similarity": 0.5,
300
- "score": 1.5,
301
- "error": matchFacesException,
302
- }
303
- export var matchFacesResponse = {
304
- "results": [comparedFacesPair, comparedFacesPair, comparedFacesPair],
305
- "detections": [matchFacesDetection, matchFacesDetection, matchFacesDetection],
306
- "tag": "test",
307
- "error": matchFacesException,
308
- }
309
- export var comparedFacesSplit = {
310
- "matchedFaces": [comparedFacesPair, comparedFacesPair, comparedFacesPair],
311
- "unmatchedFaces": [comparedFacesPair, comparedFacesPair, comparedFacesPair],
312
- }
313
-
314
- export var editGroupPersonsRequest = {
315
- "personIdsToAdd": ["test1", "test2", "test3"],
316
- "personIdsToRemove": ["test4", "test5", "test6"],
317
- }
318
- export var imageUpload = {"imageData": img1}
319
- export var person = {
320
- "name": "test1",
321
- "updatedAt": "1969-07-20 20:18:04.000",
322
- "groups": ["test1", "test2", "test3"],
323
- "id": "test3",
324
- "metadata": customJson,
325
- "createdAt": "1969-07-20 20:18:05.000",
326
- }
327
- export var personGroup = {
328
- "name": "test1",
329
- "id": "test3",
330
- "metadata": customJson,
331
- "createdAt": "1969-07-20 20:18:04.000",
332
- }
333
- export var personImage = {
334
- "path": "test",
335
- "url": "test1",
336
- "contentType": "test2",
337
- "id": "test3",
338
- "metadata": customJson,
339
- "createdAt": "1969-07-20 20:18:04.000",
340
- }
341
- export var searchPersonDetection = {
342
- "landmarks": [point, point, point],
343
- "rect": rect,
344
- "crop": img1,
345
- "rotationAngle": 0.5,
346
- }
347
- export var searchPersonImage = {
348
- "similarity": 0.5,
349
- "distance": 1.5,
350
- "path": "test",
351
- "url": "test1",
352
- "contentType": "test2",
353
- "id": "test3",
354
- "metadata": customJson,
355
- "createdAt": "1969-07-20 20:18:04.000",
356
- }
357
- export var searchPerson = {
358
- "images": [searchPersonImage, searchPersonImage, searchPersonImage],
359
- "detection": searchPersonDetection,
360
- "name": "test1",
361
- "updatedAt": "1969-07-20 20:18:04.000",
362
- "groups": ["test1", "test2", "test3"],
363
- "id": "test3",
364
- "metadata": customJson,
365
- "createdAt": "1969-07-20 20:18:05.000",
366
- }
367
- export var searchPersonRequest = {
368
- "imageUpload": imageUpload,
369
- "groupIdsForSearch": ["test1", "test2", "test3"],
370
- "threshold": 0.5,
371
- "limit": 1,
372
- "tag": "test",
373
- "detectAll": true,
374
- "outputImageParams": outputImageParams,
375
- }