@regulaforensics/face-sdk 6.3.94-beta → 6.3.96-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 (135) hide show
  1. package/docs/.nojekyll +1 -0
  2. package/docs/assets/highlight.css +22 -0
  3. package/docs/assets/icons.js +18 -0
  4. package/docs/assets/icons.svg +1 -0
  5. package/docs/assets/main.js +60 -0
  6. package/docs/assets/navigation.js +1 -0
  7. package/docs/assets/search.js +1 -0
  8. package/docs/assets/style.css +1493 -0
  9. package/docs/classes/ComparedFace.html +10 -0
  10. package/docs/classes/ComparedFacesPair.html +14 -0
  11. package/docs/classes/ComparedFacesSplit.html +3 -0
  12. package/docs/classes/Customization.html +13 -0
  13. package/docs/classes/CustomizationColors.html +32 -0
  14. package/docs/classes/CustomizationFonts.html +16 -0
  15. package/docs/classes/CustomizationImages.html +19 -0
  16. package/docs/classes/DetectFaceResult.html +8 -0
  17. package/docs/classes/DetectFacesAttributeResult.html +5 -0
  18. package/docs/classes/DetectFacesBackendException.html +3 -0
  19. package/docs/classes/DetectFacesConfig.html +14 -0
  20. package/docs/classes/DetectFacesException.html +4 -0
  21. package/docs/classes/DetectFacesRequest.html +33 -0
  22. package/docs/classes/DetectFacesResponse.html +5 -0
  23. package/docs/classes/EditGroupPersonsRequest.html +2 -0
  24. package/docs/classes/FaceCaptureConfig.html +15 -0
  25. package/docs/classes/FaceCaptureException.html +3 -0
  26. package/docs/classes/FaceCaptureImage.html +5 -0
  27. package/docs/classes/FaceCaptureResponse.html +3 -0
  28. package/docs/classes/FaceSDK.html +20 -0
  29. package/docs/classes/FaceSDKVersion.html +7 -0
  30. package/docs/classes/Font.html +13 -0
  31. package/docs/classes/ImageQualityCharacteristic.html +5 -0
  32. package/docs/classes/ImageQualityGroup.html +27 -0
  33. package/docs/classes/ImageQualityRange.html +5 -0
  34. package/docs/classes/ImageQualityResult.html +6 -0
  35. package/docs/classes/ImageUpload.html +8 -0
  36. package/docs/classes/InitConfig.html +7 -0
  37. package/docs/classes/InitException.html +4 -0
  38. package/docs/classes/LicenseException.html +3 -0
  39. package/docs/classes/LivenessBackendException.html +3 -0
  40. package/docs/classes/LivenessConfig.html +41 -0
  41. package/docs/classes/LivenessException.html +4 -0
  42. package/docs/classes/LivenessNotification.html +3 -0
  43. package/docs/classes/LivenessResponse.html +11 -0
  44. package/docs/classes/MatchFacesBackendException.html +3 -0
  45. package/docs/classes/MatchFacesConfig.html +3 -0
  46. package/docs/classes/MatchFacesDetection.html +10 -0
  47. package/docs/classes/MatchFacesDetectionFace.html +18 -0
  48. package/docs/classes/MatchFacesException.html +4 -0
  49. package/docs/classes/MatchFacesImage.html +13 -0
  50. package/docs/classes/MatchFacesRequest.html +11 -0
  51. package/docs/classes/MatchFacesResponse.html +9 -0
  52. package/docs/classes/OutputImageCrop.html +16 -0
  53. package/docs/classes/OutputImageParams.html +12 -0
  54. package/docs/classes/PageableItemList.html +4 -0
  55. package/docs/classes/Person.html +14 -0
  56. package/docs/classes/PersonDatabase.html +23 -0
  57. package/docs/classes/PersonGroup.html +10 -0
  58. package/docs/classes/PersonImage.html +7 -0
  59. package/docs/classes/Point.html +4 -0
  60. package/docs/classes/Rect.html +5 -0
  61. package/docs/classes/SearchPerson.html +12 -0
  62. package/docs/classes/SearchPersonDetection.html +5 -0
  63. package/docs/classes/SearchPersonImage.html +15 -0
  64. package/docs/classes/SearchPersonRequest.html +15 -0
  65. package/docs/classes/Size.html +4 -0
  66. package/docs/enums/CameraPosition.html +6 -0
  67. package/docs/enums/DetectFacesAttribute.html +14 -0
  68. package/docs/enums/DetectFacesBackendErrorCode.html +7 -0
  69. package/docs/enums/DetectFacesErrorCode.html +11 -0
  70. package/docs/enums/DetectFacesScenario.html +9 -0
  71. package/docs/enums/FaceCaptureErrorCode.html +9 -0
  72. package/docs/enums/ImageQualityCharacteristicName.html +58 -0
  73. package/docs/enums/ImageQualityGroupName.html +10 -0
  74. package/docs/enums/ImageQualityResultStatus.html +4 -0
  75. package/docs/enums/ImageType.html +16 -0
  76. package/docs/enums/InitErrorCode.html +9 -0
  77. package/docs/enums/LicensingResultCode.html +13 -0
  78. package/docs/enums/LivenessBackendErrorCode.html +22 -0
  79. package/docs/enums/LivenessErrorCode.html +15 -0
  80. package/docs/enums/LivenessProcessStatus.html +17 -0
  81. package/docs/enums/LivenessSkipStep.html +3 -0
  82. package/docs/enums/LivenessStatus.html +6 -0
  83. package/docs/enums/LivenessType.html +3 -0
  84. package/docs/enums/MatchFacesErrorCode.html +10 -0
  85. package/docs/enums/OutputImageCropAspectRatio.html +7 -0
  86. package/docs/enums/ProcessingMode.html +3 -0
  87. package/docs/enums/RecordingProcess.html +4 -0
  88. package/docs/enums/ScreenOrientation.html +3 -0
  89. package/docs/index.html +85 -0
  90. package/docs/types/CameraSwitchCallback.html +1 -0
  91. package/docs/types/CustomButtonTappedCompletion.html +4 -0
  92. package/docs/types/LivenessNotificationCompletion.html +1 -0
  93. package/docs/types/VideoEncoderCompletion.html +1 -0
  94. package/examples/capacitor/package.json +1 -1
  95. package/examples/cordova/package.json +1 -1
  96. package/examples/ionic/package.json +1 -1
  97. package/examples/react-native/package.json +1 -1
  98. package/package.json +1 -1
  99. package/plugin.xml +1 -1
  100. package/www/types/customization/camera_position.d.ts +9 -0
  101. package/www/types/customization/customization.d.ts +19 -0
  102. package/www/types/customization/customization_colors.d.ts +6 -0
  103. package/www/types/customization/customization_fonts.d.ts +6 -0
  104. package/www/types/customization/customization_images.d.ts +6 -0
  105. package/www/types/customization/font.d.ts +17 -0
  106. package/www/types/detect_faces/detect_faces_config.d.ts +18 -0
  107. package/www/types/detect_faces/detect_faces_exception.d.ts +3 -0
  108. package/www/types/detect_faces/detect_faces_request.d.ts +53 -0
  109. package/www/types/face_capture/face_capture_config.d.ts +9 -0
  110. package/www/types/face_capture/face_capture_image.d.ts +24 -0
  111. package/www/types/image_params/output_image_crop.d.ts +24 -0
  112. package/www/types/image_params/output_image_params.d.ts +15 -0
  113. package/www/types/image_params/point.d.ts +3 -0
  114. package/www/types/image_quality/image_quality_characteristic.d.ts +3 -0
  115. package/www/types/image_quality/image_quality_characteristic_name.d.ts +3 -0
  116. package/www/types/image_quality/image_quality_group.d.ts +263 -0
  117. package/www/types/init/face_sdk_version.d.ts +9 -0
  118. package/www/types/init/init_config.d.ts +9 -0
  119. package/www/types/liveness/liveness_config.d.ts +66 -0
  120. package/www/types/liveness/liveness_notification.d.ts +3 -0
  121. package/www/types/liveness/liveness_response.d.ts +24 -0
  122. package/www/types/match_faces/compared_face.d.ts +18 -0
  123. package/www/types/match_faces/compared_faces_pair.d.ts +24 -0
  124. package/www/types/match_faces/match_faces_detection.d.ts +18 -0
  125. package/www/types/match_faces/match_faces_detection_face.d.ts +30 -0
  126. package/www/types/match_faces/match_faces_image.d.ts +18 -0
  127. package/www/types/match_faces/match_faces_request.d.ts +16 -0
  128. package/www/types/match_faces/match_faces_response.d.ts +15 -0
  129. package/www/types/person_database/image_upload.d.ts +14 -0
  130. package/www/types/person_database/person.d.ts +23 -0
  131. package/www/types/person_database/person_database.d.ts +3 -0
  132. package/www/types/person_database/person_group.d.ts +14 -0
  133. package/www/types/person_database/search_person.d.ts +16 -0
  134. package/www/types/person_database/search_person_image.d.ts +13 -0
  135. package/www/types/person_database/search_person_request.d.ts +24 -0
@@ -1,12 +1,42 @@
1
1
  import { Point } from '../image_params/point'
2
2
  import { Rect } from '../image_params/rect'
3
3
 
4
+ /**
5
+ * Represents face detection information as a part of {@link MatchFacesResponse}.
6
+ */
4
7
  export class MatchFacesDetectionFace {
8
+ /**
9
+ * The index of the face detection object in the array of detections.
10
+ */
5
11
  get faceIndex(): number
12
+
13
+ /**
14
+ * Main coordinates of the detected face (eyes, nose, lips, ears and etc.).
15
+ */
6
16
  get landmarks(): Array<Point>
17
+
18
+ /**
19
+ * Rectangular area of the detected face in the original image.
20
+ */
7
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
+ */
8
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
+ */
9
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
+ */
10
40
  get crop(): string | null
11
41
 
12
42
  private constructor()
@@ -1,9 +1,27 @@
1
1
  import { ImageType } from '../face_capture/face_capture_image'
2
2
 
3
+ /**
4
+ * This class represents the input image and its attributes for {@link MatchFacesRequest}.
5
+ */
3
6
  export class MatchFacesImage {
7
+ /**
8
+ * The underlying image.
9
+ */
4
10
  get image(): string
11
+
12
+ /**
13
+ * The image type.
14
+ * The imageType influences matching results, therefore this field is required.
15
+ */
5
16
  get imageType(): ImageType
17
+
18
+ /**
19
+ * Defines whether the comparison and detection should apply for all faces found on the image. Defaults to `false`.
20
+ * When set to `false`, only the most centered faces are compared and detected.
21
+ * Otherwise, all the faces are compared and detected.
22
+ */
6
23
  get detectAll(): boolean
24
+
7
25
  get identifier(): string
8
26
 
9
27
  constructor(
@@ -1,10 +1,26 @@
1
1
  import { MatchFacesImage } from './match_faces_image'
2
2
  import { OutputImageParams } from '../image_params/output_image_params'
3
3
 
4
+ /**
5
+ * Compares two or more images with faces on them to find out the similarity of pairs.
6
+ * The request is used as a parameter to {@link FaceSDK.matchFaces}.
7
+ */
4
8
  export class MatchFacesRequest {
9
+ /**
10
+ * Images with faces to match.
11
+ */
5
12
  get images(): Array<MatchFacesImage>
13
+
14
+ /**
15
+ * If set the uploaded image is processed according to the indicated settings.
16
+ */
6
17
  get outputImageParams(): OutputImageParams | null
18
+
19
+ /**
20
+ * Defines tag that can be used in match faces processing. Defaults to `null`.
21
+ */
7
22
  get tag(): string | null
23
+
8
24
  get metadata(): Record<string, any> | null
9
25
 
10
26
  constructor(
@@ -2,10 +2,25 @@ import { ComparedFacesPair } from './compared_faces_pair'
2
2
  import { MatchFacesDetection } from './match_faces_detection'
3
3
  import { MatchFacesException } from './match_faces_exception'
4
4
 
5
+ /**
6
+ * The response from the {@link MatchFacesRequest}.
7
+ */
5
8
  export class MatchFacesResponse {
9
+ /**
10
+ * Face comparison results with score and similarity values.
11
+ */
6
12
  get results(): Array<ComparedFacesPair>
13
+
14
+ /**
15
+ * Face detection results for each given image.
16
+ */
7
17
  get detections(): Array<MatchFacesDetection>
18
+
8
19
  get tag(): string | null
20
+
21
+ /**
22
+ * The error describes a failed match faces request and contains {@link MatchFacesErrorCode} codes.
23
+ */
9
24
  get error(): MatchFacesException | null
10
25
 
11
26
  private constructor()
@@ -1,5 +1,19 @@
1
+ /**
2
+ * An object that represents uploaded image with its settings.
3
+ */
1
4
  export class ImageUpload {
5
+ /**
6
+ * Creates an object of {@link ImageUpload} using an image.
7
+ *
8
+ * @param imageData - Image base64.
9
+ */
2
10
  static withImageData(imageData: string): ImageUpload
11
+
12
+ /**
13
+ * Creates an object of {@link ImageUpload} using an image url.
14
+ *
15
+ * @param imageUrl - Image url.
16
+ */
3
17
  static withImageUrl(imageUrl: string): ImageUpload
4
18
 
5
19
  private constructor()
@@ -1,9 +1,32 @@
1
+
2
+ /**
3
+ * A Person Database object that represents Person.
4
+ */
1
5
  export class Person {
6
+ /**
7
+ * Person name.
8
+ * Updatable field.
9
+ */
2
10
  name: string
11
+
12
+ /**
13
+ * Person update date.
14
+ */
3
15
  get updatedAt(): Date
16
+
17
+ /**
18
+ * Array if Group IDs Person belongs to.
19
+ */
4
20
  get groups(): string[]
21
+
5
22
  get id(): string
23
+
24
+ /**
25
+ * A free-form object containing Person extended attributes.
26
+ * Updatable field.
27
+ */
6
28
  metadata: any
29
+
7
30
  get createdAt(): Date
8
31
 
9
32
  private constructor()
@@ -7,6 +7,9 @@ import { EditGroupPersonsRequest } from './edit_group_persons_request'
7
7
  import { SearchPersonRequest } from './search_person_request'
8
8
  import { SearchPerson } from './search_person'
9
9
 
10
+ /**
11
+ * Represents Regula Database layer and is the entry point for Person Database operations.
12
+ */
10
13
  export class PersonDatabase {
11
14
  createPerson(
12
15
  name: string,
@@ -1,7 +1,21 @@
1
+ /**
2
+ * Person Database object that represents Group of {@link Person}.
3
+ */
1
4
  export class PersonGroup {
5
+ /**
6
+ * PersonGroup name.
7
+ * Updatable field.
8
+ */
2
9
  name: string
10
+
3
11
  get id(): string
12
+
13
+ /**
14
+ * A free-form object containing Group extended attributes.
15
+ * Updatable field.
16
+ */
4
17
  metadata: any
18
+
5
19
  get createdAt(): Date
6
20
 
7
21
  private constructor()
@@ -1,14 +1,30 @@
1
1
  import { SearchPersonImage } from './search_person_image'
2
2
  import { SearchPersonDetection } from './search_person_detection'
3
3
 
4
+ /**
5
+ * A Person Database object that represents th result of Person search.
6
+ */
4
7
  export class SearchPerson {
8
+ /**
9
+ * Array of images where the Person is found.
10
+ */
5
11
  get images(): SearchPersonImage[]
12
+
13
+ /**
14
+ * Detection data relative to the search input image.
15
+ */
6
16
  get detection(): SearchPersonDetection | null
17
+
7
18
  name: string
19
+
8
20
  get updatedAt(): Date
21
+
9
22
  get groups(): string[]
23
+
10
24
  get id(): string
25
+
11
26
  metadata: any
27
+
12
28
  get createdAt(): Date
13
29
 
14
30
  private constructor()
@@ -1,5 +1,18 @@
1
+ /**
2
+ * A Person Database object that represents Image result of Person Search.
3
+ */
1
4
  export class SearchPersonImage {
5
+ /**
6
+ * The similarity score.
7
+ * From 0.0 to 1.0.
8
+ */
2
9
  get similarity(): number
10
+
11
+ /**
12
+ * The similarity distance score.
13
+ * The lower the distance, the higher the face's similarity.
14
+ * From 0.0 to 2.0.
15
+ */
3
16
  get distance(): number
4
17
  get path(): string
5
18
  get url(): string
@@ -1,7 +1,31 @@
1
1
  import { ImageUpload } from './image_upload'
2
2
  import { OutputImageParams } from '../image_params/output_image_params'
3
3
 
4
+ /**
5
+ * Request object that configures Search settings.
6
+ */
4
7
  export class SearchPersonRequest {
8
+ /**
9
+ * Create {@link SearchPersonRequest} object.
10
+ *
11
+ * @param image - Image Upload object to apply search with.
12
+ *
13
+ * @param params.groupIdsForSearch - The Group IDs of the groups in which the search is performed.
14
+ *
15
+ * @param params.threshold - The similarity distance threshold, should be between 0.0 and 2.0,
16
+ * where 0.0 is for returning results for only the most similar persons and 2.0
17
+ * is for all the persons, even the dissimilar ones.
18
+ * Default: 1.
19
+ *
20
+ * @param params.limit - The number of returned Persons limit.
21
+ * Default: 100.
22
+ *
23
+ * @param params.detectAll - Whether to process only the one face on the image or all the faces.
24
+ * Default: `false`.
25
+ *
26
+ * @param params.outputImageParams - If set the uploaded image is processed according to the indicated settings.
27
+ */
28
+
5
29
  constructor(
6
30
  image: ImageUpload,
7
31
  params?: {