@regulaforensics/face-sdk 8.3.1174-rc → 8.3.1177-rc
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.
- package/RNFaceSDK.podspec +2 -2
- package/android/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +91 -0
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +106 -3
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +39 -1
- package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +0 -1
- package/examples/capacitor/README.md +1 -1
- package/examples/capacitor/package.json +2 -2
- package/examples/capacitor/scripts/android.sh +3 -1
- package/examples/capacitor/scripts/ios.sh +3 -1
- package/examples/capacitor/scripts/setup.sh +2 -0
- package/examples/ionic/README.md +1 -1
- package/examples/ionic/config.xml +0 -2
- package/examples/ionic/index.tsx +1 -1
- package/examples/ionic/package-lock.json +2360 -1733
- package/examples/ionic/package.json +21 -25
- package/examples/ionic/scripts/android.sh +4 -1
- package/examples/ionic/scripts/ios.sh +4 -1
- package/examples/ionic/scripts/setup.sh +2 -0
- package/examples/ionic/tsconfig.json +1 -1
- package/examples/react_native/README.md +1 -1
- package/examples/react_native/package.json +2 -2
- package/examples/react_native/scripts/android.sh +5 -5
- package/examples/react_native/scripts/ios.sh +5 -5
- package/examples/react_native/scripts/setup.sh +2 -0
- package/ios/Config.swift +107 -1
- package/ios/Decoder.swift +71 -3
- package/ios/Main.swift +24 -4
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +135 -57
- package/test/package-lock.json +1 -1
- package/test/test.tsx +183 -60
- package/www/capacitor/customization/customization_images.js +48 -0
- package/www/capacitor/customization/font.js +3 -3
- package/www/capacitor/detect_faces/detect_faces_config.js +5 -5
- package/www/capacitor/detect_faces/detect_faces_request.js +2 -2
- package/www/capacitor/face_capture/face_capture_config.js +14 -14
- package/www/capacitor/image_params/output_image_crop.js +4 -4
- package/www/capacitor/image_params/output_image_params.js +3 -3
- package/www/capacitor/image_quality/image_quality_characteristic.js +4 -4
- package/www/capacitor/image_quality/image_quality_group.js +2 -2
- package/www/capacitor/index.js +153 -32
- package/www/capacitor/init/init_config.js +2 -2
- package/www/capacitor/internal/bridge.js +2 -2
- package/www/capacitor/internal/cordova.js +2 -2
- package/www/capacitor/liveness/enrollment_config.js +102 -0
- package/www/capacitor/liveness/enrollment_request.js +39 -0
- package/www/capacitor/liveness/enrollment_response.js +26 -0
- package/www/capacitor/liveness/error_response.js +21 -0
- package/www/capacitor/liveness/liveness_config.js +18 -17
- package/www/capacitor/liveness/liveness_exception.js +7 -5
- package/www/capacitor/liveness/liveness_notification.js +2 -0
- package/www/capacitor/liveness/verification_config.js +98 -0
- package/www/capacitor/liveness/verification_response.js +27 -0
- package/www/capacitor/liveness/verify_match_response.js +21 -0
- package/www/capacitor/match_faces/match_faces_config.js +3 -3
- package/www/capacitor/match_faces/match_faces_image.js +2 -2
- package/www/capacitor/match_faces/match_faces_request.js +4 -4
- package/www/capacitor/person_database/edit_group_persons_request.js +3 -3
- package/www/capacitor/person_database/person_database.js +4 -4
- package/www/capacitor/person_database/search_person_request.js +7 -7
- package/www/cordova.js +703 -173
- package/www/react-native/customization/customization_images.js +48 -0
- package/www/react-native/customization/font.js +3 -3
- package/www/react-native/detect_faces/detect_faces_config.js +5 -5
- package/www/react-native/detect_faces/detect_faces_request.js +2 -2
- package/www/react-native/face_capture/face_capture_config.js +14 -14
- package/www/react-native/image_params/output_image_crop.js +4 -4
- package/www/react-native/image_params/output_image_params.js +3 -3
- package/www/react-native/image_quality/image_quality_characteristic.js +4 -4
- package/www/react-native/image_quality/image_quality_group.js +2 -2
- package/www/react-native/index.js +153 -32
- package/www/react-native/init/init_config.js +2 -2
- package/www/react-native/internal/bridge.js +2 -2
- package/www/react-native/liveness/enrollment_config.js +102 -0
- package/www/react-native/liveness/enrollment_request.js +39 -0
- package/www/react-native/liveness/enrollment_response.js +26 -0
- package/www/react-native/liveness/error_response.js +21 -0
- package/www/react-native/liveness/liveness_config.js +18 -17
- package/www/react-native/liveness/liveness_exception.js +7 -5
- package/www/react-native/liveness/liveness_notification.js +2 -0
- package/www/react-native/liveness/verification_config.js +98 -0
- package/www/react-native/liveness/verification_response.js +27 -0
- package/www/react-native/liveness/verify_match_response.js +21 -0
- package/www/react-native/match_faces/match_faces_config.js +3 -3
- package/www/react-native/match_faces/match_faces_image.js +2 -2
- package/www/react-native/match_faces/match_faces_request.js +4 -4
- package/www/react-native/person_database/edit_group_persons_request.js +3 -3
- package/www/react-native/person_database/person_database.js +4 -4
- package/www/react-native/person_database/search_person_request.js +7 -7
- package/www/types/customization/customization_images.d.ts +6 -0
- package/www/types/customization/font.d.ts +1 -1
- package/www/types/detect_faces/detect_faces_config.d.ts +1 -1
- package/www/types/detect_faces/detect_faces_request.d.ts +1 -1
- package/www/types/face_capture/face_capture_config.d.ts +1 -1
- package/www/types/image_params/output_image_crop.d.ts +1 -1
- package/www/types/image_params/output_image_params.d.ts +1 -1
- package/www/types/image_quality/image_quality_group.d.ts +1 -1
- package/www/types/index.d.ts +137 -15
- package/www/types/init/init_config.d.ts +1 -1
- package/www/types/liveness/enrollment_config.d.ts +97 -0
- package/www/types/liveness/enrollment_request.d.ts +24 -0
- package/www/types/liveness/enrollment_response.d.ts +9 -0
- package/www/types/liveness/error_response.d.ts +6 -0
- package/www/types/liveness/liveness_config.d.ts +2 -1
- package/www/types/liveness/liveness_exception.d.ts +32 -2
- package/www/types/liveness/liveness_notification.d.ts +2 -0
- package/www/types/liveness/verification_config.d.ts +95 -0
- package/www/types/liveness/verification_response.d.ts +10 -0
- package/www/types/liveness/verify_match_response.d.ts +6 -0
- package/www/types/match_faces/match_faces_config.d.ts +1 -1
- package/www/types/match_faces/match_faces_image.d.ts +1 -1
- package/www/types/match_faces/match_faces_request.d.ts +1 -1
- package/www/types/person_database/edit_group_persons_request.d.ts +1 -1
- package/www/types/person_database/person_database.d.ts +2 -2
- package/www/types/person_database/search_person_request.d.ts +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ErrorResponse } from './error_response'
|
|
2
|
+
|
|
3
|
+
export class EnrollmentResponse {
|
|
4
|
+
personId
|
|
5
|
+
externalId
|
|
6
|
+
error
|
|
7
|
+
|
|
8
|
+
static fromJson(jsonObject) {
|
|
9
|
+
if (jsonObject == null) return null
|
|
10
|
+
const result = new EnrollmentResponse()
|
|
11
|
+
|
|
12
|
+
result.personId = jsonObject["personId"]
|
|
13
|
+
result.externalId = jsonObject["externalId"]
|
|
14
|
+
result.error = ErrorResponse.fromJson(jsonObject["error"])
|
|
15
|
+
|
|
16
|
+
return result
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
toJson() {
|
|
20
|
+
return {
|
|
21
|
+
"personId": this.personId,
|
|
22
|
+
"externalId": this.externalId,
|
|
23
|
+
"error": this.error?.toJson(),
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class ErrorResponse {
|
|
2
|
+
code
|
|
3
|
+
message
|
|
4
|
+
|
|
5
|
+
static fromJson(jsonObject) {
|
|
6
|
+
if (jsonObject == null) return null
|
|
7
|
+
const result = new ErrorResponse()
|
|
8
|
+
|
|
9
|
+
result.code = jsonObject["code"]
|
|
10
|
+
result.message = jsonObject["message"]
|
|
11
|
+
|
|
12
|
+
return result
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
toJson() {
|
|
16
|
+
return {
|
|
17
|
+
"code": this.code,
|
|
18
|
+
"message": this.message,
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -19,23 +19,23 @@ export class LivenessConfig {
|
|
|
19
19
|
skipStep
|
|
20
20
|
metadata
|
|
21
21
|
|
|
22
|
-
constructor(
|
|
23
|
-
this.copyright =
|
|
24
|
-
this.cameraSwitchEnabled =
|
|
25
|
-
this.closeButtonEnabled =
|
|
26
|
-
this.torchButtonEnabled =
|
|
27
|
-
this.vibrateOnSteps =
|
|
28
|
-
this.cameraPositionIOS =
|
|
29
|
-
this.cameraPositionAndroid =
|
|
30
|
-
this.screenOrientation =
|
|
31
|
-
this.locationTrackingEnabled =
|
|
32
|
-
this.preventScreenRecording =
|
|
33
|
-
this.attemptsCount =
|
|
34
|
-
this.recordingProcess =
|
|
35
|
-
this.livenessType =
|
|
36
|
-
this.tag =
|
|
37
|
-
this.skipStep =
|
|
38
|
-
this.metadata =
|
|
22
|
+
constructor(options) {
|
|
23
|
+
this.copyright = options?.copyright ?? true
|
|
24
|
+
this.cameraSwitchEnabled = options?.cameraSwitchEnabled ?? false
|
|
25
|
+
this.closeButtonEnabled = options?.closeButtonEnabled ?? true
|
|
26
|
+
this.torchButtonEnabled = options?.torchButtonEnabled ?? true
|
|
27
|
+
this.vibrateOnSteps = options?.vibrateOnSteps ?? true
|
|
28
|
+
this.cameraPositionIOS = options?.cameraPositionIOS ?? CameraPosition.FRONT
|
|
29
|
+
this.cameraPositionAndroid = options?.cameraPositionAndroid
|
|
30
|
+
this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
31
|
+
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
32
|
+
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
33
|
+
this.attemptsCount = options?.attemptsCount ?? 0
|
|
34
|
+
this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
35
|
+
this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
|
|
36
|
+
this.tag = options?.tag
|
|
37
|
+
this.skipStep = options?.skipStep ?? []
|
|
38
|
+
this.metadata = options?.metadata
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
static fromJson(jsonObject) {
|
|
@@ -93,6 +93,7 @@ export const RecordingProcess = {
|
|
|
93
93
|
export const LivenessType = {
|
|
94
94
|
ACTIVE: 0,
|
|
95
95
|
PASSIVE: 1,
|
|
96
|
+
PASSIVE_WITH_BLINK: 2,
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
export const LivenessSkipStep = {
|
|
@@ -35,9 +35,11 @@ export const LivenessErrorCode = {
|
|
|
35
35
|
PROCESSING_FAILED: 6,
|
|
36
36
|
PROCESSING_FRAME_FAILED: 7,
|
|
37
37
|
APPLICATION_INACTIVE: 8,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
BAD_FACE_QUALITY: 9,
|
|
39
|
+
BAD_FRAME_SIZE: 10,
|
|
40
|
+
CAMERA_NOT_AVAILABLE: 11,
|
|
41
41
|
CAMERA_NO_PERMISSION: 12,
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
CONTEXT_IS_NULL: 13,
|
|
43
|
+
IN_PROGRESS_ALREADY: 14,
|
|
44
|
+
ZOOM_NOT_SUPPORTED: 15,
|
|
45
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { CameraPosition } from '../customization/camera_position'
|
|
2
|
+
import { ScreenOrientation } from '../customization/screen_orientation'
|
|
3
|
+
import { RecordingProcess, LivenessType, LivenessSkipStep } from './liveness_config'
|
|
4
|
+
|
|
5
|
+
export class VerificationConfig {
|
|
6
|
+
copyright
|
|
7
|
+
cameraSwitchEnabled
|
|
8
|
+
closeButtonEnabled
|
|
9
|
+
torchButtonEnabled
|
|
10
|
+
vibrateOnSteps
|
|
11
|
+
cameraPositionIOS
|
|
12
|
+
cameraPositionAndroid
|
|
13
|
+
screenOrientation
|
|
14
|
+
locationTrackingEnabled
|
|
15
|
+
preventScreenRecording
|
|
16
|
+
attemptsCount
|
|
17
|
+
recordingProcess
|
|
18
|
+
livenessType
|
|
19
|
+
tag
|
|
20
|
+
skipStep
|
|
21
|
+
metadata
|
|
22
|
+
personId
|
|
23
|
+
groupId
|
|
24
|
+
threshold
|
|
25
|
+
|
|
26
|
+
constructor(options) {
|
|
27
|
+
this.copyright = options?.copyright ?? true
|
|
28
|
+
this.cameraSwitchEnabled = options?.cameraSwitchEnabled ?? false
|
|
29
|
+
this.closeButtonEnabled = options?.closeButtonEnabled ?? true
|
|
30
|
+
this.torchButtonEnabled = options?.torchButtonEnabled ?? true
|
|
31
|
+
this.vibrateOnSteps = options?.vibrateOnSteps ?? true
|
|
32
|
+
this.cameraPositionIOS = options?.cameraPositionIOS ?? CameraPosition.FRONT
|
|
33
|
+
this.cameraPositionAndroid = options?.cameraPositionAndroid
|
|
34
|
+
this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
35
|
+
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
36
|
+
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
37
|
+
this.attemptsCount = options?.attemptsCount ?? 0
|
|
38
|
+
this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
39
|
+
this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
|
|
40
|
+
this.tag = options?.tag
|
|
41
|
+
this.skipStep = options?.skipStep ?? []
|
|
42
|
+
this.metadata = options?.metadata
|
|
43
|
+
this.personId = options?.personId
|
|
44
|
+
this.groupId = options?.groupId
|
|
45
|
+
this.threshold = options?.threshold
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
static fromJson(jsonObject) {
|
|
49
|
+
if (jsonObject == null) return null
|
|
50
|
+
const result = new VerificationConfig()
|
|
51
|
+
|
|
52
|
+
result.copyright = jsonObject["copyright"]
|
|
53
|
+
result.cameraSwitchEnabled = jsonObject["cameraSwitchEnabled"]
|
|
54
|
+
result.closeButtonEnabled = jsonObject["closeButtonEnabled"]
|
|
55
|
+
result.torchButtonEnabled = jsonObject["torchButtonEnabled"]
|
|
56
|
+
result.vibrateOnSteps = jsonObject["vibrateOnSteps"]
|
|
57
|
+
result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
|
|
58
|
+
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
59
|
+
result.screenOrientation = jsonObject["screenOrientation"]
|
|
60
|
+
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
61
|
+
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
62
|
+
result.attemptsCount = jsonObject["attemptsCount"]
|
|
63
|
+
result.recordingProcess = jsonObject["recordingProcess"]
|
|
64
|
+
result.livenessType = jsonObject["livenessType"]
|
|
65
|
+
result.tag = jsonObject["tag"]
|
|
66
|
+
result.skipStep = jsonObject["skipStep"]
|
|
67
|
+
result.metadata = jsonObject["metadata"]
|
|
68
|
+
result.personId = jsonObject["personId"]
|
|
69
|
+
result.groupId = jsonObject["groupId"]
|
|
70
|
+
result.threshold = jsonObject["threshold"]
|
|
71
|
+
|
|
72
|
+
return result
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
toJson() {
|
|
76
|
+
return {
|
|
77
|
+
"copyright": this.copyright,
|
|
78
|
+
"cameraSwitchEnabled": this.cameraSwitchEnabled,
|
|
79
|
+
"closeButtonEnabled": this.closeButtonEnabled,
|
|
80
|
+
"torchButtonEnabled": this.torchButtonEnabled,
|
|
81
|
+
"vibrateOnSteps": this.vibrateOnSteps,
|
|
82
|
+
"cameraPositionAndroid": this.cameraPositionAndroid,
|
|
83
|
+
"cameraPositionIOS": this.cameraPositionIOS,
|
|
84
|
+
"screenOrientation": this.screenOrientation,
|
|
85
|
+
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
86
|
+
"preventScreenRecording": this.preventScreenRecording,
|
|
87
|
+
"attemptsCount": this.attemptsCount,
|
|
88
|
+
"recordingProcess": this.recordingProcess,
|
|
89
|
+
"livenessType": this.livenessType,
|
|
90
|
+
"tag": this.tag,
|
|
91
|
+
"skipStep": this.skipStep,
|
|
92
|
+
"metadata": this.metadata,
|
|
93
|
+
"personId": this.personId,
|
|
94
|
+
"groupId": this.groupId,
|
|
95
|
+
"threshold": this.threshold,
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { VerifyMatchResponse } from './verify_match_response'
|
|
2
|
+
import { ErrorResponse } from './error_response'
|
|
3
|
+
|
|
4
|
+
export class VerificationResponse {
|
|
5
|
+
passed
|
|
6
|
+
match
|
|
7
|
+
error
|
|
8
|
+
|
|
9
|
+
static fromJson(jsonObject) {
|
|
10
|
+
if (jsonObject == null) return null
|
|
11
|
+
const result = new VerificationResponse()
|
|
12
|
+
|
|
13
|
+
result.passed = jsonObject["passed"]
|
|
14
|
+
result.match = VerifyMatchResponse.fromJson(jsonObject["match"])
|
|
15
|
+
result.error = ErrorResponse.fromJson(jsonObject["error"])
|
|
16
|
+
|
|
17
|
+
return result
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
toJson() {
|
|
21
|
+
return {
|
|
22
|
+
"passed": this.passed,
|
|
23
|
+
"match": this.match?.toJson(),
|
|
24
|
+
"error": this.error?.toJson(),
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class VerifyMatchResponse {
|
|
2
|
+
passed
|
|
3
|
+
similarity
|
|
4
|
+
|
|
5
|
+
static fromJson(jsonObject) {
|
|
6
|
+
if (jsonObject == null) return null
|
|
7
|
+
const result = new VerifyMatchResponse()
|
|
8
|
+
|
|
9
|
+
result.passed = jsonObject["passed"]
|
|
10
|
+
result.similarity = jsonObject["similarity"]
|
|
11
|
+
|
|
12
|
+
return result
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
toJson() {
|
|
16
|
+
return {
|
|
17
|
+
"passed": this.passed,
|
|
18
|
+
"similarity": this.similarity,
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -2,9 +2,9 @@ export class MatchFacesConfig {
|
|
|
2
2
|
processingMode
|
|
3
3
|
locationTrackingEnabled
|
|
4
4
|
|
|
5
|
-
constructor(
|
|
6
|
-
this.processingMode =
|
|
7
|
-
this.locationTrackingEnabled =
|
|
5
|
+
constructor(options) {
|
|
6
|
+
this.processingMode = options?.processingMode ?? ProcessingMode.ONLINE
|
|
7
|
+
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
static fromJson(jsonObject) {
|
|
@@ -4,10 +4,10 @@ export class MatchFacesImage {
|
|
|
4
4
|
detectAll
|
|
5
5
|
identifier
|
|
6
6
|
|
|
7
|
-
constructor(image, imageType,
|
|
7
|
+
constructor(image, imageType, options) {
|
|
8
8
|
this.image = image
|
|
9
9
|
this.imageType = imageType
|
|
10
|
-
this.detectAll =
|
|
10
|
+
this.detectAll = options?.detectAll ?? false
|
|
11
11
|
this.identifier = ""
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -7,11 +7,11 @@ export class MatchFacesRequest {
|
|
|
7
7
|
tag
|
|
8
8
|
metadata
|
|
9
9
|
|
|
10
|
-
constructor(images,
|
|
10
|
+
constructor(images, options) {
|
|
11
11
|
this.images = images
|
|
12
|
-
this.outputImageParams =
|
|
13
|
-
this.tag =
|
|
14
|
-
this.metadata =
|
|
12
|
+
this.outputImageParams = options?.outputImageParams
|
|
13
|
+
this.tag = options?.tag
|
|
14
|
+
this.metadata = options?.metadata
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
static fromJson(jsonObject) {
|
|
@@ -2,9 +2,9 @@ export class EditGroupPersonsRequest {
|
|
|
2
2
|
personIdsToAdd
|
|
3
3
|
personIdsToRemove
|
|
4
4
|
|
|
5
|
-
constructor(
|
|
6
|
-
this.personIdsToAdd =
|
|
7
|
-
this.personIdsToRemove =
|
|
5
|
+
constructor(options) {
|
|
6
|
+
this.personIdsToAdd = options?.personIdsToAdd
|
|
7
|
+
this.personIdsToRemove = options?.personIdsToRemove
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
static fromJson(jsonObject) {
|
|
@@ -6,8 +6,8 @@ import { PersonGroup } from './person_group'
|
|
|
6
6
|
import { SearchPerson } from './search_person'
|
|
7
7
|
|
|
8
8
|
export class PersonDatabase {
|
|
9
|
-
async createPerson(name,
|
|
10
|
-
var response = await exec("createPerson", [name,
|
|
9
|
+
async createPerson(name, options) {
|
|
10
|
+
var response = await exec("createPerson", [name, options?.groupIds, options?.metadata])
|
|
11
11
|
return this._itemResponseFromJson(response, Person.fromJson)
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -51,8 +51,8 @@ export class PersonDatabase {
|
|
|
51
51
|
return this._listResponseFromJson(response, PersonImage.fromJson)
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
async createGroup(name,
|
|
55
|
-
var response = await exec("createGroup", [name,
|
|
54
|
+
async createGroup(name, options) {
|
|
55
|
+
var response = await exec("createGroup", [name, options?.metadata])
|
|
56
56
|
return this._itemResponseFromJson(response, PersonGroup.fromJson)
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -10,14 +10,14 @@ export class SearchPersonRequest {
|
|
|
10
10
|
detectAll
|
|
11
11
|
outputImageParams
|
|
12
12
|
|
|
13
|
-
constructor(image,
|
|
13
|
+
constructor(image, options) {
|
|
14
14
|
this.imageUpload = image
|
|
15
|
-
this.groupIdsForSearch =
|
|
16
|
-
this.threshold =
|
|
17
|
-
this.limit =
|
|
18
|
-
this.tag =
|
|
19
|
-
this.detectAll =
|
|
20
|
-
this.outputImageParams =
|
|
15
|
+
this.groupIdsForSearch = options?.groupIdsForSearch
|
|
16
|
+
this.threshold = options?.threshold
|
|
17
|
+
this.limit = options?.limit
|
|
18
|
+
this.tag = options?.tag
|
|
19
|
+
this.detectAll = options?.detectAll ?? false
|
|
20
|
+
this.outputImageParams = options?.outputImageParams
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
static fromJson(jsonObject) {
|
|
@@ -11,6 +11,12 @@ export class CustomizationImages {
|
|
|
11
11
|
set retryScreenHintEnvironment(val: string)
|
|
12
12
|
set retryScreenHintSubject(val: string)
|
|
13
13
|
set retryScreenHintGeo(val: string)
|
|
14
|
+
set retryScreenHintBadSelfieQuality(val: string)
|
|
15
|
+
set retryScreenHintCleanLens(val: string)
|
|
16
|
+
set retryScreenHintAddIllumination(val: string)
|
|
17
|
+
set retryScreenHintChangeBackground(val: string)
|
|
18
|
+
set retryScreenHintFaceOcclusions(val: string)
|
|
19
|
+
set retryScreenHintCovering(val: string)
|
|
14
20
|
set processingScreenCloseButton(val: string)
|
|
15
21
|
set successScreenImage(val: string)
|
|
16
22
|
|
|
@@ -406,7 +406,7 @@ export class _Background {
|
|
|
406
406
|
* Default color is white (RGB(255,255,255) or hex #FFFFFF)
|
|
407
407
|
* The range is from 0 to 1 where 1 is full background color match.
|
|
408
408
|
*/
|
|
409
|
-
backgroundColorMatch(
|
|
409
|
+
backgroundColorMatch(options?: { color?: number }): ImageQualityCharacteristic
|
|
410
410
|
|
|
411
411
|
/**
|
|
412
412
|
* Whether the background color matches the required color.
|