@regulaforensics/face-sdk 8.5.1575-rc → 8.5.1577-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/Package.swift +1 -1
- package/android/build.gradle.kts +1 -1
- package/android/cordova.gradle.kts +1 -1
- package/android/src/main/kotlin/com/regula/plugin/face/sdk/Config.kt +1 -19
- package/android/src/main/kotlin/com/regula/plugin/face/sdk/JSONConstructor.kt +16 -16
- package/examples/capacitor/ios/App/App/Info.plist +0 -2
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +4 -4
- package/examples/capacitor/package-lock.json +209 -590
- package/examples/capacitor/package.json +3 -8
- package/examples/ionic/config.xml +1 -1
- package/examples/ionic/package-lock.json +2457 -2105
- package/examples/ionic/package.json +3 -20
- package/examples/react_native/package-lock.json +927 -571
- package/examples/react_native/package.json +3 -10
- package/examples/react_native/scripts/withoutMetroServer.js +8 -11
- package/ios/Config.swift +29 -21
- package/ios/Decoder.swift +21 -25
- package/ios/Implementation.swift +3 -3
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/react-native-face-sdk.podspec +2 -2
- package/test/json.tsx +0 -12
- package/test/package-lock.json +2 -5
- package/test/test.tsx +74 -66
- package/www/capacitor/customization/customization_images.js +0 -8
- package/www/capacitor/customization/screen_orientation.js +0 -2
- package/www/capacitor/detect_faces/detect_faces_response.js +0 -3
- package/www/capacitor/face_capture/face_capture_config.js +0 -12
- package/www/capacitor/liveness/enrollment_config.js +0 -8
- package/www/capacitor/liveness/liveness_config.js +0 -8
- package/www/capacitor/liveness/liveness_notification.js +2 -4
- package/www/capacitor/liveness/verification_config.js +0 -8
- package/www/capacitor/match_faces/match_faces_response.js +0 -3
- package/www/cordova.js +2 -56
- package/www/react-native/customization/customization_images.js +0 -8
- package/www/react-native/customization/screen_orientation.js +0 -2
- package/www/react-native/detect_faces/detect_faces_response.js +0 -3
- package/www/react-native/face_capture/face_capture_config.js +0 -12
- package/www/react-native/liveness/enrollment_config.js +0 -8
- package/www/react-native/liveness/liveness_config.js +0 -8
- package/www/react-native/liveness/liveness_notification.js +2 -4
- package/www/react-native/liveness/verification_config.js +0 -8
- package/www/react-native/match_faces/match_faces_response.js +0 -3
- package/www/types/customization/customization_images.d.ts +0 -1
- package/www/types/customization/screen_orientation.d.ts +0 -4
- package/www/types/detect_faces/detect_faces_response.d.ts +0 -3
- package/www/types/face_capture/face_capture_config.d.ts +0 -15
- package/www/types/liveness/enrollment_config.d.ts +0 -6
- package/www/types/liveness/liveness_backend_exception.d.ts +1 -1
- package/www/types/liveness/liveness_config.d.ts +0 -8
- package/www/types/liveness/liveness_notification.d.ts +0 -2
- package/www/types/liveness/verification_config.d.ts +0 -8
- package/www/types/match_faces/match_faces_response.d.ts +0 -3
package/test/test.tsx
CHANGED
|
@@ -1,132 +1,136 @@
|
|
|
1
1
|
import { compare } from './utils'
|
|
2
2
|
import {
|
|
3
|
+
ComparedFace,
|
|
4
|
+
ComparedFacesPair,
|
|
5
|
+
ComparedFacesSplit,
|
|
3
6
|
Customization,
|
|
4
|
-
Point,
|
|
5
|
-
Rect,
|
|
6
|
-
Size,
|
|
7
|
-
OutputImageCrop,
|
|
8
|
-
OutputImageParams,
|
|
9
|
-
ImageQualityRange,
|
|
10
|
-
ImageQualityResult,
|
|
11
|
-
ImageQualityCharacteristic,
|
|
12
|
-
FaceSDKVersion,
|
|
13
|
-
InitConfig,
|
|
14
|
-
LicenseException,
|
|
15
|
-
InitException,
|
|
16
|
-
DetectFacesAttributeResult,
|
|
17
7
|
DetectFaceResult,
|
|
18
|
-
|
|
19
|
-
DetectFacesRequest,
|
|
8
|
+
DetectFacesAttributeResult,
|
|
20
9
|
DetectFacesBackendException,
|
|
10
|
+
DetectFacesConfig,
|
|
21
11
|
DetectFacesException,
|
|
12
|
+
DetectFacesRequest,
|
|
22
13
|
DetectFacesResponse,
|
|
14
|
+
EditGroupPersonsRequest,
|
|
23
15
|
FaceCaptureConfig,
|
|
24
|
-
FaceCaptureImage,
|
|
25
16
|
FaceCaptureException,
|
|
17
|
+
FaceCaptureImage,
|
|
26
18
|
FaceCaptureResponse,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
FaceSDKVersion,
|
|
20
|
+
ImageQualityCharacteristic,
|
|
21
|
+
ImageQualityRange,
|
|
22
|
+
ImageQualityResult,
|
|
23
|
+
ImageUpload,
|
|
24
|
+
InitConfig,
|
|
25
|
+
InitException,
|
|
26
|
+
LicenseException,
|
|
30
27
|
LivenessBackendException,
|
|
28
|
+
LivenessConfig,
|
|
31
29
|
LivenessException,
|
|
32
|
-
LivenessResponse,
|
|
33
30
|
LivenessNotification,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
VerificationResponse,
|
|
31
|
+
LivenessResponse,
|
|
32
|
+
MatchFacesBackendException,
|
|
37
33
|
MatchFacesConfig,
|
|
38
|
-
|
|
39
|
-
MatchFacesRequest,
|
|
34
|
+
MatchFacesDetection,
|
|
40
35
|
MatchFacesDetectionFace,
|
|
41
|
-
MatchFacesBackendException,
|
|
42
36
|
MatchFacesException,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
ComparedFacesPair,
|
|
37
|
+
MatchFacesImage,
|
|
38
|
+
MatchFacesRequest,
|
|
46
39
|
MatchFacesResponse,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
ImageUpload,
|
|
40
|
+
OutputImageCrop,
|
|
41
|
+
OutputImageParams,
|
|
50
42
|
Person,
|
|
51
43
|
PersonGroup,
|
|
52
44
|
PersonImage,
|
|
45
|
+
Point,
|
|
46
|
+
Rect,
|
|
47
|
+
SearchPerson,
|
|
53
48
|
SearchPersonDetection,
|
|
54
49
|
SearchPersonImage,
|
|
55
|
-
SearchPerson,
|
|
56
50
|
SearchPersonRequest,
|
|
51
|
+
Size,
|
|
52
|
+
EnrollmentConfig,
|
|
53
|
+
VerificationConfig,
|
|
54
|
+
EnrollmentResponse,
|
|
55
|
+
VerificationMatchResponse,
|
|
56
|
+
VerificationResponse,
|
|
57
57
|
SearchPersonFilter,
|
|
58
58
|
} from '@regulaforensics/face-sdk/www/capacitor'
|
|
59
59
|
import {
|
|
60
|
+
comparedFace,
|
|
61
|
+
comparedFacesPair,
|
|
62
|
+
comparedFacesSplit,
|
|
60
63
|
customization,
|
|
61
|
-
point,
|
|
62
|
-
rect,
|
|
63
|
-
size,
|
|
64
|
-
outputImageCrop,
|
|
65
|
-
outputImageParams,
|
|
66
|
-
imageQualityRange,
|
|
67
|
-
imageQualityResult,
|
|
68
|
-
imageQualityCharacteristic,
|
|
69
|
-
faceSDKVersion,
|
|
70
|
-
initConfig,
|
|
71
|
-
licenseException,
|
|
72
|
-
initException,
|
|
73
|
-
detectFacesAttributeResult,
|
|
74
64
|
detectFaceResult,
|
|
75
|
-
|
|
76
|
-
detectFacesRequest,
|
|
65
|
+
detectFacesAttributeResult,
|
|
77
66
|
detectFacesBackendException,
|
|
67
|
+
detectFacesConfig,
|
|
78
68
|
detectFacesException,
|
|
69
|
+
detectFacesRequest,
|
|
79
70
|
detectFacesResponse,
|
|
71
|
+
editGroupPersonsRequest,
|
|
80
72
|
faceCaptureConfig,
|
|
81
|
-
faceCaptureImage,
|
|
82
73
|
faceCaptureException,
|
|
74
|
+
faceCaptureImage,
|
|
83
75
|
faceCaptureResponse,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
76
|
+
faceSDKVersion,
|
|
77
|
+
imageQualityCharacteristic,
|
|
78
|
+
imageQualityRange,
|
|
79
|
+
imageQualityResult,
|
|
80
|
+
imageUpload,
|
|
81
|
+
initConfig,
|
|
82
|
+
initException,
|
|
83
|
+
licenseException,
|
|
87
84
|
livenessBackendException,
|
|
85
|
+
livenessConfig,
|
|
88
86
|
livenessException,
|
|
89
|
-
livenessResponse,
|
|
90
87
|
livenessNotification,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
verificationResponse,
|
|
88
|
+
livenessResponse,
|
|
89
|
+
matchFacesBackendException,
|
|
94
90
|
matchFacesConfig,
|
|
95
|
-
|
|
96
|
-
matchFacesRequest,
|
|
91
|
+
matchFacesDetection,
|
|
97
92
|
matchFacesDetectionFace,
|
|
98
|
-
matchFacesBackendException,
|
|
99
93
|
matchFacesException,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
comparedFacesPair,
|
|
94
|
+
matchFacesImage,
|
|
95
|
+
matchFacesRequest,
|
|
103
96
|
matchFacesResponse,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
imageUpload,
|
|
97
|
+
outputImageCrop,
|
|
98
|
+
outputImageParams,
|
|
107
99
|
person,
|
|
108
100
|
personGroup,
|
|
109
101
|
personImage,
|
|
102
|
+
point,
|
|
103
|
+
rect,
|
|
104
|
+
searchPerson,
|
|
110
105
|
searchPersonDetection,
|
|
111
106
|
searchPersonImage,
|
|
112
|
-
searchPerson,
|
|
113
107
|
searchPersonRequest,
|
|
108
|
+
size,
|
|
109
|
+
enrollmentConfig,
|
|
110
|
+
verificationConfig,
|
|
111
|
+
enrollmentResponse,
|
|
112
|
+
verificationMatchResponse,
|
|
113
|
+
verificationResponse,
|
|
114
114
|
searchPersonFilter,
|
|
115
115
|
} from './json'
|
|
116
116
|
|
|
117
117
|
compare('customization', customization, Customization.fromJson);
|
|
118
|
+
|
|
118
119
|
compare('point', point, Point.fromJson);
|
|
119
120
|
compare('rect', rect, Rect.fromJson);
|
|
120
121
|
compare('size', size, Size.fromJson);
|
|
121
122
|
compare('outputImageCrop', outputImageCrop, OutputImageCrop.fromJson);
|
|
122
123
|
compare('outputImageParams', outputImageParams, OutputImageParams.fromJson);
|
|
124
|
+
|
|
123
125
|
compare('imageQualityRange', imageQualityRange, ImageQualityRange.fromJson);
|
|
124
126
|
compare('imageQualityResult', imageQualityResult, ImageQualityResult.fromJson);
|
|
125
127
|
compare('imageQualityCharacteristic', imageQualityCharacteristic, ImageQualityCharacteristic.fromJson);
|
|
128
|
+
|
|
126
129
|
compare('faceSDKVersion', faceSDKVersion, FaceSDKVersion.fromJson);
|
|
127
130
|
compare('initConfig', initConfig, InitConfig.fromJson);
|
|
128
131
|
compare('licenseException', licenseException, LicenseException.fromJson);
|
|
129
132
|
compare('initException', initException, InitException.fromJson);
|
|
133
|
+
|
|
130
134
|
compare('detectFacesAttributeResult', detectFacesAttributeResult, DetectFacesAttributeResult.fromJson);
|
|
131
135
|
compare('detectFaceResult', detectFaceResult, DetectFaceResult.fromJson);
|
|
132
136
|
compare('detectFacesConfig', detectFacesConfig, DetectFacesConfig.fromJson);
|
|
@@ -134,10 +138,12 @@ compare('detectFacesRequest', detectFacesRequest, DetectFacesRequest.fromJson);
|
|
|
134
138
|
compare('detectFacesBackendException', detectFacesBackendException, DetectFacesBackendException.fromJson);
|
|
135
139
|
compare('detectFacesException', detectFacesException, DetectFacesException.fromJson);
|
|
136
140
|
compare('detectFacesResponse', detectFacesResponse, DetectFacesResponse.fromJson);
|
|
141
|
+
|
|
137
142
|
compare('faceCaptureConfig', faceCaptureConfig, FaceCaptureConfig.fromJson);
|
|
138
143
|
compare('faceCaptureImage', faceCaptureImage, FaceCaptureImage.fromJson);
|
|
139
144
|
compare('faceCaptureException', faceCaptureException, FaceCaptureException.fromJson);
|
|
140
145
|
compare('faceCaptureResponse', faceCaptureResponse, FaceCaptureResponse.fromJson);
|
|
146
|
+
|
|
141
147
|
compare('livenessConfig', livenessConfig, LivenessConfig.fromJson);
|
|
142
148
|
compare('enrollmentConfig', enrollmentConfig, EnrollmentConfig.fromJson);
|
|
143
149
|
compare('verificationConfig', verificationConfig, VerificationConfig.fromJson);
|
|
@@ -148,6 +154,7 @@ compare('livenessNotification', livenessNotification, LivenessNotification.fromJ
|
|
|
148
154
|
compare('enrollmentResponse', enrollmentResponse, EnrollmentResponse.fromJson);
|
|
149
155
|
compare('verificationMatchResponse', verificationMatchResponse, VerificationMatchResponse.fromJson);
|
|
150
156
|
compare('verificationResponse', verificationResponse, VerificationResponse.fromJson);
|
|
157
|
+
|
|
151
158
|
compare('matchFacesConfig', matchFacesConfig, MatchFacesConfig.fromJson);
|
|
152
159
|
compare('matchFacesImage', matchFacesImage, MatchFacesImage.fromJson);
|
|
153
160
|
compare('matchFacesRequest', matchFacesRequest, MatchFacesRequest.fromJson);
|
|
@@ -159,6 +166,7 @@ compare('comparedFace', comparedFace, ComparedFace.fromJson);
|
|
|
159
166
|
compare('comparedFacesPair', comparedFacesPair, ComparedFacesPair.fromJson);
|
|
160
167
|
compare('matchFacesResponse', matchFacesResponse, MatchFacesResponse.fromJson);
|
|
161
168
|
compare('comparedFacesSplit', comparedFacesSplit, ComparedFacesSplit.fromJson);
|
|
169
|
+
|
|
162
170
|
compare('editGroupPersonsRequest', editGroupPersonsRequest, EditGroupPersonsRequest.fromJson);
|
|
163
171
|
compare('imageUpload', imageUpload, ImageUpload.fromJson);
|
|
164
172
|
compare('person', person, Person.fromJson);
|
|
@@ -109,12 +109,6 @@ export class CustomizationImages {
|
|
|
109
109
|
this._set({ "retryScreenHintCovering": val })
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
_retryScreenHintRejectMultipleFaces
|
|
113
|
-
set retryScreenHintRejectMultipleFaces(val) {
|
|
114
|
-
this._retryScreenHintRejectMultipleFaces = val
|
|
115
|
-
this._set({ "retryScreenHintRejectMultipleFaces": val })
|
|
116
|
-
}
|
|
117
|
-
|
|
118
112
|
_processingScreenCloseButton
|
|
119
113
|
set processingScreenCloseButton(val) {
|
|
120
114
|
this._processingScreenCloseButton = val
|
|
@@ -148,7 +142,6 @@ export class CustomizationImages {
|
|
|
148
142
|
result._retryScreenHintChangeBackground = jsonObject["retryScreenHintChangeBackground"]
|
|
149
143
|
result._retryScreenHintFaceOcclusions = jsonObject["retryScreenHintFaceOcclusions"]
|
|
150
144
|
result._retryScreenHintCovering = jsonObject["retryScreenHintCovering"]
|
|
151
|
-
result._retryScreenHintRejectMultipleFaces = jsonObject["retryScreenHintRejectMultipleFaces"]
|
|
152
145
|
result._processingScreenCloseButton = jsonObject["processingScreenCloseButton"]
|
|
153
146
|
result._successScreenImage = jsonObject["successScreenImage"]
|
|
154
147
|
|
|
@@ -175,7 +168,6 @@ export class CustomizationImages {
|
|
|
175
168
|
"retryScreenHintChangeBackground": this._retryScreenHintChangeBackground,
|
|
176
169
|
"retryScreenHintFaceOcclusions": this._retryScreenHintFaceOcclusions,
|
|
177
170
|
"retryScreenHintCovering": this._retryScreenHintCovering,
|
|
178
|
-
"retryScreenHintRejectMultipleFaces": this._retryScreenHintRejectMultipleFaces,
|
|
179
171
|
"processingScreenCloseButton": this._processingScreenCloseButton,
|
|
180
172
|
"successScreenImage": this._successScreenImage,
|
|
181
173
|
}
|
|
@@ -4,7 +4,6 @@ import { DetectFacesException } from './detect_faces_exception'
|
|
|
4
4
|
export class DetectFacesResponse {
|
|
5
5
|
detection
|
|
6
6
|
scenario
|
|
7
|
-
transactionId
|
|
8
7
|
error
|
|
9
8
|
allDetections
|
|
10
9
|
|
|
@@ -14,7 +13,6 @@ export class DetectFacesResponse {
|
|
|
14
13
|
|
|
15
14
|
result.detection = DetectFaceResult.fromJson(jsonObject["detection"])
|
|
16
15
|
result.scenario = jsonObject["scenario"]
|
|
17
|
-
result.transactionId = jsonObject["transactionId"]
|
|
18
16
|
result.error = DetectFacesException.fromJson(jsonObject["error"])
|
|
19
17
|
result.allDetections = []
|
|
20
18
|
if (jsonObject["allDetections"] != null)
|
|
@@ -29,7 +27,6 @@ export class DetectFacesResponse {
|
|
|
29
27
|
"detection": this.detection?.toJson(),
|
|
30
28
|
"allDetections": this.allDetections?.map(e => e.toJson()),
|
|
31
29
|
"scenario": this.scenario,
|
|
32
|
-
"transactionId": this.transactionId,
|
|
33
30
|
"error": this.error?.toJson(),
|
|
34
31
|
}
|
|
35
32
|
}
|
|
@@ -10,9 +10,6 @@ export class FaceCaptureConfig {
|
|
|
10
10
|
detectOcclusion
|
|
11
11
|
showFaceAnimation
|
|
12
12
|
preventScreenRecording
|
|
13
|
-
usbCamera
|
|
14
|
-
usbCameraMirrorPreview
|
|
15
|
-
rejectMultipleFaces
|
|
16
13
|
cameraPositionIOS
|
|
17
14
|
cameraPositionAndroid
|
|
18
15
|
screenOrientation
|
|
@@ -28,9 +25,6 @@ export class FaceCaptureConfig {
|
|
|
28
25
|
this.detectOcclusion = options?.detectOcclusion ?? true
|
|
29
26
|
this.showFaceAnimation = options?.showFaceAnimation ?? true
|
|
30
27
|
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
31
|
-
this.usbCamera = options?.usbCamera ?? false
|
|
32
|
-
this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
|
|
33
|
-
this.rejectMultipleFaces = options?.rejectMultipleFaces ?? false
|
|
34
28
|
this.cameraPositionIOS = options?.cameraPositionIOS ?? CameraPosition.FRONT
|
|
35
29
|
this.cameraPositionAndroid = options?.cameraPositionAndroid
|
|
36
30
|
this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
@@ -50,9 +44,6 @@ export class FaceCaptureConfig {
|
|
|
50
44
|
result.detectOcclusion = jsonObject["detectOcclusion"]
|
|
51
45
|
result.showFaceAnimation = jsonObject["showFaceAnimation"]
|
|
52
46
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
53
|
-
result.usbCamera = jsonObject["usbCamera"]
|
|
54
|
-
result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
|
|
55
|
-
result.rejectMultipleFaces = jsonObject["rejectMultipleFaces"]
|
|
56
47
|
result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
|
|
57
48
|
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
58
49
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
@@ -72,9 +63,6 @@ export class FaceCaptureConfig {
|
|
|
72
63
|
"detectOcclusion": this.detectOcclusion,
|
|
73
64
|
"showFaceAnimation": this.showFaceAnimation,
|
|
74
65
|
"preventScreenRecording": this.preventScreenRecording,
|
|
75
|
-
"usbCamera": this.usbCamera,
|
|
76
|
-
"usbCameraMirrorPreview": this.usbCameraMirrorPreview,
|
|
77
|
-
"rejectMultipleFaces": this.rejectMultipleFaces,
|
|
78
66
|
"cameraPositionAndroid": this.cameraPositionAndroid,
|
|
79
67
|
"cameraPositionIOS": this.cameraPositionIOS,
|
|
80
68
|
"screenOrientation": this.screenOrientation,
|
|
@@ -15,8 +15,6 @@ export class EnrollmentConfig {
|
|
|
15
15
|
screenOrientation
|
|
16
16
|
locationTrackingEnabled
|
|
17
17
|
preventScreenRecording
|
|
18
|
-
usbCamera
|
|
19
|
-
usbCameraMirrorPreview
|
|
20
18
|
attemptsCount
|
|
21
19
|
recordingProcess
|
|
22
20
|
livenessType
|
|
@@ -37,8 +35,6 @@ export class EnrollmentConfig {
|
|
|
37
35
|
this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
38
36
|
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
39
37
|
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
40
|
-
this.usbCamera = options?.usbCamera ?? false
|
|
41
|
-
this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
|
|
42
38
|
this.attemptsCount = options?.attemptsCount ?? 0
|
|
43
39
|
this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
44
40
|
this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
|
|
@@ -63,8 +59,6 @@ export class EnrollmentConfig {
|
|
|
63
59
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
64
60
|
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
65
61
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
66
|
-
result.usbCamera = jsonObject["usbCamera"]
|
|
67
|
-
result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
|
|
68
62
|
result.attemptsCount = jsonObject["attemptsCount"]
|
|
69
63
|
result.recordingProcess = jsonObject["recordingProcess"]
|
|
70
64
|
result.livenessType = jsonObject["livenessType"]
|
|
@@ -89,8 +83,6 @@ export class EnrollmentConfig {
|
|
|
89
83
|
"screenOrientation": this.screenOrientation,
|
|
90
84
|
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
91
85
|
"preventScreenRecording": this.preventScreenRecording,
|
|
92
|
-
"usbCamera": this.usbCamera,
|
|
93
|
-
"usbCameraMirrorPreview": this.usbCameraMirrorPreview,
|
|
94
86
|
"attemptsCount": this.attemptsCount,
|
|
95
87
|
"recordingProcess": this.recordingProcess,
|
|
96
88
|
"livenessType": this.livenessType,
|
|
@@ -12,8 +12,6 @@ export class LivenessConfig {
|
|
|
12
12
|
screenOrientation
|
|
13
13
|
locationTrackingEnabled
|
|
14
14
|
preventScreenRecording
|
|
15
|
-
usbCamera
|
|
16
|
-
usbCameraMirrorPreview
|
|
17
15
|
attemptsCount
|
|
18
16
|
recordingProcess
|
|
19
17
|
livenessType
|
|
@@ -32,8 +30,6 @@ export class LivenessConfig {
|
|
|
32
30
|
this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
33
31
|
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
34
32
|
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
35
|
-
this.usbCamera = options?.usbCamera ?? false
|
|
36
|
-
this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
|
|
37
33
|
this.attemptsCount = options?.attemptsCount ?? 0
|
|
38
34
|
this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
39
35
|
this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
|
|
@@ -56,8 +52,6 @@ export class LivenessConfig {
|
|
|
56
52
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
57
53
|
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
58
54
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
59
|
-
result.usbCamera = jsonObject["usbCamera"]
|
|
60
|
-
result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
|
|
61
55
|
result.attemptsCount = jsonObject["attemptsCount"]
|
|
62
56
|
result.recordingProcess = jsonObject["recordingProcess"]
|
|
63
57
|
result.livenessType = jsonObject["livenessType"]
|
|
@@ -80,8 +74,6 @@ export class LivenessConfig {
|
|
|
80
74
|
"screenOrientation": this.screenOrientation,
|
|
81
75
|
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
82
76
|
"preventScreenRecording": this.preventScreenRecording,
|
|
83
|
-
"usbCamera": this.usbCamera,
|
|
84
|
-
"usbCameraMirrorPreview": this.usbCameraMirrorPreview,
|
|
85
77
|
"attemptsCount": this.attemptsCount,
|
|
86
78
|
"recordingProcess": this.recordingProcess,
|
|
87
79
|
"livenessType": this.livenessType,
|
|
@@ -13,8 +13,6 @@ export class VerificationConfig {
|
|
|
13
13
|
screenOrientation
|
|
14
14
|
locationTrackingEnabled
|
|
15
15
|
preventScreenRecording
|
|
16
|
-
usbCamera
|
|
17
|
-
usbCameraMirrorPreview
|
|
18
16
|
attemptsCount
|
|
19
17
|
recordingProcess
|
|
20
18
|
livenessType
|
|
@@ -36,8 +34,6 @@ export class VerificationConfig {
|
|
|
36
34
|
this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
37
35
|
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
38
36
|
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
39
|
-
this.usbCamera = options?.usbCamera ?? false
|
|
40
|
-
this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
|
|
41
37
|
this.attemptsCount = options?.attemptsCount ?? 0
|
|
42
38
|
this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
43
39
|
this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
|
|
@@ -61,8 +57,6 @@ export class VerificationConfig {
|
|
|
61
57
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
62
58
|
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
63
59
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
64
|
-
result.usbCamera = jsonObject["usbCamera"]
|
|
65
|
-
result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
|
|
66
60
|
result.attemptsCount = jsonObject["attemptsCount"]
|
|
67
61
|
result.recordingProcess = jsonObject["recordingProcess"]
|
|
68
62
|
result.livenessType = jsonObject["livenessType"]
|
|
@@ -87,8 +81,6 @@ export class VerificationConfig {
|
|
|
87
81
|
"screenOrientation": this.screenOrientation,
|
|
88
82
|
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
89
83
|
"preventScreenRecording": this.preventScreenRecording,
|
|
90
|
-
"usbCamera": this.usbCamera,
|
|
91
|
-
"usbCameraMirrorPreview": this.usbCameraMirrorPreview,
|
|
92
84
|
"attemptsCount": this.attemptsCount,
|
|
93
85
|
"recordingProcess": this.recordingProcess,
|
|
94
86
|
"livenessType": this.livenessType,
|
|
@@ -6,7 +6,6 @@ export class MatchFacesResponse {
|
|
|
6
6
|
results
|
|
7
7
|
detections
|
|
8
8
|
tag
|
|
9
|
-
transactionId
|
|
10
9
|
error
|
|
11
10
|
|
|
12
11
|
static fromJson(jsonObject) {
|
|
@@ -22,7 +21,6 @@ export class MatchFacesResponse {
|
|
|
22
21
|
for (const item of jsonObject["detections"])
|
|
23
22
|
result.detections.push(MatchFacesDetection.fromJson(item))
|
|
24
23
|
result.tag = jsonObject["tag"]
|
|
25
|
-
result.transactionId = jsonObject["transactionId"]
|
|
26
24
|
result.error = MatchFacesException.fromJson(jsonObject["error"])
|
|
27
25
|
|
|
28
26
|
return result
|
|
@@ -33,7 +31,6 @@ export class MatchFacesResponse {
|
|
|
33
31
|
"results": this.results?.map(e => e.toJson()),
|
|
34
32
|
"detections": this.detections?.map(e => e.toJson()),
|
|
35
33
|
"tag": this.tag,
|
|
36
|
-
"transactionId": this.transactionId,
|
|
37
34
|
"error": this.error?.toJson(),
|
|
38
35
|
}
|
|
39
36
|
}
|