@regulaforensics/face-sdk 8.3.1171-rc → 8.3.1176-nightly
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 +2 -2
- package/android/cordova.gradle +2 -2
- 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 +2 -5
- 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
package/test/test.tsx
CHANGED
|
@@ -1,61 +1,184 @@
|
|
|
1
1
|
import { compare } from './utils'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
2
|
+
import {
|
|
3
|
+
ComparedFace,
|
|
4
|
+
ComparedFacesPair,
|
|
5
|
+
ComparedFacesSplit,
|
|
6
|
+
Customization,
|
|
7
|
+
DetectFaceResult,
|
|
8
|
+
DetectFacesAttributeResult,
|
|
9
|
+
DetectFacesBackendException,
|
|
10
|
+
DetectFacesConfig,
|
|
11
|
+
DetectFacesException,
|
|
12
|
+
DetectFacesRequest,
|
|
13
|
+
DetectFacesResponse,
|
|
14
|
+
EditGroupPersonsRequest,
|
|
15
|
+
FaceCaptureConfig,
|
|
16
|
+
FaceCaptureException,
|
|
17
|
+
FaceCaptureImage,
|
|
18
|
+
FaceCaptureResponse,
|
|
19
|
+
FaceSDKVersion,
|
|
20
|
+
ImageQualityCharacteristic,
|
|
21
|
+
ImageQualityRange,
|
|
22
|
+
ImageQualityResult,
|
|
23
|
+
ImageUpload,
|
|
24
|
+
InitConfig,
|
|
25
|
+
InitException,
|
|
26
|
+
LicenseException,
|
|
27
|
+
LivenessBackendException,
|
|
28
|
+
LivenessConfig,
|
|
29
|
+
LivenessException,
|
|
30
|
+
LivenessNotification,
|
|
31
|
+
LivenessResponse,
|
|
32
|
+
MatchFacesBackendException,
|
|
33
|
+
MatchFacesConfig,
|
|
34
|
+
MatchFacesDetection,
|
|
35
|
+
MatchFacesDetectionFace,
|
|
36
|
+
MatchFacesException,
|
|
37
|
+
MatchFacesImage,
|
|
38
|
+
MatchFacesRequest,
|
|
39
|
+
MatchFacesResponse,
|
|
40
|
+
OutputImageCrop,
|
|
41
|
+
OutputImageParams,
|
|
42
|
+
Person,
|
|
43
|
+
PersonGroup,
|
|
44
|
+
PersonImage,
|
|
45
|
+
Point,
|
|
46
|
+
Rect,
|
|
47
|
+
SearchPerson,
|
|
48
|
+
SearchPersonDetection,
|
|
49
|
+
SearchPersonImage,
|
|
50
|
+
SearchPersonRequest,
|
|
51
|
+
Size,
|
|
52
|
+
// EnrollmentConfig,
|
|
53
|
+
// VerificationConfig,
|
|
54
|
+
// EnrollmentRequest,
|
|
55
|
+
// ErrorResponse,
|
|
56
|
+
// EnrollmentResponse,
|
|
57
|
+
// VerifyMatchResponse,
|
|
58
|
+
// VerificationResponse,
|
|
59
|
+
} from '@regulaforensics/face-sdk/www/capacitor'
|
|
60
|
+
import {
|
|
61
|
+
comparedFace,
|
|
62
|
+
comparedFacesPair,
|
|
63
|
+
comparedFacesSplit,
|
|
64
|
+
customization,
|
|
65
|
+
detectFaceResult,
|
|
66
|
+
detectFacesAttributeResult,
|
|
67
|
+
detectFacesBackendException,
|
|
68
|
+
detectFacesConfig,
|
|
69
|
+
detectFacesException,
|
|
70
|
+
detectFacesRequest,
|
|
71
|
+
detectFacesResponse,
|
|
72
|
+
editGroupPersonsRequest,
|
|
73
|
+
faceCaptureConfig,
|
|
74
|
+
faceCaptureException,
|
|
75
|
+
faceCaptureImage,
|
|
76
|
+
faceCaptureResponse,
|
|
77
|
+
faceSDKVersion,
|
|
78
|
+
imageQualityCharacteristic,
|
|
79
|
+
imageQualityRange,
|
|
80
|
+
imageQualityResult,
|
|
81
|
+
imageUpload,
|
|
82
|
+
initConfig,
|
|
83
|
+
initException,
|
|
84
|
+
licenseException,
|
|
85
|
+
livenessBackendException,
|
|
86
|
+
livenessConfig,
|
|
87
|
+
livenessException,
|
|
88
|
+
livenessNotification,
|
|
89
|
+
livenessResponse,
|
|
90
|
+
matchFacesBackendException,
|
|
91
|
+
matchFacesConfig,
|
|
92
|
+
matchFacesDetection,
|
|
93
|
+
matchFacesDetectionFace,
|
|
94
|
+
matchFacesException,
|
|
95
|
+
matchFacesImage,
|
|
96
|
+
matchFacesRequest,
|
|
97
|
+
matchFacesResponse,
|
|
98
|
+
outputImageCrop,
|
|
99
|
+
outputImageParams,
|
|
100
|
+
person,
|
|
101
|
+
personGroup,
|
|
102
|
+
personImage,
|
|
103
|
+
point,
|
|
104
|
+
rect,
|
|
105
|
+
searchPerson,
|
|
106
|
+
searchPersonDetection,
|
|
107
|
+
searchPersonImage,
|
|
108
|
+
searchPersonRequest,
|
|
109
|
+
size,
|
|
110
|
+
enrollmentConfig,
|
|
111
|
+
verificationConfig,
|
|
112
|
+
enrollmentRequest,
|
|
113
|
+
enrollmentRequest2,
|
|
114
|
+
errorResponse,
|
|
115
|
+
enrollmentResponse,
|
|
116
|
+
verifyMatchResponse,
|
|
117
|
+
verificationResponse,
|
|
118
|
+
} from './json'
|
|
119
|
+
|
|
120
|
+
compare('customization', customization, Customization.fromJson);
|
|
121
|
+
|
|
122
|
+
compare('point', point, Point.fromJson);
|
|
123
|
+
compare('rect', rect, Rect.fromJson);
|
|
124
|
+
compare('size', size, Size.fromJson);
|
|
125
|
+
compare('outputImageCrop', outputImageCrop, OutputImageCrop.fromJson);
|
|
126
|
+
compare('outputImageParams', outputImageParams, OutputImageParams.fromJson);
|
|
127
|
+
|
|
128
|
+
compare('imageQualityRange', imageQualityRange, ImageQualityRange.fromJson);
|
|
129
|
+
compare('imageQualityResult', imageQualityResult, ImageQualityResult.fromJson);
|
|
130
|
+
compare('imageQualityCharacteristic', imageQualityCharacteristic, ImageQualityCharacteristic.fromJson);
|
|
131
|
+
|
|
132
|
+
compare('faceSDKVersion', faceSDKVersion, FaceSDKVersion.fromJson);
|
|
133
|
+
compare('initConfig', initConfig, InitConfig.fromJson);
|
|
134
|
+
compare('licenseException', licenseException, LicenseException.fromJson);
|
|
135
|
+
compare('initException', initException, InitException.fromJson);
|
|
136
|
+
|
|
137
|
+
compare('detectFacesAttributeResult', detectFacesAttributeResult, DetectFacesAttributeResult.fromJson);
|
|
138
|
+
compare('detectFaceResult', detectFaceResult, DetectFaceResult.fromJson);
|
|
139
|
+
compare('detectFacesConfig', detectFacesConfig, DetectFacesConfig.fromJson);
|
|
140
|
+
compare('detectFacesRequest', detectFacesRequest, DetectFacesRequest.fromJson);
|
|
141
|
+
compare('detectFacesBackendException', detectFacesBackendException, DetectFacesBackendException.fromJson);
|
|
142
|
+
compare('detectFacesException', detectFacesException, DetectFacesException.fromJson);
|
|
143
|
+
compare('detectFacesResponse', detectFacesResponse, DetectFacesResponse.fromJson);
|
|
144
|
+
|
|
145
|
+
compare('faceCaptureConfig', faceCaptureConfig, FaceCaptureConfig.fromJson);
|
|
146
|
+
compare('faceCaptureImage', faceCaptureImage, FaceCaptureImage.fromJson);
|
|
147
|
+
compare('faceCaptureException', faceCaptureException, FaceCaptureException.fromJson);
|
|
148
|
+
compare('faceCaptureResponse', faceCaptureResponse, FaceCaptureResponse.fromJson);
|
|
149
|
+
|
|
150
|
+
compare('livenessConfig', livenessConfig, LivenessConfig.fromJson);
|
|
151
|
+
// compare('enrollmentConfig', enrollmentConfig, EnrollmentConfig.fromJson);
|
|
152
|
+
// compare('verificationConfig', verificationConfig, VerificationConfig.fromJson);
|
|
153
|
+
// compare('enrollmentRequest', enrollmentRequest, EnrollmentRequest.fromJson);
|
|
154
|
+
// compare('enrollmentRequest2', enrollmentRequest2, EnrollmentRequest.fromJson);
|
|
155
|
+
compare('livenessBackendException', livenessBackendException, LivenessBackendException.fromJson);
|
|
156
|
+
compare('livenessException', livenessException, LivenessException.fromJson);
|
|
157
|
+
compare('livenessResponse', livenessResponse, LivenessResponse.fromJson);
|
|
158
|
+
compare('livenessNotification', livenessNotification, LivenessNotification.fromJson);
|
|
159
|
+
// compare('errorResponse', errorResponse, ErrorResponse.fromJson);
|
|
160
|
+
// compare('enrollmentResponse', enrollmentResponse, EnrollmentResponse.fromJson);
|
|
161
|
+
// compare('verifyMatchResponse', verifyMatchResponse, VerifyMatchResponse.fromJson);
|
|
162
|
+
// compare('verificationResponse', verificationResponse, VerificationResponse.fromJson);
|
|
163
|
+
|
|
164
|
+
compare('matchFacesConfig', matchFacesConfig, MatchFacesConfig.fromJson);
|
|
165
|
+
compare('matchFacesImage', matchFacesImage, MatchFacesImage.fromJson);
|
|
166
|
+
compare('matchFacesRequest', matchFacesRequest, MatchFacesRequest.fromJson);
|
|
167
|
+
compare('matchFacesDetectionFace', matchFacesDetectionFace, MatchFacesDetectionFace.fromJson);
|
|
168
|
+
compare('matchFacesBackendException', matchFacesBackendException, MatchFacesBackendException.fromJson);
|
|
169
|
+
compare('matchFacesException', matchFacesException, MatchFacesException.fromJson);
|
|
170
|
+
compare('matchFacesDetection', matchFacesDetection, MatchFacesDetection.fromJson);
|
|
171
|
+
compare('comparedFace', comparedFace, ComparedFace.fromJson);
|
|
172
|
+
compare('comparedFacesPair', comparedFacesPair, ComparedFacesPair.fromJson);
|
|
173
|
+
compare('matchFacesResponse', matchFacesResponse, MatchFacesResponse.fromJson);
|
|
174
|
+
compare('comparedFacesSplit', comparedFacesSplit, ComparedFacesSplit.fromJson);
|
|
175
|
+
|
|
176
|
+
compare('editGroupPersonsRequest', editGroupPersonsRequest, EditGroupPersonsRequest.fromJson);
|
|
177
|
+
compare('imageUpload', imageUpload, ImageUpload.fromJson);
|
|
178
|
+
compare('person', person, Person.fromJson);
|
|
179
|
+
compare('personGroup', personGroup, PersonGroup.fromJson);
|
|
180
|
+
compare('personImage', personImage, PersonImage.fromJson);
|
|
181
|
+
compare('searchPersonDetection', searchPersonDetection, SearchPersonDetection.fromJson);
|
|
182
|
+
compare('searchPersonImage', searchPersonImage, SearchPersonImage.fromJson);
|
|
183
|
+
compare('searchPerson', searchPerson, SearchPerson.fromJson);
|
|
184
|
+
compare('searchPersonRequest', searchPersonRequest, SearchPersonRequest.fromJson);
|
|
@@ -73,6 +73,42 @@ export class CustomizationImages {
|
|
|
73
73
|
this._set({ "retryScreenHintGeo": val })
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
_retryScreenHintBadSelfieQuality
|
|
77
|
+
set retryScreenHintBadSelfieQuality(val) {
|
|
78
|
+
this._retryScreenHintBadSelfieQuality = val
|
|
79
|
+
this._set({ "retryScreenHintBadSelfieQuality": val })
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
_retryScreenHintCleanLens
|
|
83
|
+
set retryScreenHintCleanLens(val) {
|
|
84
|
+
this._retryScreenHintCleanLens = val
|
|
85
|
+
this._set({ "retryScreenHintCleanLens": val })
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
_retryScreenHintAddIllumination
|
|
89
|
+
set retryScreenHintAddIllumination(val) {
|
|
90
|
+
this._retryScreenHintAddIllumination = val
|
|
91
|
+
this._set({ "retryScreenHintAddIllumination": val })
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
_retryScreenHintChangeBackground
|
|
95
|
+
set retryScreenHintChangeBackground(val) {
|
|
96
|
+
this._retryScreenHintChangeBackground = val
|
|
97
|
+
this._set({ "retryScreenHintChangeBackground": val })
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
_retryScreenHintFaceOcclusions
|
|
101
|
+
set retryScreenHintFaceOcclusions(val) {
|
|
102
|
+
this._retryScreenHintFaceOcclusions = val
|
|
103
|
+
this._set({ "retryScreenHintFaceOcclusions": val })
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
_retryScreenHintCovering
|
|
107
|
+
set retryScreenHintCovering(val) {
|
|
108
|
+
this._retryScreenHintCovering = val
|
|
109
|
+
this._set({ "retryScreenHintCovering": val })
|
|
110
|
+
}
|
|
111
|
+
|
|
76
112
|
_processingScreenCloseButton
|
|
77
113
|
set processingScreenCloseButton(val) {
|
|
78
114
|
this._processingScreenCloseButton = val
|
|
@@ -100,6 +136,12 @@ export class CustomizationImages {
|
|
|
100
136
|
result._retryScreenHintEnvironment = jsonObject["retryScreenHintEnvironment"]
|
|
101
137
|
result._retryScreenHintSubject = jsonObject["retryScreenHintSubject"]
|
|
102
138
|
result._retryScreenHintGeo = jsonObject["retryScreenHintGeo"]
|
|
139
|
+
result._retryScreenHintBadSelfieQuality = jsonObject["retryScreenHintBadSelfieQuality"]
|
|
140
|
+
result._retryScreenHintCleanLens = jsonObject["retryScreenHintCleanLens"]
|
|
141
|
+
result._retryScreenHintAddIllumination = jsonObject["retryScreenHintAddIllumination"]
|
|
142
|
+
result._retryScreenHintChangeBackground = jsonObject["retryScreenHintChangeBackground"]
|
|
143
|
+
result._retryScreenHintFaceOcclusions = jsonObject["retryScreenHintFaceOcclusions"]
|
|
144
|
+
result._retryScreenHintCovering = jsonObject["retryScreenHintCovering"]
|
|
103
145
|
result._processingScreenCloseButton = jsonObject["processingScreenCloseButton"]
|
|
104
146
|
result._successScreenImage = jsonObject["successScreenImage"]
|
|
105
147
|
|
|
@@ -120,6 +162,12 @@ export class CustomizationImages {
|
|
|
120
162
|
"retryScreenHintEnvironment": this._retryScreenHintEnvironment,
|
|
121
163
|
"retryScreenHintSubject": this._retryScreenHintSubject,
|
|
122
164
|
"retryScreenHintGeo": this._retryScreenHintGeo,
|
|
165
|
+
"retryScreenHintBadSelfieQuality": this._retryScreenHintBadSelfieQuality,
|
|
166
|
+
"retryScreenHintCleanLens": this._retryScreenHintCleanLens,
|
|
167
|
+
"retryScreenHintAddIllumination": this._retryScreenHintAddIllumination,
|
|
168
|
+
"retryScreenHintChangeBackground": this._retryScreenHintChangeBackground,
|
|
169
|
+
"retryScreenHintFaceOcclusions": this._retryScreenHintFaceOcclusions,
|
|
170
|
+
"retryScreenHintCovering": this._retryScreenHintCovering,
|
|
123
171
|
"processingScreenCloseButton": this._processingScreenCloseButton,
|
|
124
172
|
"successScreenImage": this._successScreenImage,
|
|
125
173
|
}
|
|
@@ -3,10 +3,10 @@ export class Font {
|
|
|
3
3
|
size
|
|
4
4
|
style
|
|
5
5
|
|
|
6
|
-
constructor(name,
|
|
6
|
+
constructor(name, options) {
|
|
7
7
|
this.name = name
|
|
8
|
-
this.size =
|
|
9
|
-
this.style =
|
|
8
|
+
this.size = options?.size
|
|
9
|
+
this.style = options?.style
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
static fromJson(jsonObject) {
|
|
@@ -7,12 +7,12 @@ export class DetectFacesConfig {
|
|
|
7
7
|
outputImageParams
|
|
8
8
|
onlyCentralFace
|
|
9
9
|
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(options) {
|
|
11
11
|
this.onlyCentralFace = false
|
|
12
|
-
this.attributes =
|
|
13
|
-
this.customQuality =
|
|
14
|
-
this.outputImageParams =
|
|
15
|
-
this.onlyCentralFace =
|
|
12
|
+
this.attributes = options?.attributes
|
|
13
|
+
this.customQuality = options?.customQuality
|
|
14
|
+
this.outputImageParams = options?.outputImageParams
|
|
15
|
+
this.onlyCentralFace = options?.onlyCentralFace ?? this.onlyCentralFace
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
static fromJson(jsonObject) {
|
|
@@ -6,10 +6,10 @@ export class DetectFacesRequest {
|
|
|
6
6
|
configuration
|
|
7
7
|
tag
|
|
8
8
|
|
|
9
|
-
constructor(image, configuration,
|
|
9
|
+
constructor(image, configuration, options) {
|
|
10
10
|
this.image = image
|
|
11
11
|
this.configuration = configuration
|
|
12
|
-
this.tag =
|
|
12
|
+
this.tag = options?.tag
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
static qualityFull(image) {
|
|
@@ -16,20 +16,20 @@ export class FaceCaptureConfig {
|
|
|
16
16
|
timeout
|
|
17
17
|
holdStillDuration
|
|
18
18
|
|
|
19
|
-
constructor(
|
|
20
|
-
this.copyright =
|
|
21
|
-
this.cameraSwitchEnabled =
|
|
22
|
-
this.closeButtonEnabled =
|
|
23
|
-
this.torchButtonEnabled =
|
|
24
|
-
this.vibrateOnSteps =
|
|
25
|
-
this.detectOcclusion =
|
|
26
|
-
this.showFaceAnimation =
|
|
27
|
-
this.preventScreenRecording =
|
|
28
|
-
this.cameraPositionIOS =
|
|
29
|
-
this.cameraPositionAndroid =
|
|
30
|
-
this.screenOrientation =
|
|
31
|
-
this.timeout =
|
|
32
|
-
this.holdStillDuration =
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this.copyright = options?.copyright ?? true
|
|
21
|
+
this.cameraSwitchEnabled = options?.cameraSwitchEnabled ?? false
|
|
22
|
+
this.closeButtonEnabled = options?.closeButtonEnabled ?? true
|
|
23
|
+
this.torchButtonEnabled = options?.torchButtonEnabled ?? true
|
|
24
|
+
this.vibrateOnSteps = options?.vibrateOnSteps ?? true
|
|
25
|
+
this.detectOcclusion = options?.detectOcclusion ?? true
|
|
26
|
+
this.showFaceAnimation = options?.showFaceAnimation ?? true
|
|
27
|
+
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
28
|
+
this.cameraPositionIOS = options?.cameraPositionIOS ?? CameraPosition.FRONT
|
|
29
|
+
this.cameraPositionAndroid = options?.cameraPositionAndroid
|
|
30
|
+
this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
31
|
+
this.timeout = options?.timeout
|
|
32
|
+
this.holdStillDuration = options?.holdStillDuration
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
static fromJson(jsonObject) {
|
|
@@ -6,11 +6,11 @@ export class OutputImageCrop {
|
|
|
6
6
|
padColor
|
|
7
7
|
returnOriginalRect
|
|
8
8
|
|
|
9
|
-
constructor(type,
|
|
9
|
+
constructor(type, options) {
|
|
10
10
|
this.type = type
|
|
11
|
-
this.size =
|
|
12
|
-
this.padColor =
|
|
13
|
-
this.returnOriginalRect =
|
|
11
|
+
this.size = options?.size
|
|
12
|
+
this.padColor = options?.padColor
|
|
13
|
+
this.returnOriginalRect = options?.returnOriginalRect ?? false
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
static fromJson(jsonObject) {
|
|
@@ -4,9 +4,9 @@ export class OutputImageParams {
|
|
|
4
4
|
crop
|
|
5
5
|
backgroundColor
|
|
6
6
|
|
|
7
|
-
constructor(
|
|
8
|
-
this.crop =
|
|
9
|
-
this.backgroundColor =
|
|
7
|
+
constructor(options) {
|
|
8
|
+
this.crop = options?.crop
|
|
9
|
+
this.backgroundColor = options?.backgroundColor
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
static fromJson(jsonObject) {
|
|
@@ -6,12 +6,12 @@ export class ImageQualityCharacteristic {
|
|
|
6
6
|
customRange
|
|
7
7
|
color
|
|
8
8
|
|
|
9
|
-
static _create(name,
|
|
9
|
+
static _create(name, options) {
|
|
10
10
|
var result = new ImageQualityCharacteristic()
|
|
11
11
|
result.characteristicName = name
|
|
12
|
-
result.recommendedRange =
|
|
13
|
-
result.customRange =
|
|
14
|
-
result.color =
|
|
12
|
+
result.recommendedRange = options?.recommended
|
|
13
|
+
result.customRange = options?.custom
|
|
14
|
+
result.color = options?.color
|
|
15
15
|
return result
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -289,10 +289,10 @@ export class _Background {
|
|
|
289
289
|
return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.OTHER_FACES)
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
backgroundColorMatch(
|
|
292
|
+
backgroundColorMatch(options) {
|
|
293
293
|
return ImageQualityCharacteristic._create(
|
|
294
294
|
ImageQualityCharacteristicName.BACKGROUND_COLOR_MATCH,
|
|
295
|
-
{ color:
|
|
295
|
+
{ color: options?.color }
|
|
296
296
|
)
|
|
297
297
|
}
|
|
298
298
|
|