@regulaforensics/face-sdk 7.2.415-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 +621 -618
  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
@@ -25,13 +25,4 @@ export class MatchFacesResponse {
25
25
 
26
26
  return result
27
27
  }
28
-
29
- toJson() {
30
- return {
31
- "results": this.results?.map(e => e.toJson()),
32
- "detections": this.detections?.map(e => e.toJson()),
33
- "tag": this.tag,
34
- "error": this.error?.toJson(),
35
- }
36
- }
37
28
  }
@@ -6,19 +6,4 @@ export class EditGroupPersonsRequest {
6
6
  this.personIdsToAdd = params?.personIdsToAdd
7
7
  this.personIdsToRemove = params?.personIdsToRemove
8
8
  }
9
-
10
- static fromJson(jsonObject) {
11
- if (jsonObject == null) return null
12
- return new EditGroupPersonsRequest({
13
- personIdsToAdd: jsonObject["personIdsToAdd"],
14
- personIdsToRemove: jsonObject["personIdsToRemove"],
15
- })
16
- }
17
-
18
- toJson() {
19
- return {
20
- "personIdsToAdd": this.personIdsToAdd,
21
- "personIdsToRemove": this.personIdsToRemove,
22
- }
23
- }
24
9
  }
@@ -13,21 +13,4 @@ export class ImageUpload {
13
13
  result.imageUrl = imageUrl
14
14
  return result
15
15
  }
16
-
17
- static fromJson(jsonObject) {
18
- if (jsonObject == null) return null
19
- var result = new ImageUpload()
20
-
21
- result.imageData = jsonObject["imageData"]
22
- result.imageUrl = jsonObject["imageUrl"]
23
-
24
- return result
25
- }
26
-
27
- toJson() {
28
- return {
29
- "imageData": this.imageData,
30
- "imageUrl": this.imageUrl,
31
- }
32
- }
33
16
  }
@@ -19,12 +19,4 @@ export class PageableItemList {
19
19
 
20
20
  return result
21
21
  }
22
-
23
- toJson() {
24
- return {
25
- "items": this.items?.map(e => e.toJson()),
26
- "page": this.page,
27
- "totalPages": this.totalPages,
28
- }
29
- }
30
22
  }
@@ -1,5 +1,3 @@
1
- import { dateToString } from '../internal/bridge'
2
-
3
1
  export class Person {
4
2
  name
5
3
  updatedAt
@@ -21,15 +19,4 @@ export class Person {
21
19
 
22
20
  return result
23
21
  }
24
-
25
- toJson() {
26
- return {
27
- "name": this.name,
28
- "updatedAt": dateToString(this.updatedAt),
29
- "groups": this.groups,
30
- "id": this.id,
31
- "metadata": this.metadata,
32
- "createdAt": dateToString(this.createdAt),
33
- }
34
- }
35
22
  }
@@ -1,5 +1,3 @@
1
- import { dateToString } from '../internal/bridge'
2
-
3
1
  export class PersonGroup {
4
2
  name
5
3
  id
@@ -17,13 +15,4 @@ export class PersonGroup {
17
15
 
18
16
  return result
19
17
  }
20
-
21
- toJson() {
22
- return {
23
- "name": this.name,
24
- "id": this.id,
25
- "metadata": this.metadata,
26
- "createdAt": dateToString(this.createdAt),
27
- }
28
- }
29
18
  }
@@ -1,5 +1,3 @@
1
- import { dateToString } from '../internal/bridge'
2
-
3
1
  export class PersonImage {
4
2
  path
5
3
  url
@@ -21,15 +19,4 @@ export class PersonImage {
21
19
 
22
20
  return result
23
21
  }
24
-
25
- toJson() {
26
- return {
27
- "path": this.path,
28
- "url": this.url,
29
- "contentType": this.contentType,
30
- "id": this.id,
31
- "metadata": this.metadata,
32
- "createdAt": dateToString(this.createdAt),
33
- }
34
- }
35
22
  }
@@ -1,4 +1,3 @@
1
- import { dateToString } from '../internal/bridge'
2
1
  import { SearchPersonImage } from './search_person_image'
3
2
  import { SearchPersonDetection } from './search_person_detection'
4
3
 
@@ -29,17 +28,4 @@ export class SearchPerson {
29
28
 
30
29
  return result
31
30
  }
32
-
33
- toJson() {
34
- return {
35
- "images": this.images?.map(e => e.toJson()),
36
- "detection": this.detection?.toJson(),
37
- "name": this.name,
38
- "updatedAt": dateToString(this.updatedAt),
39
- "groups": this.groups,
40
- "id": this.id,
41
- "metadata": this.metadata,
42
- "createdAt": dateToString(this.createdAt),
43
- }
44
- }
45
31
  }
@@ -19,13 +19,4 @@ export class SearchPersonDetection {
19
19
 
20
20
  return result
21
21
  }
22
-
23
- toJson() {
24
- return {
25
- "landmarks": this.landmarks?.map(e => e.toJson()),
26
- "rect": this.rect?.toJson(),
27
- "crop": this.crop,
28
- "rotationAngle": this.rotationAngle,
29
- }
30
- }
31
22
  }
@@ -1,5 +1,3 @@
1
- import { dateToString } from '../internal/bridge'
2
-
3
1
  export class SearchPersonImage {
4
2
  similarity
5
3
  distance
@@ -25,17 +23,4 @@ export class SearchPersonImage {
25
23
 
26
24
  return result
27
25
  }
28
-
29
- toJson() {
30
- return {
31
- "similarity": this.similarity,
32
- "distance": this.distance,
33
- "path": this.path,
34
- "url": this.url,
35
- "contentType": this.contentType,
36
- "id": this.id,
37
- "metadata": this.metadata,
38
- "createdAt": dateToString(this.createdAt),
39
- }
40
- }
41
26
  }
@@ -1,12 +1,8 @@
1
- import { OutputImageParams } from '../image_params/output_image_params'
2
- import { ImageUpload } from './image_upload'
3
-
4
1
  export class SearchPersonRequest {
5
2
  imageUpload
6
3
  groupIdsForSearch
7
4
  threshold
8
5
  limit
9
- tag
10
6
  detectAll
11
7
  outputImageParams
12
8
 
@@ -15,32 +11,7 @@ export class SearchPersonRequest {
15
11
  this.groupIdsForSearch = params?.groupIdsForSearch
16
12
  this.threshold = params?.threshold
17
13
  this.limit = params?.limit
18
- this.tag = params?.tag
19
14
  this.detectAll = params?.detectAll ?? false
20
15
  this.outputImageParams = params?.outputImageParams
21
16
  }
22
-
23
- static fromJson(jsonObject) {
24
- if (jsonObject == null) return null
25
- return new SearchPersonRequest(ImageUpload.fromJson(jsonObject["imageUpload"]), {
26
- groupIdsForSearch: jsonObject["groupIdsForSearch"],
27
- threshold: jsonObject["threshold"],
28
- limit: jsonObject["limit"],
29
- tag: jsonObject["tag"],
30
- detectAll: jsonObject["detectAll"],
31
- outputImageParams: OutputImageParams.fromJson(jsonObject["outputImageParams"]),
32
- })
33
- }
34
-
35
- toJson() {
36
- return {
37
- "imageUpload": this.imageUpload?.toJson(),
38
- "groupIdsForSearch": this.groupIdsForSearch,
39
- "threshold": this.threshold,
40
- "limit": this.limit,
41
- "tag": this.tag,
42
- "detectAll": this.detectAll,
43
- "outputImageParams": this.outputImageParams?.toJson(),
44
- }
45
- }
46
17
  }