@regulaforensics/face-sdk 6.5.63-beta → 6.5.67-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.
- package/RNFaceSDK.podspec +1 -1
- package/examples/capacitor/README.md +4 -4
- package/examples/capacitor/package.json +4 -4
- package/examples/cordova/README.md +4 -4
- package/examples/cordova/package.json +10 -5
- package/examples/ionic/README.md +4 -4
- package/examples/ionic/package.json +4 -4
- package/examples/ionic/src/app/home/home.page.ts +5 -56
- package/examples/react-native/README.md +4 -4
- package/examples/react-native/package.json +5 -4
- package/package.json +1 -2
- package/plugin.xml +1 -1
- package/www/capacitor/index.js +4 -179
- package/www/cordova.js +406 -3499
- package/www/react-native/index.js +4 -179
- package/www/types/index.d.ts +4 -140
- package/examples/capacitor/scripts/android.sh +0 -9
- package/examples/capacitor/scripts/ios.sh +0 -8
- package/examples/capacitor/scripts/setup.sh +0 -4
- package/examples/cordova/scripts/android.sh +0 -8
- package/examples/cordova/scripts/ios.sh +0 -8
- package/examples/cordova/scripts/setup.sh +0 -5
- package/examples/ionic/scripts/android.sh +0 -8
- package/examples/ionic/scripts/ios.sh +0 -8
- package/examples/ionic/scripts/setup.sh +0 -5
- package/examples/react-native/scripts/android.sh +0 -8
- package/examples/react-native/scripts/ios.sh +0 -8
- package/examples/react-native/scripts/setup.sh +0 -8
- package/www/capacitor/customization/customization.js +0 -66
- package/www/capacitor/customization/customization_colors.js +0 -233
- package/www/capacitor/customization/customization_fonts.js +0 -106
- package/www/capacitor/customization/customization_images.js +0 -129
- package/www/capacitor/customization/font.js +0 -29
- package/www/capacitor/detect_faces/detect_face_result.js +0 -38
- package/www/capacitor/detect_faces/detect_faces_attribute.js +0 -15
- package/www/capacitor/detect_faces/detect_faces_attribute_result.js +0 -20
- package/www/capacitor/detect_faces/detect_faces_backend_exception.js +0 -23
- package/www/capacitor/detect_faces/detect_faces_config.js +0 -14
- package/www/capacitor/detect_faces/detect_faces_exception.js +0 -30
- package/www/capacitor/detect_faces/detect_faces_request.js +0 -67
- package/www/capacitor/detect_faces/detect_faces_response.js +0 -24
- package/www/capacitor/detect_faces/detect_faces_scenario.js +0 -10
- package/www/capacitor/face_capture/face_capture_config.js +0 -28
- package/www/capacitor/face_capture/face_capture_exception.js +0 -25
- package/www/capacitor/face_capture/face_capture_image.js +0 -26
- package/www/capacitor/face_capture/face_capture_response.js +0 -17
- package/www/capacitor/image_params/output_image_crop.js +0 -21
- package/www/capacitor/image_params/output_image_params.js +0 -9
- package/www/capacitor/image_params/point.js +0 -14
- package/www/capacitor/image_params/rect.js +0 -18
- package/www/capacitor/image_params/size.js +0 -9
- package/www/capacitor/image_quality/image_quality_characteristic.js +0 -24
- package/www/capacitor/image_quality/image_quality_characteristic_name.js +0 -58
- package/www/capacitor/image_quality/image_quality_group.js +0 -332
- package/www/capacitor/image_quality/image_quality_range.js +0 -26
- package/www/capacitor/image_quality/image_quality_result.js +0 -40
- package/www/capacitor/init/face_sdk_version.js +0 -16
- package/www/capacitor/match_faces/compared_face.js +0 -21
- package/www/capacitor/match_faces/compared_faces_pair.js +0 -23
- package/www/capacitor/match_faces/compared_faces_split.js +0 -22
- package/www/capacitor/match_faces/match_faces_backend_exception.js +0 -14
- package/www/capacitor/match_faces/match_faces_config.js +0 -12
- package/www/capacitor/match_faces/match_faces_detection.js +0 -25
- package/www/capacitor/match_faces/match_faces_detection_face.js +0 -28
- package/www/capacitor/match_faces/match_faces_exception.js +0 -30
- package/www/capacitor/match_faces/match_faces_image.js +0 -25
- package/www/capacitor/match_faces/match_faces_request.js +0 -13
- package/www/capacitor/match_faces/match_faces_response.js +0 -28
- package/www/capacitor/person_database/edit_group_persons_request.js +0 -9
- package/www/capacitor/person_database/image_upload.js +0 -16
- package/www/capacitor/person_database/pageable_item_list.js +0 -22
- package/www/capacitor/person_database/person.js +0 -22
- package/www/capacitor/person_database/person_database.js +0 -145
- package/www/capacitor/person_database/person_group.js +0 -18
- package/www/capacitor/person_database/person_image.js +0 -22
- package/www/capacitor/person_database/search_person.js +0 -31
- package/www/capacitor/person_database/search_person_detection.js +0 -22
- package/www/capacitor/person_database/search_person_image.js +0 -26
- package/www/capacitor/person_database/search_person_request.js +0 -17
- package/www/react-native/customization/customization.js +0 -66
- package/www/react-native/customization/customization_colors.js +0 -233
- package/www/react-native/customization/customization_fonts.js +0 -106
- package/www/react-native/customization/customization_images.js +0 -129
- package/www/react-native/customization/font.js +0 -29
- package/www/react-native/detect_faces/detect_face_result.js +0 -38
- package/www/react-native/detect_faces/detect_faces_attribute.js +0 -15
- package/www/react-native/detect_faces/detect_faces_attribute_result.js +0 -20
- package/www/react-native/detect_faces/detect_faces_backend_exception.js +0 -23
- package/www/react-native/detect_faces/detect_faces_config.js +0 -14
- package/www/react-native/detect_faces/detect_faces_exception.js +0 -30
- package/www/react-native/detect_faces/detect_faces_request.js +0 -67
- package/www/react-native/detect_faces/detect_faces_response.js +0 -24
- package/www/react-native/detect_faces/detect_faces_scenario.js +0 -10
- package/www/react-native/face_capture/face_capture_config.js +0 -28
- package/www/react-native/face_capture/face_capture_exception.js +0 -25
- package/www/react-native/face_capture/face_capture_image.js +0 -26
- package/www/react-native/face_capture/face_capture_response.js +0 -17
- package/www/react-native/image_params/output_image_crop.js +0 -21
- package/www/react-native/image_params/output_image_params.js +0 -9
- package/www/react-native/image_params/point.js +0 -14
- package/www/react-native/image_params/rect.js +0 -18
- package/www/react-native/image_params/size.js +0 -9
- package/www/react-native/image_quality/image_quality_characteristic.js +0 -24
- package/www/react-native/image_quality/image_quality_characteristic_name.js +0 -58
- package/www/react-native/image_quality/image_quality_group.js +0 -332
- package/www/react-native/image_quality/image_quality_range.js +0 -26
- package/www/react-native/image_quality/image_quality_result.js +0 -40
- package/www/react-native/init/face_sdk_version.js +0 -16
- package/www/react-native/match_faces/compared_face.js +0 -21
- package/www/react-native/match_faces/compared_faces_pair.js +0 -23
- package/www/react-native/match_faces/compared_faces_split.js +0 -22
- package/www/react-native/match_faces/match_faces_backend_exception.js +0 -14
- package/www/react-native/match_faces/match_faces_config.js +0 -12
- package/www/react-native/match_faces/match_faces_detection.js +0 -25
- package/www/react-native/match_faces/match_faces_detection_face.js +0 -28
- package/www/react-native/match_faces/match_faces_exception.js +0 -30
- package/www/react-native/match_faces/match_faces_image.js +0 -25
- package/www/react-native/match_faces/match_faces_request.js +0 -13
- package/www/react-native/match_faces/match_faces_response.js +0 -28
- package/www/react-native/person_database/edit_group_persons_request.js +0 -9
- package/www/react-native/person_database/image_upload.js +0 -16
- package/www/react-native/person_database/pageable_item_list.js +0 -22
- package/www/react-native/person_database/person.js +0 -22
- package/www/react-native/person_database/person_database.js +0 -145
- package/www/react-native/person_database/person_group.js +0 -18
- package/www/react-native/person_database/person_image.js +0 -22
- package/www/react-native/person_database/search_person.js +0 -31
- package/www/react-native/person_database/search_person_detection.js +0 -22
- package/www/react-native/person_database/search_person_image.js +0 -26
- package/www/react-native/person_database/search_person_request.js +0 -17
- package/www/types/customization/customization.d.ts +0 -46
- package/www/types/customization/customization_colors.d.ts +0 -37
- package/www/types/customization/customization_fonts.d.ts +0 -23
- package/www/types/customization/customization_images.d.ts +0 -24
- package/www/types/customization/font.d.ts +0 -41
- package/www/types/detect_faces/detect_face_result.d.ts +0 -16
- package/www/types/detect_faces/detect_faces_attribute.d.ts +0 -15
- package/www/types/detect_faces/detect_faces_attribute_result.d.ts +0 -11
- package/www/types/detect_faces/detect_faces_backend_exception.d.ts +0 -15
- package/www/types/detect_faces/detect_faces_config.d.ts +0 -37
- package/www/types/detect_faces/detect_faces_exception.d.ts +0 -24
- package/www/types/detect_faces/detect_faces_request.d.ts +0 -80
- package/www/types/detect_faces/detect_faces_response.d.ts +0 -12
- package/www/types/detect_faces/detect_faces_scenario.d.ts +0 -10
- package/www/types/face_capture/face_capture_config.d.ts +0 -39
- package/www/types/face_capture/face_capture_exception.d.ts +0 -17
- package/www/types/face_capture/face_capture_image.d.ts +0 -39
- package/www/types/face_capture/face_capture_response.d.ts +0 -9
- package/www/types/image_params/output_image_crop.d.ts +0 -49
- package/www/types/image_params/output_image_params.d.ts +0 -28
- package/www/types/image_params/point.d.ts +0 -9
- package/www/types/image_params/rect.d.ts +0 -8
- package/www/types/image_params/size.d.ts +0 -6
- package/www/types/image_quality/image_quality_characteristic.d.ts +0 -7
- package/www/types/image_quality/image_quality_characteristic_name.d.ts +0 -61
- package/www/types/image_quality/image_quality_group.d.ts +0 -418
- package/www/types/image_quality/image_quality_range.d.ts +0 -8
- package/www/types/image_quality/image_quality_result.d.ts +0 -30
- package/www/types/init/face_sdk_version.d.ts +0 -16
- package/www/types/match_faces/compared_face.d.ts +0 -29
- package/www/types/match_faces/compared_faces_pair.d.ts +0 -36
- package/www/types/match_faces/compared_faces_split.d.ts +0 -8
- package/www/types/match_faces/match_faces_backend_exception.d.ts +0 -6
- package/www/types/match_faces/match_faces_config.d.ts +0 -14
- package/www/types/match_faces/match_faces_detection.d.ts +0 -30
- package/www/types/match_faces/match_faces_detection_face.d.ts +0 -43
- package/www/types/match_faces/match_faces_exception.d.ts +0 -21
- package/www/types/match_faces/match_faces_image.d.ts +0 -34
- package/www/types/match_faces/match_faces_request.d.ts +0 -34
- package/www/types/match_faces/match_faces_response.d.ts +0 -27
- package/www/types/person_database/edit_group_persons_request.d.ts +0 -8
- package/www/types/person_database/image_upload.d.ts +0 -20
- package/www/types/person_database/pageable_item_list.d.ts +0 -7
- package/www/types/person_database/person.d.ts +0 -33
- package/www/types/person_database/person_database.d.ts +0 -95
- package/www/types/person_database/person_group.d.ts +0 -22
- package/www/types/person_database/person_image.d.ts +0 -10
- package/www/types/person_database/search_person.d.ts +0 -31
- package/www/types/person_database/search_person_detection.d.ts +0 -11
- package/www/types/person_database/search_person_image.d.ts +0 -25
- package/www/types/person_database/search_person_request.d.ts +0 -39
package/www/cordova.js
CHANGED
|
@@ -19,3666 +19,490 @@ const CameraPosition = {
|
|
|
19
19
|
|
|
20
20
|
/***/ }),
|
|
21
21
|
|
|
22
|
-
/***/ "./src/customization/
|
|
23
|
-
|
|
24
|
-
!*** ./src/customization/
|
|
25
|
-
|
|
26
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
27
|
-
|
|
28
|
-
__webpack_require__.r(__webpack_exports__);
|
|
29
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
30
|
-
/* harmony export */ Customization: () => (/* binding */ Customization)
|
|
31
|
-
/* harmony export */ });
|
|
32
|
-
/* harmony import */ var _customization_colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./customization_colors */ "./src/customization/customization_colors.js");
|
|
33
|
-
/* harmony import */ var _customization_fonts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./customization_fonts */ "./src/customization/customization_fonts.js");
|
|
34
|
-
/* harmony import */ var _customization_images__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./customization_images */ "./src/customization/customization_images.js");
|
|
35
|
-
/* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../internal/bridge */ "./src/internal/bridge.js");
|
|
36
|
-
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../index */ "./src/index.js");
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
class Customization {
|
|
44
|
-
get colors() { return this._colors }
|
|
45
|
-
_colors = new _customization_colors__WEBPACK_IMPORTED_MODULE_0__.CustomizationColors()
|
|
46
|
-
set colors(val) {
|
|
47
|
-
(this._colors = val)._apply(this)
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
get fonts() { return this._fonts }
|
|
51
|
-
_fonts = new _customization_fonts__WEBPACK_IMPORTED_MODULE_1__.CustomizationFonts()
|
|
52
|
-
set fonts(val) {
|
|
53
|
-
(this._fonts = val)._apply(this)
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
get images() { return this._images }
|
|
57
|
-
_images = new _customization_images__WEBPACK_IMPORTED_MODULE_2__.CustomizationImages()
|
|
58
|
-
set images(val) {
|
|
59
|
-
(this._images = val)._apply(this)
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
get uiCustomizationLayer() { return this._uiCustomizationLayer }
|
|
63
|
-
_uiCustomizationLayer
|
|
64
|
-
set uiCustomizationLayer(val) {
|
|
65
|
-
var temp = Object.assign({}, val);
|
|
66
|
-
Object.freeze(temp);
|
|
67
|
-
this._uiCustomizationLayer = temp
|
|
68
|
-
this._set({ "uiCustomizationLayer": val })
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
set onCustomButtonTapped(completion) {
|
|
72
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_3__._setCustomButtonTappedCompletion)(completion)
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
static fromJson(jsonObject) {
|
|
76
|
-
var result = new Customization()
|
|
77
|
-
|
|
78
|
-
result.colors = _customization_colors__WEBPACK_IMPORTED_MODULE_0__.CustomizationColors.fromJson(jsonObject["colors"])
|
|
79
|
-
result.fonts = _customization_fonts__WEBPACK_IMPORTED_MODULE_1__.CustomizationFonts.fromJson(jsonObject["fonts"])
|
|
80
|
-
result.images = _customization_images__WEBPACK_IMPORTED_MODULE_2__.CustomizationImages.fromJson(jsonObject["images"])
|
|
81
|
-
result._uiCustomizationLayer = jsonObject["uiCustomizationLayer"]
|
|
82
|
-
|
|
83
|
-
return result
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
toJson() {
|
|
87
|
-
return {
|
|
88
|
-
"colors": this.colors.toJson(),
|
|
89
|
-
"fonts": this.fonts.toJson(),
|
|
90
|
-
"images": this.images.toJson(),
|
|
91
|
-
"uiCustomizationLayer": this.uiCustomizationLayer
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
_set(json) {
|
|
96
|
-
if (this === _index__WEBPACK_IMPORTED_MODULE_4__.FaceSDK.instance.customization) {
|
|
97
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_3__.exec)("setCustomization", [json])
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
_apply() { this._set(toJson()) }
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/***/ }),
|
|
105
|
-
|
|
106
|
-
/***/ "./src/customization/customization_colors.js":
|
|
107
|
-
/*!***************************************************!*\
|
|
108
|
-
!*** ./src/customization/customization_colors.js ***!
|
|
109
|
-
\***************************************************/
|
|
110
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
111
|
-
|
|
112
|
-
__webpack_require__.r(__webpack_exports__);
|
|
113
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
114
|
-
/* harmony export */ CustomizationColors: () => (/* binding */ CustomizationColors)
|
|
115
|
-
/* harmony export */ });
|
|
116
|
-
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./src/index.js");
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
class CustomizationColors {
|
|
120
|
-
_onboardingScreenStartButtonBackground
|
|
121
|
-
set onboardingScreenStartButtonBackground(val) {
|
|
122
|
-
this._onboardingScreenStartButtonBackground = val
|
|
123
|
-
this._set({ "100": val })
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
_onboardingScreenStartButtonTitle
|
|
127
|
-
set onboardingScreenStartButtonTitle(val) {
|
|
128
|
-
this._onboardingScreenStartButtonTitle = val
|
|
129
|
-
this._set({ "101": val })
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
_onboardingScreenBackground
|
|
133
|
-
set onboardingScreenBackground(val) {
|
|
134
|
-
this._onboardingScreenBackground = val
|
|
135
|
-
this._set({ "102": val })
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
_onboardingScreenTitleLabelText
|
|
139
|
-
set onboardingScreenTitleLabelText(val) {
|
|
140
|
-
this._onboardingScreenTitleLabelText = val
|
|
141
|
-
this._set({ "103": val })
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
_onboardingScreenSubtitleLabelText
|
|
145
|
-
set onboardingScreenSubtitleLabelText(val) {
|
|
146
|
-
this._onboardingScreenSubtitleLabelText = val
|
|
147
|
-
this._set({ "104": val })
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
_onboardingScreenMessageLabelsText
|
|
151
|
-
set onboardingScreenMessageLabelsText(val) {
|
|
152
|
-
this._onboardingScreenMessageLabelsText = val
|
|
153
|
-
this._set({ "105": val })
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
_cameraScreenStrokeNormal
|
|
157
|
-
set cameraScreenStrokeNormal(val) {
|
|
158
|
-
this._cameraScreenStrokeNormal = val
|
|
159
|
-
this._set({ "200": val })
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
_cameraScreenStrokeActive
|
|
163
|
-
set cameraScreenStrokeActive(val) {
|
|
164
|
-
this._cameraScreenStrokeActive = val
|
|
165
|
-
this._set({ "201": val })
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
_cameraScreenSectorTarget
|
|
169
|
-
set cameraScreenSectorTarget(val) {
|
|
170
|
-
this._cameraScreenSectorTarget = val
|
|
171
|
-
this._set({ "202": val })
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
_cameraScreenSectorActive
|
|
175
|
-
set cameraScreenSectorActive(val) {
|
|
176
|
-
this._cameraScreenSectorActive = val
|
|
177
|
-
this._set({ "203": val })
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
_cameraScreenFrontHintLabelBackground
|
|
181
|
-
set cameraScreenFrontHintLabelBackground(val) {
|
|
182
|
-
this._cameraScreenFrontHintLabelBackground = val
|
|
183
|
-
this._set({ "204": val })
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
_cameraScreenFrontHintLabelText
|
|
187
|
-
set cameraScreenFrontHintLabelText(val) {
|
|
188
|
-
this._cameraScreenFrontHintLabelText = val
|
|
189
|
-
this._set({ "205": val })
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
_cameraScreenBackHintLabelBackground
|
|
193
|
-
set cameraScreenBackHintLabelBackground(val) {
|
|
194
|
-
this._cameraScreenBackHintLabelBackground = val
|
|
195
|
-
this._set({ "206": val })
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
_cameraScreenBackHintLabelText
|
|
199
|
-
set cameraScreenBackHintLabelText(val) {
|
|
200
|
-
this._cameraScreenBackHintLabelText = val
|
|
201
|
-
this._set({ "207": val })
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
_cameraScreenLightToolbarTint
|
|
205
|
-
set cameraScreenLightToolbarTint(val) {
|
|
206
|
-
this._cameraScreenLightToolbarTint = val
|
|
207
|
-
this._set({ "208": val })
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
_cameraScreenDarkToolbarTint
|
|
211
|
-
set cameraScreenDarkToolbarTint(val) {
|
|
212
|
-
this._cameraScreenDarkToolbarTint = val
|
|
213
|
-
this._set({ "209": val })
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
_retryScreenBackground
|
|
217
|
-
set retryScreenBackground(val) {
|
|
218
|
-
this._retryScreenBackground = val
|
|
219
|
-
this._set({ "300": val })
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
_retryScreenRetryButtonBackground
|
|
223
|
-
set retryScreenRetryButtonBackground(val) {
|
|
224
|
-
this._retryScreenRetryButtonBackground = val
|
|
225
|
-
this._set({ "301": val })
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
_retryScreenRetryButtonTitle
|
|
229
|
-
set retryScreenRetryButtonTitle(val) {
|
|
230
|
-
this._retryScreenRetryButtonTitle = val
|
|
231
|
-
this._set({ "302": val })
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
_retryScreenTitleLabelText
|
|
235
|
-
set retryScreenTitleLabelText(val) {
|
|
236
|
-
this._retryScreenTitleLabelText = val
|
|
237
|
-
this._set({ "303": val })
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
_retryScreenSubtitleLabelText
|
|
241
|
-
set retryScreenSubtitleLabelText(val) {
|
|
242
|
-
this._retryScreenSubtitleLabelText = val
|
|
243
|
-
this._set({ "304": val })
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
_retryScreenHintLabelsText
|
|
247
|
-
set retryScreenHintLabelsText(val) {
|
|
248
|
-
this._retryScreenHintLabelsText = val
|
|
249
|
-
this._set({ "305": val })
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
_processingScreenBackground
|
|
253
|
-
set processingScreenBackground(val) {
|
|
254
|
-
this._processingScreenBackground = val
|
|
255
|
-
this._set({ "400": val })
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
_processingScreenProgress
|
|
259
|
-
set processingScreenProgress(val) {
|
|
260
|
-
this._processingScreenProgress = val
|
|
261
|
-
this._set({ "401": val })
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
_processingScreenTitleLabel
|
|
265
|
-
set processingScreenTitleLabel(val) {
|
|
266
|
-
this._processingScreenTitleLabel = val
|
|
267
|
-
this._set({ "402": val })
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
_successScreenBackground
|
|
271
|
-
set successScreenBackground(val) {
|
|
272
|
-
this._successScreenBackground = val
|
|
273
|
-
this._set({ "500": val })
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
static fromJson(jsonObject) {
|
|
277
|
-
var result = new CustomizationColors()
|
|
278
|
-
|
|
279
|
-
result._onboardingScreenStartButtonBackground = jsonObject["100"]
|
|
280
|
-
result._onboardingScreenStartButtonTitle = jsonObject["101"]
|
|
281
|
-
result._onboardingScreenBackground = jsonObject["102"]
|
|
282
|
-
result._onboardingScreenTitleLabelText = jsonObject["103"]
|
|
283
|
-
result._onboardingScreenSubtitleLabelText = jsonObject["104"]
|
|
284
|
-
result._onboardingScreenMessageLabelsText = jsonObject["105"]
|
|
285
|
-
result._cameraScreenStrokeNormal = jsonObject["200"]
|
|
286
|
-
result._cameraScreenStrokeActive = jsonObject["201"]
|
|
287
|
-
result._cameraScreenSectorTarget = jsonObject["202"]
|
|
288
|
-
result._cameraScreenSectorActive = jsonObject["203"]
|
|
289
|
-
result._cameraScreenFrontHintLabelBackground = jsonObject["204"]
|
|
290
|
-
result._cameraScreenFrontHintLabelText = jsonObject["205"]
|
|
291
|
-
result._cameraScreenBackHintLabelBackground = jsonObject["206"]
|
|
292
|
-
result._cameraScreenBackHintLabelText = jsonObject["207"]
|
|
293
|
-
result._cameraScreenLightToolbarTint = jsonObject["208"]
|
|
294
|
-
result._cameraScreenDarkToolbarTint = jsonObject["209"]
|
|
295
|
-
result._retryScreenBackground = jsonObject["300"]
|
|
296
|
-
result._retryScreenRetryButtonBackground = jsonObject["301"]
|
|
297
|
-
result._retryScreenRetryButtonTitle = jsonObject["302"]
|
|
298
|
-
result._retryScreenTitleLabelText = jsonObject["303"]
|
|
299
|
-
result._retryScreenSubtitleLabelText = jsonObject["304"]
|
|
300
|
-
result._retryScreenHintLabelsText = jsonObject["305"]
|
|
301
|
-
result._processingScreenBackground = jsonObject["400"]
|
|
302
|
-
result._processingScreenProgress = jsonObject["401"]
|
|
303
|
-
result._processingScreenTitleLabel = jsonObject["402"]
|
|
304
|
-
result._successScreenBackground = jsonObject["500"]
|
|
305
|
-
|
|
306
|
-
return result
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
toJson() {
|
|
310
|
-
return {
|
|
311
|
-
"100": this._onboardingScreenStartButtonBackground,
|
|
312
|
-
"101": this._onboardingScreenStartButtonTitle,
|
|
313
|
-
"102": this._onboardingScreenBackground,
|
|
314
|
-
"103": this._onboardingScreenTitleLabelText,
|
|
315
|
-
"104": this._onboardingScreenSubtitleLabelText,
|
|
316
|
-
"105": this._onboardingScreenMessageLabelsText,
|
|
317
|
-
"200": this._cameraScreenStrokeNormal,
|
|
318
|
-
"201": this._cameraScreenStrokeActive,
|
|
319
|
-
"202": this._cameraScreenSectorTarget,
|
|
320
|
-
"203": this._cameraScreenSectorActive,
|
|
321
|
-
"204": this._cameraScreenFrontHintLabelBackground,
|
|
322
|
-
"205": this._cameraScreenFrontHintLabelText,
|
|
323
|
-
"206": this._cameraScreenBackHintLabelBackground,
|
|
324
|
-
"207": this._cameraScreenBackHintLabelText,
|
|
325
|
-
"208": this._cameraScreenLightToolbarTint,
|
|
326
|
-
"209": this._cameraScreenDarkToolbarTint,
|
|
327
|
-
"300": this._retryScreenBackground,
|
|
328
|
-
"301": this._retryScreenRetryButtonBackground,
|
|
329
|
-
"302": this._retryScreenRetryButtonTitle,
|
|
330
|
-
"303": this._retryScreenTitleLabelText,
|
|
331
|
-
"304": this._retryScreenSubtitleLabelText,
|
|
332
|
-
"305": this._retryScreenHintLabelsText,
|
|
333
|
-
"400": this._processingScreenBackground,
|
|
334
|
-
"401": this._processingScreenProgress,
|
|
335
|
-
"402": this._processingScreenTitleLabel,
|
|
336
|
-
"500": this._successScreenBackground,
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
_set(json) {
|
|
341
|
-
var parentJson = { "colors": json }
|
|
342
|
-
var parent = _index__WEBPACK_IMPORTED_MODULE_0__.FaceSDK.instance.customization
|
|
343
|
-
if (this === parent.colors) parent._set(parentJson)
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
_apply() {
|
|
347
|
-
this._set(this.toJson())
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
/***/ }),
|
|
352
|
-
|
|
353
|
-
/***/ "./src/customization/customization_fonts.js":
|
|
354
|
-
/*!**************************************************!*\
|
|
355
|
-
!*** ./src/customization/customization_fonts.js ***!
|
|
356
|
-
\**************************************************/
|
|
357
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
358
|
-
|
|
359
|
-
__webpack_require__.r(__webpack_exports__);
|
|
360
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
361
|
-
/* harmony export */ CustomizationFonts: () => (/* binding */ CustomizationFonts)
|
|
362
|
-
/* harmony export */ });
|
|
363
|
-
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./src/index.js");
|
|
364
|
-
/* harmony import */ var _font__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./font */ "./src/customization/font.js");
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
class CustomizationFonts {
|
|
369
|
-
_onboardingScreenStartButton
|
|
370
|
-
set onboardingScreenStartButton(val) {
|
|
371
|
-
this._onboardingScreenStartButton = val
|
|
372
|
-
this._set({ "100": val })
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
_onboardingScreenTitleLabel
|
|
376
|
-
set onboardingScreenTitleLabel(val) {
|
|
377
|
-
this._onboardingScreenTitleLabel = val
|
|
378
|
-
this._set({ "101": val })
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
_onboardingScreenSubtitleLabel
|
|
382
|
-
set onboardingScreenSubtitleLabel(val) {
|
|
383
|
-
this._onboardingScreenSubtitleLabel = val
|
|
384
|
-
this._set({ "102": val })
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
_onboardingScreenMessageLabels
|
|
388
|
-
set onboardingScreenMessageLabels(val) {
|
|
389
|
-
this._onboardingScreenMessageLabels = val
|
|
390
|
-
this._set({ "103": val })
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
_cameraScreenHintLabel
|
|
394
|
-
set cameraScreenHintLabel(val) {
|
|
395
|
-
this._cameraScreenHintLabel = val
|
|
396
|
-
this._set({ "200": val })
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
_retryScreenRetryButton
|
|
400
|
-
set retryScreenRetryButton(val) {
|
|
401
|
-
this._retryScreenRetryButton = val
|
|
402
|
-
this._set({ "300": val })
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
_retryScreenTitleLabel
|
|
406
|
-
set retryScreenTitleLabel(val) {
|
|
407
|
-
this._retryScreenTitleLabel = val
|
|
408
|
-
this._set({ "301": val })
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
_retryScreenSubtitleLabel
|
|
412
|
-
set retryScreenSubtitleLabel(val) {
|
|
413
|
-
this._retryScreenSubtitleLabel = val
|
|
414
|
-
this._set({ "302": val })
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
_retryScreenHintLabels
|
|
418
|
-
set retryScreenHintLabels(val) {
|
|
419
|
-
this._retryScreenHintLabels = val
|
|
420
|
-
this._set({ "303": val })
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
_processingScreenLabel
|
|
424
|
-
set processingScreenLabel(val) {
|
|
425
|
-
this._processingScreenLabel = val
|
|
426
|
-
this._set({ "400": val })
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
static fromJson(jsonObject) {
|
|
430
|
-
var result = new CustomizationFonts()
|
|
431
|
-
|
|
432
|
-
result._onboardingScreenStartButton = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["100"])
|
|
433
|
-
result._onboardingScreenTitleLabel = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["101"])
|
|
434
|
-
result._onboardingScreenSubtitleLabel = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["102"])
|
|
435
|
-
result._onboardingScreenMessageLabels = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["103"])
|
|
436
|
-
result._cameraScreenHintLabel = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["200"])
|
|
437
|
-
result._retryScreenRetryButton = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["300"])
|
|
438
|
-
result._retryScreenTitleLabel = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["301"])
|
|
439
|
-
result._retryScreenSubtitleLabel = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["302"])
|
|
440
|
-
result._retryScreenHintLabels = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["303"])
|
|
441
|
-
result._processingScreenLabel = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["400"])
|
|
442
|
-
|
|
443
|
-
return result
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
toJson() {
|
|
447
|
-
return {
|
|
448
|
-
"100": this._onboardingScreenStartButton,
|
|
449
|
-
"101": this._onboardingScreenTitleLabel,
|
|
450
|
-
"102": this._onboardingScreenSubtitleLabel,
|
|
451
|
-
"103": this._onboardingScreenMessageLabels,
|
|
452
|
-
"200": this._cameraScreenHintLabel,
|
|
453
|
-
"300": this._retryScreenRetryButton,
|
|
454
|
-
"301": this._retryScreenTitleLabel,
|
|
455
|
-
"302": this._retryScreenSubtitleLabel,
|
|
456
|
-
"303": this._retryScreenHintLabels,
|
|
457
|
-
"400": this._processingScreenLabel,
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
_set(json) {
|
|
462
|
-
var parentJson = { "fonts": json }
|
|
463
|
-
var parent = _index__WEBPACK_IMPORTED_MODULE_0__.FaceSDK.instance.customization
|
|
464
|
-
if (this === parent.fonts) parent._set(parentJson)
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
_apply() {
|
|
468
|
-
this._set(toJson())
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
/***/ }),
|
|
473
|
-
|
|
474
|
-
/***/ "./src/customization/customization_images.js":
|
|
475
|
-
/*!***************************************************!*\
|
|
476
|
-
!*** ./src/customization/customization_images.js ***!
|
|
477
|
-
\***************************************************/
|
|
478
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
479
|
-
|
|
480
|
-
__webpack_require__.r(__webpack_exports__);
|
|
481
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
482
|
-
/* harmony export */ CustomizationImages: () => (/* binding */ CustomizationImages)
|
|
483
|
-
/* harmony export */ });
|
|
484
|
-
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./src/index.js");
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
class CustomizationImages {
|
|
488
|
-
_onboardingScreenCloseButton
|
|
489
|
-
set onboardingScreenCloseButton(val) {
|
|
490
|
-
this._onboardingScreenCloseButton = val
|
|
491
|
-
this._set({ "100": val })
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
_onboardingScreenIllumination
|
|
495
|
-
set onboardingScreenIllumination(val) {
|
|
496
|
-
this._onboardingScreenIllumination = val
|
|
497
|
-
this._set({ "101": val })
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
_onboardingScreenAccessories
|
|
501
|
-
set onboardingScreenAccessories(val) {
|
|
502
|
-
this._onboardingScreenAccessories = val
|
|
503
|
-
this._set({ "102": val })
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
_onboardingScreenCameraLevel
|
|
507
|
-
set onboardingScreenCameraLevel(val) {
|
|
508
|
-
this._onboardingScreenCameraLevel = val
|
|
509
|
-
this._set({ "103": val })
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
_cameraScreenCloseButton
|
|
513
|
-
set cameraScreenCloseButton(val) {
|
|
514
|
-
this._cameraScreenCloseButton = val
|
|
515
|
-
this._set({ "200": val })
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
_cameraScreenLightOnButton
|
|
519
|
-
set cameraScreenLightOnButton(val) {
|
|
520
|
-
this._cameraScreenLightOnButton = val
|
|
521
|
-
this._set({ "201": val })
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
_cameraScreenLightOffButton
|
|
525
|
-
set cameraScreenLightOffButton(val) {
|
|
526
|
-
this._cameraScreenLightOffButton = val
|
|
527
|
-
this._set({ "202": val })
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
_cameraScreenSwitchButton
|
|
531
|
-
set cameraScreenSwitchButton(val) {
|
|
532
|
-
this._cameraScreenSwitchButton = val
|
|
533
|
-
this._set({ "203": val })
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
_retryScreenCloseButton
|
|
537
|
-
set retryScreenCloseButton(val) {
|
|
538
|
-
this._retryScreenCloseButton = val
|
|
539
|
-
this._set({ "300": val })
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
_retryScreenHintEnvironment
|
|
543
|
-
set retryScreenHintEnvironment(val) {
|
|
544
|
-
this._retryScreenHintEnvironment = val
|
|
545
|
-
this._set({ "301": val })
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
_retryScreenHintSubject
|
|
549
|
-
set retryScreenHintSubject(val) {
|
|
550
|
-
this._retryScreenHintSubject = val
|
|
551
|
-
this._set({ "302": val })
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
_processingScreenCloseButton
|
|
555
|
-
set processingScreenCloseButton(val) {
|
|
556
|
-
this._processingScreenCloseButton = val
|
|
557
|
-
this._set({ "400": val })
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
_successScreenImage
|
|
561
|
-
set successScreenImage(val) {
|
|
562
|
-
this._successScreenImage = val
|
|
563
|
-
this._set({ "500": val })
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
static fromJson(jsonObject) {
|
|
567
|
-
var result = new CustomizationImages()
|
|
568
|
-
|
|
569
|
-
result._onboardingScreenCloseButton = jsonObject["100"]
|
|
570
|
-
result._onboardingScreenIllumination = jsonObject["101"]
|
|
571
|
-
result._onboardingScreenAccessories = jsonObject["102"]
|
|
572
|
-
result._onboardingScreenCameraLevel = jsonObject["103"]
|
|
573
|
-
result._cameraScreenCloseButton = jsonObject["200"]
|
|
574
|
-
result._cameraScreenLightOnButton = jsonObject["201"]
|
|
575
|
-
result._cameraScreenLightOffButton = jsonObject["202"]
|
|
576
|
-
result._cameraScreenSwitchButton = jsonObject["203"]
|
|
577
|
-
result._retryScreenCloseButton = jsonObject["300"]
|
|
578
|
-
result._retryScreenHintEnvironment = jsonObject["301"]
|
|
579
|
-
result._retryScreenHintSubject = jsonObject["302"]
|
|
580
|
-
result._processingScreenCloseButton = jsonObject["400"]
|
|
581
|
-
result._successScreenImage = jsonObject["500"]
|
|
582
|
-
|
|
583
|
-
return result
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
toJson() {
|
|
587
|
-
return {
|
|
588
|
-
"100": this._onboardingScreenCloseButton,
|
|
589
|
-
"101": this._onboardingScreenIllumination,
|
|
590
|
-
"102": this._onboardingScreenAccessories,
|
|
591
|
-
"103": this._onboardingScreenCameraLevel,
|
|
592
|
-
"200": this._cameraScreenCloseButton,
|
|
593
|
-
"201": this._cameraScreenLightOnButton,
|
|
594
|
-
"202": this._cameraScreenLightOffButton,
|
|
595
|
-
"203": this._cameraScreenSwitchButton,
|
|
596
|
-
"300": this._retryScreenCloseButton,
|
|
597
|
-
"301": this._retryScreenHintEnvironment,
|
|
598
|
-
"302": this._retryScreenHintSubject,
|
|
599
|
-
"400": this._processingScreenCloseButton,
|
|
600
|
-
"500": this._successScreenImage,
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
_set(json) {
|
|
605
|
-
var parentJson = { "images": json }
|
|
606
|
-
var parent = _index__WEBPACK_IMPORTED_MODULE_0__.FaceSDK.instance.customization
|
|
607
|
-
if (this === parent.images) parent._set(parentJson)
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
_apply() {
|
|
611
|
-
this._set(toJson())
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
/***/ }),
|
|
617
|
-
|
|
618
|
-
/***/ "./src/customization/font.js":
|
|
619
|
-
/*!***********************************!*\
|
|
620
|
-
!*** ./src/customization/font.js ***!
|
|
621
|
-
\***********************************/
|
|
622
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
623
|
-
|
|
624
|
-
__webpack_require__.r(__webpack_exports__);
|
|
625
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
626
|
-
/* harmony export */ Font: () => (/* binding */ Font),
|
|
627
|
-
/* harmony export */ FontStyle: () => (/* binding */ FontStyle)
|
|
628
|
-
/* harmony export */ });
|
|
629
|
-
class Font {
|
|
630
|
-
name
|
|
631
|
-
size
|
|
632
|
-
style
|
|
633
|
-
|
|
634
|
-
constructor(name, params) {
|
|
635
|
-
this.name = name
|
|
636
|
-
this.size = params?.size
|
|
637
|
-
this.style = params?.style
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
static fromJson(jsonObject) {
|
|
641
|
-
if (jsonObject == null) return null
|
|
642
|
-
const result = new Font()
|
|
643
|
-
|
|
644
|
-
result.name = jsonObject["name"]
|
|
645
|
-
result.size = jsonObject["size"]
|
|
646
|
-
result.style = jsonObject["style"]
|
|
647
|
-
|
|
648
|
-
return result
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
const FontStyle = {
|
|
653
|
-
NORMAL: 0,
|
|
654
|
-
BOLD: 1,
|
|
655
|
-
ITALIC: 2,
|
|
656
|
-
BOLD_ITALIC: 3,
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
/***/ }),
|
|
661
|
-
|
|
662
|
-
/***/ "./src/customization/screen_orientation.js":
|
|
663
|
-
/*!*************************************************!*\
|
|
664
|
-
!*** ./src/customization/screen_orientation.js ***!
|
|
665
|
-
\*************************************************/
|
|
666
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
667
|
-
|
|
668
|
-
__webpack_require__.r(__webpack_exports__);
|
|
669
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
670
|
-
/* harmony export */ ScreenOrientation: () => (/* binding */ ScreenOrientation)
|
|
671
|
-
/* harmony export */ });
|
|
672
|
-
const ScreenOrientation = {
|
|
673
|
-
PORTRAIT: 0,
|
|
674
|
-
LANDSCAPE: 1,
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
/***/ }),
|
|
678
|
-
|
|
679
|
-
/***/ "./src/detect_faces/detect_face_result.js":
|
|
680
|
-
/*!************************************************!*\
|
|
681
|
-
!*** ./src/detect_faces/detect_face_result.js ***!
|
|
682
|
-
\************************************************/
|
|
683
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
684
|
-
|
|
685
|
-
__webpack_require__.r(__webpack_exports__);
|
|
686
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
687
|
-
/* harmony export */ DetectFaceResult: () => (/* binding */ DetectFaceResult)
|
|
688
|
-
/* harmony export */ });
|
|
689
|
-
/* harmony import */ var _detect_faces_attribute_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./detect_faces_attribute_result */ "./src/detect_faces/detect_faces_attribute_result.js");
|
|
690
|
-
/* harmony import */ var _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../image_quality/image_quality_result */ "./src/image_quality/image_quality_result.js");
|
|
691
|
-
/* harmony import */ var _image_params_rect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../image_params/rect */ "./src/image_params/rect.js");
|
|
692
|
-
/* harmony import */ var _image_params_point__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../image_params/point */ "./src/image_params/point.js");
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
class DetectFaceResult {
|
|
699
|
-
quality
|
|
700
|
-
attributes
|
|
701
|
-
crop
|
|
702
|
-
faceRect
|
|
703
|
-
originalRect
|
|
704
|
-
landmarks
|
|
705
|
-
isQualityCompliant
|
|
706
|
-
|
|
707
|
-
static fromJson(jsonObject) {
|
|
708
|
-
if (jsonObject == null) return null
|
|
709
|
-
const result = new DetectFaceResult()
|
|
710
|
-
|
|
711
|
-
result.quality = []
|
|
712
|
-
if (jsonObject["quality"] != null)
|
|
713
|
-
for (const item of jsonObject["quality"])
|
|
714
|
-
result.quality.push(_image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_1__.ImageQualityResult.fromJson(item))
|
|
715
|
-
result.attributes = []
|
|
716
|
-
if (jsonObject["attributes"] != null)
|
|
717
|
-
for (const item of jsonObject["attributes"])
|
|
718
|
-
result.attributes.push(_detect_faces_attribute_result__WEBPACK_IMPORTED_MODULE_0__.DetectFacesAttributeResult.fromJson(item))
|
|
719
|
-
result.crop = jsonObject["crop"]
|
|
720
|
-
result.faceRect = _image_params_rect__WEBPACK_IMPORTED_MODULE_2__.Rect.fromJson(jsonObject["faceRect"])
|
|
721
|
-
result.originalRect = _image_params_rect__WEBPACK_IMPORTED_MODULE_2__.Rect.fromJson(jsonObject["originalRect"])
|
|
722
|
-
result.landmarks = []
|
|
723
|
-
if (jsonObject["landmarks"] != null)
|
|
724
|
-
for (const item of jsonObject["landmarks"])
|
|
725
|
-
result.landmarks.push(_image_params_point__WEBPACK_IMPORTED_MODULE_3__.Point.fromJson(item))
|
|
726
|
-
result.isQualityCompliant = jsonObject["isQualityCompliant"]
|
|
727
|
-
|
|
728
|
-
return result
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
/***/ }),
|
|
733
|
-
|
|
734
|
-
/***/ "./src/detect_faces/detect_faces_attribute.js":
|
|
735
|
-
/*!****************************************************!*\
|
|
736
|
-
!*** ./src/detect_faces/detect_faces_attribute.js ***!
|
|
737
|
-
\****************************************************/
|
|
738
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
739
|
-
|
|
740
|
-
__webpack_require__.r(__webpack_exports__);
|
|
741
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
742
|
-
/* harmony export */ DetectFacesAttribute: () => (/* binding */ DetectFacesAttribute)
|
|
743
|
-
/* harmony export */ });
|
|
744
|
-
const DetectFacesAttribute = {
|
|
745
|
-
AGE: "Age",
|
|
746
|
-
EYE_RIGHT: "EyeRight",
|
|
747
|
-
EYE_LEFT: "EyeLeft",
|
|
748
|
-
EMOTION: "Emotion",
|
|
749
|
-
SMILE: "Smile",
|
|
750
|
-
GLASSES: "Glasses",
|
|
751
|
-
HEAD_COVERING: "HeadCovering",
|
|
752
|
-
FOREHEAD_COVERING: "ForeheadCovering",
|
|
753
|
-
MOUTH: "Mouth",
|
|
754
|
-
MEDICAL_MASK: "MedicalMask",
|
|
755
|
-
OCCLUSION: "Occlusion",
|
|
756
|
-
STRONG_MAKEUP: "StrongMakeup",
|
|
757
|
-
HEADPHONES: "Headphones",
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
/***/ }),
|
|
761
|
-
|
|
762
|
-
/***/ "./src/detect_faces/detect_faces_attribute_result.js":
|
|
763
|
-
/*!***********************************************************!*\
|
|
764
|
-
!*** ./src/detect_faces/detect_faces_attribute_result.js ***!
|
|
765
|
-
\***********************************************************/
|
|
766
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
767
|
-
|
|
768
|
-
__webpack_require__.r(__webpack_exports__);
|
|
769
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
770
|
-
/* harmony export */ DetectFacesAttributeResult: () => (/* binding */ DetectFacesAttributeResult)
|
|
771
|
-
/* harmony export */ });
|
|
772
|
-
/* harmony import */ var _image_quality_image_quality_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../image_quality/image_quality_range */ "./src/image_quality/image_quality_range.js");
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
class DetectFacesAttributeResult {
|
|
776
|
-
attribute
|
|
777
|
-
value
|
|
778
|
-
range
|
|
779
|
-
confidence
|
|
780
|
-
|
|
781
|
-
static fromJson(jsonObject) {
|
|
782
|
-
if (jsonObject == null) return null
|
|
783
|
-
const result = new DetectFacesAttributeResult()
|
|
784
|
-
|
|
785
|
-
result.attribute = jsonObject["attribute"]
|
|
786
|
-
result.value = jsonObject["value"]
|
|
787
|
-
result.range = _image_quality_image_quality_range__WEBPACK_IMPORTED_MODULE_0__.ImageQualityRange.fromJson(jsonObject["range"])
|
|
788
|
-
result.confidence = jsonObject["confidence"]
|
|
789
|
-
|
|
790
|
-
return result
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
/***/ }),
|
|
795
|
-
|
|
796
|
-
/***/ "./src/detect_faces/detect_faces_backend_exception.js":
|
|
797
|
-
/*!************************************************************!*\
|
|
798
|
-
!*** ./src/detect_faces/detect_faces_backend_exception.js ***!
|
|
799
|
-
\************************************************************/
|
|
800
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
801
|
-
|
|
802
|
-
__webpack_require__.r(__webpack_exports__);
|
|
803
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
804
|
-
/* harmony export */ DetectFacesBackendErrorCode: () => (/* binding */ DetectFacesBackendErrorCode),
|
|
805
|
-
/* harmony export */ DetectFacesBackendException: () => (/* binding */ DetectFacesBackendException)
|
|
806
|
-
/* harmony export */ });
|
|
807
|
-
class DetectFacesBackendException {
|
|
808
|
-
code
|
|
809
|
-
message
|
|
810
|
-
|
|
811
|
-
static fromJson(jsonObject) {
|
|
812
|
-
if (jsonObject == null) return null
|
|
813
|
-
const result = new DetectFacesBackendException()
|
|
814
|
-
|
|
815
|
-
result.code = jsonObject["code"]
|
|
816
|
-
result.message = jsonObject["message"] ?? ""
|
|
817
|
-
|
|
818
|
-
return result
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
const DetectFacesBackendErrorCode = {
|
|
823
|
-
FR_FACE_NOT_DETECTED: 2,
|
|
824
|
-
FACER_NO_LICENSE: 200,
|
|
825
|
-
FACER_IS_NOT_INITIALIZED: 201,
|
|
826
|
-
FACER_COMMAND_IS_NOT_SUPPORTED: 202,
|
|
827
|
-
FACER_COMMAND_PARAMS_READ_ERROR: 203,
|
|
828
|
-
UNDEFINED: -1,
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
/***/ }),
|
|
832
|
-
|
|
833
|
-
/***/ "./src/detect_faces/detect_faces_config.js":
|
|
834
|
-
/*!*************************************************!*\
|
|
835
|
-
!*** ./src/detect_faces/detect_faces_config.js ***!
|
|
836
|
-
\*************************************************/
|
|
837
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
838
|
-
|
|
839
|
-
__webpack_require__.r(__webpack_exports__);
|
|
840
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
841
|
-
/* harmony export */ DetectFacesConfig: () => (/* binding */ DetectFacesConfig)
|
|
842
|
-
/* harmony export */ });
|
|
843
|
-
class DetectFacesConfig {
|
|
844
|
-
attributes
|
|
845
|
-
customQuality
|
|
846
|
-
outputImageParams
|
|
847
|
-
onlyCentralFace
|
|
848
|
-
|
|
849
|
-
constructor(params) {
|
|
850
|
-
this.onlyCentralFace = false
|
|
851
|
-
this.attributes = params?.attributes
|
|
852
|
-
this.customQuality = params?.customQuality
|
|
853
|
-
this.outputImageParams = params?.outputImageParams
|
|
854
|
-
this.onlyCentralFace = params?.onlyCentralFace ?? this.onlyCentralFace
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
/***/ }),
|
|
859
|
-
|
|
860
|
-
/***/ "./src/detect_faces/detect_faces_exception.js":
|
|
861
|
-
/*!****************************************************!*\
|
|
862
|
-
!*** ./src/detect_faces/detect_faces_exception.js ***!
|
|
863
|
-
\****************************************************/
|
|
864
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
865
|
-
|
|
866
|
-
__webpack_require__.r(__webpack_exports__);
|
|
867
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
868
|
-
/* harmony export */ DetectFacesErrorCode: () => (/* binding */ DetectFacesErrorCode),
|
|
869
|
-
/* harmony export */ DetectFacesException: () => (/* binding */ DetectFacesException)
|
|
870
|
-
/* harmony export */ });
|
|
871
|
-
/* harmony import */ var _detect_faces_backend_exception__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./detect_faces_backend_exception */ "./src/detect_faces/detect_faces_backend_exception.js");
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
class DetectFacesException {
|
|
875
|
-
code
|
|
876
|
-
message
|
|
877
|
-
underlyingError
|
|
878
|
-
|
|
879
|
-
static fromJson(jsonObject) {
|
|
880
|
-
if (jsonObject == null) return null
|
|
881
|
-
const result = new DetectFacesException()
|
|
882
|
-
|
|
883
|
-
result.code = jsonObject["code"]
|
|
884
|
-
result.message = jsonObject["message"] ?? ""
|
|
885
|
-
result.underlyingError = _detect_faces_backend_exception__WEBPACK_IMPORTED_MODULE_0__.DetectFacesBackendException.fromJson(jsonObject["underlyingError"])
|
|
886
|
-
|
|
887
|
-
return result
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
const DetectFacesErrorCode = {
|
|
892
|
-
IMAGE_EMPTY: 0,
|
|
893
|
-
FR_FACE_NOT_DETECTED: 1,
|
|
894
|
-
FACER_NO_LICENSE: 2,
|
|
895
|
-
FACER_IS_NOT_INITIALIZED: 3,
|
|
896
|
-
FACER_COMMAND_IS_NOT_SUPPORTED: 4,
|
|
897
|
-
FACER_COMMAND_PARAMS_READ_ERROR: 5,
|
|
898
|
-
PROCESSING_FAILED: 6,
|
|
899
|
-
REQUEST_FAILED: 7,
|
|
900
|
-
API_CALL_FAILED: 8,
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
/***/ }),
|
|
904
|
-
|
|
905
|
-
/***/ "./src/detect_faces/detect_faces_request.js":
|
|
906
|
-
/*!**************************************************!*\
|
|
907
|
-
!*** ./src/detect_faces/detect_faces_request.js ***!
|
|
908
|
-
\**************************************************/
|
|
909
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
910
|
-
|
|
911
|
-
__webpack_require__.r(__webpack_exports__);
|
|
912
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
913
|
-
/* harmony export */ DetectFacesRequest: () => (/* binding */ DetectFacesRequest)
|
|
914
|
-
/* harmony export */ });
|
|
915
|
-
class DetectFacesRequest {
|
|
916
|
-
image
|
|
917
|
-
configuration
|
|
918
|
-
tag
|
|
919
|
-
|
|
920
|
-
constructor(image, configuration, params) {
|
|
921
|
-
this.image = image
|
|
922
|
-
this.configuration = configuration
|
|
923
|
-
this.tag = params?.tag
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
static qualityFull(image) {
|
|
927
|
-
const result = new DetectFacesRequest()
|
|
928
|
-
result.image = image
|
|
929
|
-
result.scenario = DetectFacesScenario.QUALITY_FULL
|
|
930
|
-
return result
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
static qualityICAO(image) {
|
|
934
|
-
const result = new DetectFacesRequest()
|
|
935
|
-
result.image = image
|
|
936
|
-
result.scenario = DetectFacesScenario.QUALITY_ICAO
|
|
937
|
-
return result
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
static qualityVisaSchengen(image) {
|
|
941
|
-
const result = new DetectFacesRequest()
|
|
942
|
-
result.image = image
|
|
943
|
-
result.scenario = DetectFacesScenario.QUALITY_VISA_SCHENGEN
|
|
944
|
-
return result
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
static qualityVisaUSA(image) {
|
|
948
|
-
const result = new DetectFacesRequest()
|
|
949
|
-
result.image = image
|
|
950
|
-
result.scenario = DetectFacesScenario.QUALITY_VISA_USA
|
|
951
|
-
return result
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
static cropCentralFace(image) {
|
|
955
|
-
const result = new DetectFacesRequest()
|
|
956
|
-
result.image = image
|
|
957
|
-
result.scenario = DetectFacesScenario.CROP_CENTRAL_FACE
|
|
958
|
-
return result
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
static cropAllFaces(image) {
|
|
962
|
-
const result = new DetectFacesRequest()
|
|
963
|
-
result.image = image
|
|
964
|
-
result.scenario = DetectFacesScenario.CROP_ALL_FACES
|
|
965
|
-
return result
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
static thumbnail(image) {
|
|
969
|
-
const result = new DetectFacesRequest()
|
|
970
|
-
result.image = image
|
|
971
|
-
result.scenario = DetectFacesScenario.THUMBNAIL
|
|
972
|
-
return result
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
static allAttributes(image) {
|
|
976
|
-
const result = new DetectFacesRequest()
|
|
977
|
-
result.image = image
|
|
978
|
-
result.scenario = DetectFacesScenario.ATTRIBUTES_ALL
|
|
979
|
-
return result
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
/***/ }),
|
|
984
|
-
|
|
985
|
-
/***/ "./src/detect_faces/detect_faces_response.js":
|
|
986
|
-
/*!***************************************************!*\
|
|
987
|
-
!*** ./src/detect_faces/detect_faces_response.js ***!
|
|
988
|
-
\***************************************************/
|
|
989
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
990
|
-
|
|
991
|
-
__webpack_require__.r(__webpack_exports__);
|
|
992
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
993
|
-
/* harmony export */ DetectFacesResponse: () => (/* binding */ DetectFacesResponse)
|
|
994
|
-
/* harmony export */ });
|
|
995
|
-
/* harmony import */ var _detect_face_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./detect_face_result */ "./src/detect_faces/detect_face_result.js");
|
|
996
|
-
/* harmony import */ var _detect_faces_exception__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./detect_faces_exception */ "./src/detect_faces/detect_faces_exception.js");
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
class DetectFacesResponse {
|
|
1001
|
-
detection
|
|
1002
|
-
scenario
|
|
1003
|
-
error
|
|
1004
|
-
allDetections
|
|
1005
|
-
|
|
1006
|
-
static fromJson(jsonObject) {
|
|
1007
|
-
if (jsonObject == null) return null
|
|
1008
|
-
const result = new DetectFacesResponse()
|
|
1009
|
-
|
|
1010
|
-
result.detection = _detect_face_result__WEBPACK_IMPORTED_MODULE_0__.DetectFaceResult.fromJson(jsonObject["detection"])
|
|
1011
|
-
result.scenario = jsonObject["scenario"]
|
|
1012
|
-
result.error = _detect_faces_exception__WEBPACK_IMPORTED_MODULE_1__.DetectFacesException.fromJson(jsonObject["error"])
|
|
1013
|
-
result.allDetections = []
|
|
1014
|
-
if (jsonObject["allDetections"] != null)
|
|
1015
|
-
for (const item of jsonObject["allDetections"])
|
|
1016
|
-
result.allDetections.push(_detect_face_result__WEBPACK_IMPORTED_MODULE_0__.DetectFaceResult.fromJson(item))
|
|
1017
|
-
|
|
1018
|
-
return result
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
/***/ }),
|
|
1023
|
-
|
|
1024
|
-
/***/ "./src/detect_faces/detect_faces_scenario.js":
|
|
1025
|
-
/*!***************************************************!*\
|
|
1026
|
-
!*** ./src/detect_faces/detect_faces_scenario.js ***!
|
|
1027
|
-
\***************************************************/
|
|
1028
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1029
|
-
|
|
1030
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1031
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1032
|
-
/* harmony export */ DetectFacesScenario: () => (/* binding */ DetectFacesScenario)
|
|
1033
|
-
/* harmony export */ });
|
|
1034
|
-
const DetectFacesScenario = {
|
|
1035
|
-
CROP_CENTRAL_FACE: "CropCentralFace",
|
|
1036
|
-
CROP_ALL_FACES: "CropAllFaces",
|
|
1037
|
-
THUMBNAIL: "Thumbnail",
|
|
1038
|
-
ATTRIBUTES_ALL: "AttributesAll",
|
|
1039
|
-
QUALITY_FULL: "QualityFull",
|
|
1040
|
-
QUALITY_ICAO: "QualityICAO",
|
|
1041
|
-
QUALITY_VISA_SCHENGEN: "QualityVisaSchengen",
|
|
1042
|
-
QUALITY_VISA_USA: "QualityVisaUSA",
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
/***/ }),
|
|
1046
|
-
|
|
1047
|
-
/***/ "./src/face_capture/face_capture_config.js":
|
|
1048
|
-
/*!*************************************************!*\
|
|
1049
|
-
!*** ./src/face_capture/face_capture_config.js ***!
|
|
1050
|
-
\*************************************************/
|
|
1051
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1052
|
-
|
|
1053
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1054
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1055
|
-
/* harmony export */ FaceCaptureConfig: () => (/* binding */ FaceCaptureConfig)
|
|
1056
|
-
/* harmony export */ });
|
|
1057
|
-
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../customization/camera_position */ "./src/customization/camera_position.js");
|
|
1058
|
-
/* harmony import */ var _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../customization/screen_orientation */ "./src/customization/screen_orientation.js");
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
class FaceCaptureConfig {
|
|
1063
|
-
copyright
|
|
1064
|
-
cameraSwitchEnabled
|
|
1065
|
-
closeButtonEnabled
|
|
1066
|
-
torchButtonEnabled
|
|
1067
|
-
vibrateOnSteps
|
|
1068
|
-
cameraPositionIOS
|
|
1069
|
-
screenOrientation
|
|
1070
|
-
cameraPositionAndroid
|
|
1071
|
-
timeout
|
|
1072
|
-
holdStillDuration
|
|
1073
|
-
|
|
1074
|
-
constructor(params) {
|
|
1075
|
-
this.copyright = params?.copyright ?? true
|
|
1076
|
-
this.cameraSwitchEnabled = params?.cameraSwitchEnabled ?? false
|
|
1077
|
-
this.closeButtonEnabled = params?.closeButtonEnabled ?? true
|
|
1078
|
-
this.torchButtonEnabled = params?.torchButtonEnabled ?? true
|
|
1079
|
-
this.vibrateOnSteps = params?.vibrateOnSteps ?? true
|
|
1080
|
-
this.cameraPositionIOS = params?.cameraPositionIOS ?? _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__.CameraPosition.FRONT
|
|
1081
|
-
this.screenOrientation = params?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
1082
|
-
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
1083
|
-
this.timeout = params?.timeout
|
|
1084
|
-
this.holdStillDuration = params?.holdStillDuration
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
/***/ }),
|
|
1089
|
-
|
|
1090
|
-
/***/ "./src/face_capture/face_capture_exception.js":
|
|
1091
|
-
/*!****************************************************!*\
|
|
1092
|
-
!*** ./src/face_capture/face_capture_exception.js ***!
|
|
1093
|
-
\****************************************************/
|
|
1094
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1095
|
-
|
|
1096
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1097
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1098
|
-
/* harmony export */ FaceCaptureErrorCode: () => (/* binding */ FaceCaptureErrorCode),
|
|
1099
|
-
/* harmony export */ FaceCaptureException: () => (/* binding */ FaceCaptureException)
|
|
1100
|
-
/* harmony export */ });
|
|
1101
|
-
class FaceCaptureException {
|
|
1102
|
-
code
|
|
1103
|
-
message
|
|
1104
|
-
|
|
1105
|
-
static fromJson(jsonObject) {
|
|
1106
|
-
if (jsonObject == null) return null
|
|
1107
|
-
const result = new FaceCaptureException()
|
|
1108
|
-
|
|
1109
|
-
result.code = jsonObject["code"]
|
|
1110
|
-
result.message = jsonObject["message"] ?? ""
|
|
1111
|
-
|
|
1112
|
-
return result
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
const FaceCaptureErrorCode = {
|
|
1117
|
-
CANCEL: 0,
|
|
1118
|
-
TIMEOUT: 1,
|
|
1119
|
-
NOT_INITIALIZED: 2,
|
|
1120
|
-
SESSION_START_FAILED: 3,
|
|
1121
|
-
CAMERA_NOT_AVAILABLE: 4,
|
|
1122
|
-
CAMERA_NO_PERMISSION: 5,
|
|
1123
|
-
IN_PROGRESS_ALREADY: 6,
|
|
1124
|
-
CONTEXT_IS_NULL: 7,
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
/***/ }),
|
|
1128
|
-
|
|
1129
|
-
/***/ "./src/face_capture/face_capture_image.js":
|
|
1130
|
-
/*!************************************************!*\
|
|
1131
|
-
!*** ./src/face_capture/face_capture_image.js ***!
|
|
1132
|
-
\************************************************/
|
|
1133
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1134
|
-
|
|
1135
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1136
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1137
|
-
/* harmony export */ FaceCaptureImage: () => (/* binding */ FaceCaptureImage),
|
|
1138
|
-
/* harmony export */ ImageType: () => (/* binding */ ImageType)
|
|
1139
|
-
/* harmony export */ });
|
|
1140
|
-
class FaceCaptureImage {
|
|
1141
|
-
imageType
|
|
1142
|
-
image
|
|
1143
|
-
tag
|
|
1144
|
-
|
|
1145
|
-
static fromJson(jsonObject) {
|
|
1146
|
-
if (jsonObject == null) return null
|
|
1147
|
-
const result = new FaceCaptureImage()
|
|
1148
|
-
|
|
1149
|
-
result.imageType = jsonObject["imageType"]
|
|
1150
|
-
result.image = jsonObject["image"]
|
|
1151
|
-
result.tag = jsonObject["tag"]
|
|
1152
|
-
|
|
1153
|
-
return result
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
const ImageType = {
|
|
1158
|
-
PRINTED: 1,
|
|
1159
|
-
RFID: 2,
|
|
1160
|
-
LIVE: 3,
|
|
1161
|
-
DOCUMENT_WITH_LIVE: 4,
|
|
1162
|
-
EXTERNAL: 5,
|
|
1163
|
-
GHOST_PORTRAIT: 6,
|
|
1164
|
-
BARCODE: 7,
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
/***/ }),
|
|
1168
|
-
|
|
1169
|
-
/***/ "./src/face_capture/face_capture_response.js":
|
|
1170
|
-
/*!***************************************************!*\
|
|
1171
|
-
!*** ./src/face_capture/face_capture_response.js ***!
|
|
1172
|
-
\***************************************************/
|
|
1173
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1174
|
-
|
|
1175
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1176
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1177
|
-
/* harmony export */ FaceCaptureResponse: () => (/* binding */ FaceCaptureResponse)
|
|
1178
|
-
/* harmony export */ });
|
|
1179
|
-
/* harmony import */ var _face_capture_image__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./face_capture_image */ "./src/face_capture/face_capture_image.js");
|
|
1180
|
-
/* harmony import */ var _face_capture_exception__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./face_capture_exception */ "./src/face_capture/face_capture_exception.js");
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
class FaceCaptureResponse {
|
|
1185
|
-
error
|
|
1186
|
-
image
|
|
1187
|
-
|
|
1188
|
-
static fromJson(jsonObject) {
|
|
1189
|
-
if (jsonObject == null) return null
|
|
1190
|
-
const result = new FaceCaptureResponse()
|
|
1191
|
-
|
|
1192
|
-
result.error = _face_capture_exception__WEBPACK_IMPORTED_MODULE_1__.FaceCaptureException.fromJson(jsonObject["error"])
|
|
1193
|
-
result.image = _face_capture_image__WEBPACK_IMPORTED_MODULE_0__.FaceCaptureImage.fromJson(jsonObject["image"])
|
|
1194
|
-
|
|
1195
|
-
return result
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
/***/ }),
|
|
1200
|
-
|
|
1201
|
-
/***/ "./src/image_params/output_image_crop.js":
|
|
1202
|
-
/*!***********************************************!*\
|
|
1203
|
-
!*** ./src/image_params/output_image_crop.js ***!
|
|
1204
|
-
\***********************************************/
|
|
1205
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1206
|
-
|
|
1207
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1208
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1209
|
-
/* harmony export */ OutputImageCrop: () => (/* binding */ OutputImageCrop),
|
|
1210
|
-
/* harmony export */ OutputImageCropAspectRatio: () => (/* binding */ OutputImageCropAspectRatio)
|
|
1211
|
-
/* harmony export */ });
|
|
1212
|
-
class OutputImageCrop {
|
|
1213
|
-
type
|
|
1214
|
-
size
|
|
1215
|
-
padColor
|
|
1216
|
-
returnOriginalRect
|
|
1217
|
-
|
|
1218
|
-
constructor(type, params) {
|
|
1219
|
-
this.type = type
|
|
1220
|
-
this.size = params?.size
|
|
1221
|
-
this.padColor = params?.padColor
|
|
1222
|
-
this.returnOriginalRect = params?.returnOriginalRect ?? false
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
const OutputImageCropAspectRatio = {
|
|
1227
|
-
RATIO_3X4: 0,
|
|
1228
|
-
RATIO_4X5: 1,
|
|
1229
|
-
RATIO_2X3: 2,
|
|
1230
|
-
RATIO_1X1: 3,
|
|
1231
|
-
RATIO_7X9: 4,
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
/***/ }),
|
|
1235
|
-
|
|
1236
|
-
/***/ "./src/image_params/output_image_params.js":
|
|
1237
|
-
/*!*************************************************!*\
|
|
1238
|
-
!*** ./src/image_params/output_image_params.js ***!
|
|
1239
|
-
\*************************************************/
|
|
1240
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1241
|
-
|
|
1242
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1243
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1244
|
-
/* harmony export */ OutputImageParams: () => (/* binding */ OutputImageParams)
|
|
1245
|
-
/* harmony export */ });
|
|
1246
|
-
class OutputImageParams {
|
|
1247
|
-
crop
|
|
1248
|
-
backgroundColor
|
|
1249
|
-
|
|
1250
|
-
constructor(params) {
|
|
1251
|
-
this.crop = params?.crop
|
|
1252
|
-
this.backgroundColor = params?.backgroundColor
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
/***/ }),
|
|
1257
|
-
|
|
1258
|
-
/***/ "./src/image_params/point.js":
|
|
1259
|
-
/*!***********************************!*\
|
|
1260
|
-
!*** ./src/image_params/point.js ***!
|
|
1261
|
-
\***********************************/
|
|
1262
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1263
|
-
|
|
1264
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1265
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1266
|
-
/* harmony export */ Point: () => (/* binding */ Point)
|
|
1267
|
-
/* harmony export */ });
|
|
1268
|
-
class Point {
|
|
1269
|
-
x
|
|
1270
|
-
y
|
|
1271
|
-
|
|
1272
|
-
static fromJson(jsonObject) {
|
|
1273
|
-
if (jsonObject == null) return null
|
|
1274
|
-
const result = new Point()
|
|
1275
|
-
|
|
1276
|
-
result.x = jsonObject["x"]
|
|
1277
|
-
result.y = jsonObject["y"]
|
|
1278
|
-
|
|
1279
|
-
return result
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
/***/ }),
|
|
1284
|
-
|
|
1285
|
-
/***/ "./src/image_params/rect.js":
|
|
1286
|
-
/*!**********************************!*\
|
|
1287
|
-
!*** ./src/image_params/rect.js ***!
|
|
1288
|
-
\**********************************/
|
|
1289
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1290
|
-
|
|
1291
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1292
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1293
|
-
/* harmony export */ Rect: () => (/* binding */ Rect)
|
|
1294
|
-
/* harmony export */ });
|
|
1295
|
-
class Rect {
|
|
1296
|
-
bottom
|
|
1297
|
-
top
|
|
1298
|
-
left
|
|
1299
|
-
right
|
|
1300
|
-
|
|
1301
|
-
static fromJson(jsonObject) {
|
|
1302
|
-
if (jsonObject == null) return null
|
|
1303
|
-
const result = new Rect()
|
|
1304
|
-
|
|
1305
|
-
result.bottom = jsonObject["bottom"]
|
|
1306
|
-
result.top = jsonObject["top"]
|
|
1307
|
-
result.left = jsonObject["left"]
|
|
1308
|
-
result.right = jsonObject["right"]
|
|
1309
|
-
|
|
1310
|
-
return result
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
/***/ }),
|
|
1315
|
-
|
|
1316
|
-
/***/ "./src/image_params/size.js":
|
|
1317
|
-
/*!**********************************!*\
|
|
1318
|
-
!*** ./src/image_params/size.js ***!
|
|
1319
|
-
\**********************************/
|
|
1320
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1321
|
-
|
|
1322
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1323
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1324
|
-
/* harmony export */ Size: () => (/* binding */ Size)
|
|
1325
|
-
/* harmony export */ });
|
|
1326
|
-
class Size {
|
|
1327
|
-
width
|
|
1328
|
-
height
|
|
1329
|
-
|
|
1330
|
-
constructor(width, height) {
|
|
1331
|
-
this.width = width
|
|
1332
|
-
this.height = height
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
/***/ }),
|
|
1337
|
-
|
|
1338
|
-
/***/ "./src/image_quality/image_quality_characteristic.js":
|
|
1339
|
-
/*!***********************************************************!*\
|
|
1340
|
-
!*** ./src/image_quality/image_quality_characteristic.js ***!
|
|
1341
|
-
\***********************************************************/
|
|
1342
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1343
|
-
|
|
1344
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1345
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1346
|
-
/* harmony export */ ImageQualityCharacteristic: () => (/* binding */ ImageQualityCharacteristic)
|
|
1347
|
-
/* harmony export */ });
|
|
1348
|
-
class ImageQualityCharacteristic {
|
|
1349
|
-
characteristicName
|
|
1350
|
-
recommendedRange
|
|
1351
|
-
customRange
|
|
1352
|
-
color
|
|
1353
|
-
|
|
1354
|
-
static _create(name, params) {
|
|
1355
|
-
var result = new ImageQualityCharacteristic()
|
|
1356
|
-
result.characteristicName = name
|
|
1357
|
-
result.recommendedRange = params?.recommended
|
|
1358
|
-
result.customRange = params?.custom
|
|
1359
|
-
result.color = params?.color
|
|
1360
|
-
return result
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
withCustomRange(min, max) {
|
|
1364
|
-
this.customRange = new ImageQualityRange(min, max)
|
|
1365
|
-
return this
|
|
1366
|
-
}
|
|
1367
|
-
withCustomValue(value) {
|
|
1368
|
-
this.customRange = ImageQualityRange.withValue(value)
|
|
1369
|
-
return this
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
/***/ }),
|
|
1374
|
-
|
|
1375
|
-
/***/ "./src/image_quality/image_quality_characteristic_name.js":
|
|
1376
|
-
/*!****************************************************************!*\
|
|
1377
|
-
!*** ./src/image_quality/image_quality_characteristic_name.js ***!
|
|
1378
|
-
\****************************************************************/
|
|
1379
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1380
|
-
|
|
1381
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1382
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1383
|
-
/* harmony export */ ImageQualityCharacteristicName: () => (/* binding */ ImageQualityCharacteristicName)
|
|
1384
|
-
/* harmony export */ });
|
|
1385
|
-
const ImageQualityCharacteristicName = {
|
|
1386
|
-
IMAGE_WIDTH: "ImageWidth",
|
|
1387
|
-
IMAGE_HEIGHT: "ImageHeight",
|
|
1388
|
-
IMAGE_WIDTH_TO_HEIGHT: "ImageWidthToHeight",
|
|
1389
|
-
IMAGE_CHANNELS_NUMBER: "ImageChannelsNumber",
|
|
1390
|
-
ART_FACE: "ArtFace",
|
|
1391
|
-
PADDING_RATIO: "PaddingRatio",
|
|
1392
|
-
FACE_MID_POINT_HORIZONTAL_POSITION: "FaceMidPointHorizontalPosition",
|
|
1393
|
-
FACE_MID_POINT_VERTICAL_POSITION: "FaceMidPointVerticalPosition",
|
|
1394
|
-
HEAD_WIDTH_RATIO: "HeadWidthRatio",
|
|
1395
|
-
HEAD_HEIGHT_RATIO: "HeadHeightRatio",
|
|
1396
|
-
EYES_DISTANCE: "EyesDistance",
|
|
1397
|
-
YAW: "Yaw",
|
|
1398
|
-
PITCH: "Pitch",
|
|
1399
|
-
ROLL: "Roll",
|
|
1400
|
-
BLUR_LEVEL: "BlurLevel",
|
|
1401
|
-
NOISE_LEVEL: "NoiseLevel",
|
|
1402
|
-
UNNATURAL_SKIN_TONE: "UnnaturalSkinTone",
|
|
1403
|
-
FACE_DYNAMIC_RANGE: "FaceDynamicRange",
|
|
1404
|
-
EYE_RIGHT_CLOSED: "EyeRightClosed",
|
|
1405
|
-
EYE_LEFT_CLOSED: "EyeLeftClosed",
|
|
1406
|
-
EYE_RIGHT_OCCLUDED: "EyeRightOccluded",
|
|
1407
|
-
EYE_LEFT_OCCLUDED: "EyeLeftOccluded",
|
|
1408
|
-
EYES_RED: "EyesRed",
|
|
1409
|
-
EYE_RIGHT_COVERED_WITH_HAIR: "EyeRightCoveredWithHair",
|
|
1410
|
-
EYE_LEFT_COVERED_WITH_HAIR: "EyeLeftCoveredWithHair",
|
|
1411
|
-
OFF_GAZE: "OffGaze",
|
|
1412
|
-
TOO_DARK: "TooDark",
|
|
1413
|
-
TOO_LIGHT: "TooLight",
|
|
1414
|
-
FACE_GLARE: "FaceGlare",
|
|
1415
|
-
SHADOWS_ON_FACE: "ShadowsOnFace",
|
|
1416
|
-
SHOULDERS_POSE: "ShouldersPose",
|
|
1417
|
-
EXPRESSION_LEVEL: "ExpressionLevel",
|
|
1418
|
-
MOUTH_OPEN: "MouthOpen",
|
|
1419
|
-
SMILE: "Smile",
|
|
1420
|
-
DARK_GLASSES: "DarkGlasses",
|
|
1421
|
-
REFLECTION_ON_GLASSES: "ReflectionOnGlasses",
|
|
1422
|
-
FRAMES_TOO_HEAVY: "FramesTooHeavy",
|
|
1423
|
-
FACE_OCCLUDED: "FaceOccluded",
|
|
1424
|
-
HEAD_COVERING: "HeadCovering",
|
|
1425
|
-
FOREHEAD_COVERING: "ForeheadCovering",
|
|
1426
|
-
STRONG_MAKEUP: "StrongMakeup",
|
|
1427
|
-
HEAD_PHONES: "Headphones",
|
|
1428
|
-
MEDICAL_MASK: "MedicalMask",
|
|
1429
|
-
BACKGROUND_UNIFORMITY: "BackgroundUniformity",
|
|
1430
|
-
SHADOWS_ON_BACKGROUND: "ShadowsOnBackground",
|
|
1431
|
-
OTHER_FACES: "OtherFaces",
|
|
1432
|
-
BACKGROUND_COLOR_MATCH: "BackgroundColorMatch",
|
|
1433
|
-
UNKNOWN: "Unknown",
|
|
1434
|
-
IMAGE_CHARACTERISTIC_ALL_RECOMMENDED: "ImageCharacteristic",
|
|
1435
|
-
HEAD_SIZE_AND_POSITION_ALL_RECOMMENDED: "HeadSizeAndPosition",
|
|
1436
|
-
FACE_IMAGE_QUALITY_ALL_RECOMMENDED: "FaceImageQuality",
|
|
1437
|
-
EYES_CHARACTERISTICS_ALL_RECOMMENDED: "EyesCharacteristics",
|
|
1438
|
-
SHADOW_AND_LIGHTING_ALL_RECOMMENDED: "ShadowsAndLightning",
|
|
1439
|
-
POSE_AND_EXPRESSION_ALL_RECOMMENDED: "PoseAndExpression",
|
|
1440
|
-
HEAD_OCCLUSION_ALL_RECOMMENDED: "HeadOcclusion",
|
|
1441
|
-
QUALITY_BACKGROUND_ALL_RECOMMENDED: "QualityBackground",
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
/***/ }),
|
|
1445
|
-
|
|
1446
|
-
/***/ "./src/image_quality/image_quality_group.js":
|
|
1447
|
-
/*!**************************************************!*\
|
|
1448
|
-
!*** ./src/image_quality/image_quality_group.js ***!
|
|
1449
|
-
\**************************************************/
|
|
1450
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1451
|
-
|
|
1452
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1453
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1454
|
-
/* harmony export */ ImageQualityGroup: () => (/* binding */ ImageQualityGroup),
|
|
1455
|
-
/* harmony export */ _Background: () => (/* binding */ _Background),
|
|
1456
|
-
/* harmony export */ _Eyes: () => (/* binding */ _Eyes),
|
|
1457
|
-
/* harmony export */ _FaceImage: () => (/* binding */ _FaceImage),
|
|
1458
|
-
/* harmony export */ _HeadOcclusion: () => (/* binding */ _HeadOcclusion),
|
|
1459
|
-
/* harmony export */ _HeadSizeAndPosition: () => (/* binding */ _HeadSizeAndPosition),
|
|
1460
|
-
/* harmony export */ _Image: () => (/* binding */ _Image),
|
|
1461
|
-
/* harmony export */ _PoseAndExpression: () => (/* binding */ _PoseAndExpression),
|
|
1462
|
-
/* harmony export */ _ShadowsAndLightning: () => (/* binding */ _ShadowsAndLightning)
|
|
1463
|
-
/* harmony export */ });
|
|
1464
|
-
/* harmony import */ var _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./image_quality_characteristic */ "./src/image_quality/image_quality_characteristic.js");
|
|
1465
|
-
/* harmony import */ var _image_quality_range__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./image_quality_range */ "./src/image_quality/image_quality_range.js");
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
class _Image {
|
|
1470
|
-
imageWidth(range) {
|
|
1471
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1472
|
-
ImageQualityCharacteristicName.IMAGE_WIDTH,
|
|
1473
|
-
{ recommended: range }
|
|
1474
|
-
)
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
imageHeight(range) {
|
|
1478
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1479
|
-
ImageQualityCharacteristicName.IMAGE_HEIGHT,
|
|
1480
|
-
{ recommended: range }
|
|
1481
|
-
)
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
imageWidthToHeight(range) {
|
|
1485
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1486
|
-
ImageQualityCharacteristicName.IMAGE_WIDTH_TO_HEIGHT,
|
|
1487
|
-
{ recommended: range }
|
|
1488
|
-
)
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
imageChannelsNumber(channelsNumber) {
|
|
1492
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1493
|
-
ImageQualityCharacteristicName.IMAGE_CHANNELS_NUMBER,
|
|
1494
|
-
{ recommended: _image_quality_range__WEBPACK_IMPORTED_MODULE_1__.ImageQualityRange.withValue(channelsNumber) }
|
|
1495
|
-
)
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
paddingRatio(range) {
|
|
1499
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1500
|
-
ImageQualityCharacteristicName.PADDING_RATIO,
|
|
1501
|
-
{ recommended: range }
|
|
1502
|
-
)
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
artFace() {
|
|
1506
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1507
|
-
ImageQualityCharacteristicName.ART_FACE,
|
|
1508
|
-
)
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
allRecommended() {
|
|
1512
|
-
return [this.artFace()]
|
|
1513
|
-
}
|
|
1514
|
-
}
|
|
1515
|
-
|
|
1516
|
-
class _HeadSizeAndPosition {
|
|
1517
|
-
faceMidPointHorizontalPosition() {
|
|
1518
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_MID_POINT_HORIZONTAL_POSITION)
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
faceMidPointVerticalPosition() {
|
|
1522
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_MID_POINT_VERTICAL_POSITION)
|
|
1523
|
-
}
|
|
1524
|
-
|
|
1525
|
-
headWidthRatio() {
|
|
1526
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.HEAD_WIDTH_RATIO)
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
headHeightRatio() {
|
|
1530
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.HEAD_HEIGHT_RATIO)
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
eyesDistance() {
|
|
1534
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYES_DISTANCE)
|
|
1535
|
-
}
|
|
1536
|
-
|
|
1537
|
-
yaw() {
|
|
1538
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.YAW)
|
|
1539
|
-
}
|
|
1540
|
-
|
|
1541
|
-
pitch() {
|
|
1542
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.PITCH)
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
roll() {
|
|
1546
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.ROLL)
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
allRecommended() {
|
|
1550
|
-
return [
|
|
1551
|
-
this.faceMidPointHorizontalPosition(),
|
|
1552
|
-
this.faceMidPointVerticalPosition(),
|
|
1553
|
-
this.headHeightRatio(),
|
|
1554
|
-
this.headWidthRatio(),
|
|
1555
|
-
this.eyesDistance(),
|
|
1556
|
-
this.yaw(),
|
|
1557
|
-
this.pitch(),
|
|
1558
|
-
this.roll(),
|
|
1559
|
-
]
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
class _FaceImage {
|
|
1564
|
-
blurLevel() {
|
|
1565
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.BLUR_LEVEL)
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
noiseLevel() {
|
|
1569
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.NOISE_LEVEL)
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
unnaturalSkinTone() {
|
|
1573
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.UNNATURAL_SKIN_TONE)
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
faceDynamicRange() {
|
|
1577
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_DYNAMIC_RANGE)
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
allRecommended() {
|
|
1581
|
-
return [
|
|
1582
|
-
this.blurLevel(),
|
|
1583
|
-
this.noiseLevel(),
|
|
1584
|
-
this.unnaturalSkinTone(),
|
|
1585
|
-
this.faceDynamicRange(),
|
|
1586
|
-
]
|
|
1587
|
-
}
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
class _Eyes {
|
|
1591
|
-
eyeRightClosed() {
|
|
1592
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_RIGHT_CLOSED)
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
eyeLeftClosed() {
|
|
1596
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_LEFT_CLOSED)
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
eyeRightOccluded() {
|
|
1600
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_RIGHT_OCCLUDED)
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
eyeLeftOccluded() {
|
|
1604
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_LEFT_OCCLUDED)
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
|
-
eyesRed() {
|
|
1608
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYES_RED)
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
eyeRightCoveredWithHair() {
|
|
1612
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_RIGHT_COVERED_WITH_HAIR)
|
|
1613
|
-
}
|
|
1614
|
-
|
|
1615
|
-
eyeLeftCoveredWithHair() {
|
|
1616
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_LEFT_COVERED_WITH_HAIR)
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
offGaze() {
|
|
1620
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.OFF_GAZE)
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
allRecommended() {
|
|
1624
|
-
return [
|
|
1625
|
-
this.eyeRightClosed(),
|
|
1626
|
-
this.eyeLeftClosed(),
|
|
1627
|
-
this.eyeRightOccluded(),
|
|
1628
|
-
this.eyeLeftOccluded(),
|
|
1629
|
-
this.eyesRed(),
|
|
1630
|
-
this.eyeRightCoveredWithHair(),
|
|
1631
|
-
this.eyeLeftCoveredWithHair(),
|
|
1632
|
-
this.offGaze(),
|
|
1633
|
-
]
|
|
1634
|
-
}
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
class _ShadowsAndLightning {
|
|
1638
|
-
tooDark() {
|
|
1639
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.TOO_DARK)
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
tooLight() {
|
|
1643
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.TOO_LIGHT)
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
faceGlare() {
|
|
1647
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_GLARE)
|
|
1648
|
-
}
|
|
1649
|
-
|
|
1650
|
-
shadowsOnFace() {
|
|
1651
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.SHADOWS_ON_FACE)
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
allRecommended() {
|
|
1655
|
-
return [
|
|
1656
|
-
this.tooDark(),
|
|
1657
|
-
this.tooLight(),
|
|
1658
|
-
this.faceGlare(),
|
|
1659
|
-
this.shadowsOnFace(),
|
|
1660
|
-
]
|
|
1661
|
-
}
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
class _PoseAndExpression {
|
|
1665
|
-
shouldersPose() {
|
|
1666
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.SHOULDERS_POSE)
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
expressionLevel() {
|
|
1670
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EXPRESSION_LEVEL)
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
mouthOpen() {
|
|
1674
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.MOUTH_OPEN)
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
|
-
smile() {
|
|
1678
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.SMILE)
|
|
1679
|
-
}
|
|
1680
|
-
|
|
1681
|
-
allRecommended() {
|
|
1682
|
-
return [
|
|
1683
|
-
this.shouldersPose(),
|
|
1684
|
-
this.expressionLevel(),
|
|
1685
|
-
this.mouthOpen(),
|
|
1686
|
-
this.smile(),
|
|
1687
|
-
]
|
|
1688
|
-
}
|
|
1689
|
-
}
|
|
1690
|
-
|
|
1691
|
-
class _HeadOcclusion {
|
|
1692
|
-
darkGlasses() {
|
|
1693
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.DARK_GLASSES)
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
reflectionOnGlasses() {
|
|
1697
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.REFLECTION_ON_GLASSES)
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
|
-
framesTooHeavy() {
|
|
1701
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FRAMES_TOO_HEAVY)
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
faceOccluded() {
|
|
1705
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_OCCLUDED)
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
|
-
headCovering() {
|
|
1709
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.HEAD_COVERING)
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
foreheadCovering() {
|
|
1713
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FOREHEAD_COVERING)
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
|
-
strongMakeup() {
|
|
1717
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.STRONG_MAKEUP)
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
headphones() {
|
|
1721
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.HEAD_PHONES)
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
|
-
medicalMask() {
|
|
1725
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.MEDICAL_MASK)
|
|
1726
|
-
}
|
|
1727
|
-
|
|
1728
|
-
allRecommended() {
|
|
1729
|
-
return [
|
|
1730
|
-
this.darkGlasses(),
|
|
1731
|
-
this.reflectionOnGlasses(),
|
|
1732
|
-
this.framesTooHeavy(),
|
|
1733
|
-
this.faceOccluded(),
|
|
1734
|
-
this.headCovering(),
|
|
1735
|
-
this.foreheadCovering(),
|
|
1736
|
-
this.strongMakeup(),
|
|
1737
|
-
this.headphones(),
|
|
1738
|
-
this.medicalMask(),
|
|
1739
|
-
]
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
class _Background {
|
|
1744
|
-
backgroundUniformity() {
|
|
1745
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.BACKGROUND_UNIFORMITY)
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
shadowsOnBackground() {
|
|
1749
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.SHADOWS_ON_BACKGROUND)
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
otherFaces() {
|
|
1753
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.OTHER_FACES)
|
|
1754
|
-
}
|
|
1755
|
-
|
|
1756
|
-
backgroundColorMatch(params) {
|
|
1757
|
-
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1758
|
-
ImageQualityCharacteristicName.BACKGROUND_COLOR_MATCH,
|
|
1759
|
-
{ color: params?.color }
|
|
1760
|
-
)
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1763
|
-
allRecommended() {
|
|
1764
|
-
return [
|
|
1765
|
-
this.backgroundUniformity(),
|
|
1766
|
-
this.shadowsOnBackground(),
|
|
1767
|
-
this.otherFaces(),
|
|
1768
|
-
this.backgroundColorMatch(),
|
|
1769
|
-
]
|
|
1770
|
-
}
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
class ImageQualityGroup {
|
|
1774
|
-
static get image() { return ImageQualityGroup._image }
|
|
1775
|
-
static _image = new _Image()
|
|
1776
|
-
|
|
1777
|
-
static get headSizeAndPosition() { return ImageQualityGroup._headSizeAndPosition }
|
|
1778
|
-
static _headSizeAndPosition = new _HeadSizeAndPosition()
|
|
1779
|
-
|
|
1780
|
-
static get faceImage() { return ImageQualityGroup._faceImage }
|
|
1781
|
-
static _faceImage = new _FaceImage()
|
|
1782
|
-
|
|
1783
|
-
static get eyes() { return ImageQualityGroup._eyes }
|
|
1784
|
-
static _eyes = new _Eyes()
|
|
1785
|
-
|
|
1786
|
-
static get shadowsAndLightning() { return ImageQualityGroup._shadowsAndLightning }
|
|
1787
|
-
static _shadowsAndLightning = new _ShadowsAndLightning()
|
|
1788
|
-
|
|
1789
|
-
static get poseAndExpression() { return ImageQualityGroup._poseAndExpression }
|
|
1790
|
-
static _poseAndExpression = new _PoseAndExpression()
|
|
1791
|
-
|
|
1792
|
-
static get headOcclusion() { return ImageQualityGroup._headOcclusion }
|
|
1793
|
-
static _headOcclusion = new _HeadOcclusion()
|
|
1794
|
-
|
|
1795
|
-
static get background() { return ImageQualityGroup._background }
|
|
1796
|
-
static _background = new _Background()
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
/***/ }),
|
|
1800
|
-
|
|
1801
|
-
/***/ "./src/image_quality/image_quality_range.js":
|
|
1802
|
-
/*!**************************************************!*\
|
|
1803
|
-
!*** ./src/image_quality/image_quality_range.js ***!
|
|
1804
|
-
\**************************************************/
|
|
1805
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1806
|
-
|
|
1807
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1808
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1809
|
-
/* harmony export */ ImageQualityRange: () => (/* binding */ ImageQualityRange)
|
|
1810
|
-
/* harmony export */ });
|
|
1811
|
-
class ImageQualityRange {
|
|
1812
|
-
min
|
|
1813
|
-
max
|
|
1814
|
-
|
|
1815
|
-
constructor(min, max) {
|
|
1816
|
-
this.min = min
|
|
1817
|
-
this.max = max
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
static withValue(value) {
|
|
1821
|
-
var result = new ImageQualityRange()
|
|
1822
|
-
result.min = value
|
|
1823
|
-
result.max = value
|
|
1824
|
-
return result
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
static fromJson(jsonObject) {
|
|
1828
|
-
if (jsonObject == null) return null
|
|
1829
|
-
const result = new ImageQualityRange()
|
|
1830
|
-
|
|
1831
|
-
result.min = jsonObject["min"]
|
|
1832
|
-
result.max = jsonObject["max"]
|
|
1833
|
-
|
|
1834
|
-
return result
|
|
1835
|
-
}
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
/***/ }),
|
|
1839
|
-
|
|
1840
|
-
/***/ "./src/image_quality/image_quality_result.js":
|
|
1841
|
-
/*!***************************************************!*\
|
|
1842
|
-
!*** ./src/image_quality/image_quality_result.js ***!
|
|
1843
|
-
\***************************************************/
|
|
1844
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1845
|
-
|
|
1846
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1847
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1848
|
-
/* harmony export */ ImageQualityGroupName: () => (/* binding */ ImageQualityGroupName),
|
|
1849
|
-
/* harmony export */ ImageQualityResult: () => (/* binding */ ImageQualityResult),
|
|
1850
|
-
/* harmony export */ ImageQualityResultStatus: () => (/* binding */ ImageQualityResultStatus)
|
|
1851
|
-
/* harmony export */ });
|
|
1852
|
-
/* harmony import */ var _image_quality_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./image_quality_range */ "./src/image_quality/image_quality_range.js");
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
class ImageQualityResult {
|
|
1856
|
-
group
|
|
1857
|
-
name
|
|
1858
|
-
status
|
|
1859
|
-
value
|
|
1860
|
-
range
|
|
1861
|
-
|
|
1862
|
-
static fromJson(jsonObject) {
|
|
1863
|
-
if (jsonObject == null) return null
|
|
1864
|
-
const result = new ImageQualityResult()
|
|
1865
|
-
|
|
1866
|
-
result.name = jsonObject["name"]
|
|
1867
|
-
result.group = jsonObject["group"]
|
|
1868
|
-
result.status = jsonObject["status"]
|
|
1869
|
-
result.range = _image_quality_range__WEBPACK_IMPORTED_MODULE_0__.ImageQualityRange.fromJson(jsonObject["range"])
|
|
1870
|
-
result.value = jsonObject["value"]
|
|
1871
|
-
|
|
1872
|
-
return result
|
|
1873
|
-
}
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
|
-
const ImageQualityGroupName = {
|
|
1877
|
-
IMAGE_CHARACTERISTICS: 1,
|
|
1878
|
-
HEAD_SIZE_AND_POSITION: 2,
|
|
1879
|
-
FACE_QUALITY: 3,
|
|
1880
|
-
EYES_CHARACTERISTICS: 4,
|
|
1881
|
-
SHADOWS_AND_LIGHTNING: 5,
|
|
1882
|
-
POSE_AND_EXPRESSION: 6,
|
|
1883
|
-
HEAD_OCCLUSION: 7,
|
|
1884
|
-
BACKGROUND: 8,
|
|
1885
|
-
UNKNOWN: 9,
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1888
|
-
const ImageQualityResultStatus = {
|
|
1889
|
-
FALSE: 0,
|
|
1890
|
-
TRUE: 1,
|
|
1891
|
-
UNDETERMINED: 2,
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
|
-
/***/ }),
|
|
1895
|
-
|
|
1896
|
-
/***/ "./src/index.js":
|
|
1897
|
-
/*!**********************!*\
|
|
1898
|
-
!*** ./src/index.js ***!
|
|
1899
|
-
\**********************/
|
|
1900
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1901
|
-
|
|
1902
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1903
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1904
|
-
/* harmony export */ CameraPosition: () => (/* reexport safe */ _customization_camera_position__WEBPACK_IMPORTED_MODULE_1__.CameraPosition),
|
|
1905
|
-
/* harmony export */ ComparedFace: () => (/* reexport safe */ _match_faces_compared_face__WEBPACK_IMPORTED_MODULE_40__.ComparedFace),
|
|
1906
|
-
/* harmony export */ ComparedFacesPair: () => (/* reexport safe */ _match_faces_compared_faces_pair__WEBPACK_IMPORTED_MODULE_41__.ComparedFacesPair),
|
|
1907
|
-
/* harmony export */ ComparedFacesSplit: () => (/* reexport safe */ _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_42__.ComparedFacesSplit),
|
|
1908
|
-
/* harmony export */ Customization: () => (/* reexport safe */ _customization_customization__WEBPACK_IMPORTED_MODULE_5__.Customization),
|
|
1909
|
-
/* harmony export */ CustomizationColors: () => (/* reexport safe */ _customization_customization_colors__WEBPACK_IMPORTED_MODULE_2__.CustomizationColors),
|
|
1910
|
-
/* harmony export */ CustomizationFonts: () => (/* reexport safe */ _customization_customization_fonts__WEBPACK_IMPORTED_MODULE_3__.CustomizationFonts),
|
|
1911
|
-
/* harmony export */ CustomizationImages: () => (/* reexport safe */ _customization_customization_images__WEBPACK_IMPORTED_MODULE_4__.CustomizationImages),
|
|
1912
|
-
/* harmony export */ DetectFaceResult: () => (/* reexport safe */ _detect_faces_detect_face_result__WEBPACK_IMPORTED_MODULE_12__.DetectFaceResult),
|
|
1913
|
-
/* harmony export */ DetectFacesAttribute: () => (/* reexport safe */ _detect_faces_detect_faces_attribute__WEBPACK_IMPORTED_MODULE_14__.DetectFacesAttribute),
|
|
1914
|
-
/* harmony export */ DetectFacesAttributeResult: () => (/* reexport safe */ _detect_faces_detect_faces_attribute_result__WEBPACK_IMPORTED_MODULE_13__.DetectFacesAttributeResult),
|
|
1915
|
-
/* harmony export */ DetectFacesBackendErrorCode: () => (/* reexport safe */ _detect_faces_detect_faces_backend_exception__WEBPACK_IMPORTED_MODULE_15__.DetectFacesBackendErrorCode),
|
|
1916
|
-
/* harmony export */ DetectFacesBackendException: () => (/* reexport safe */ _detect_faces_detect_faces_backend_exception__WEBPACK_IMPORTED_MODULE_15__.DetectFacesBackendException),
|
|
1917
|
-
/* harmony export */ DetectFacesConfig: () => (/* reexport safe */ _detect_faces_detect_faces_config__WEBPACK_IMPORTED_MODULE_16__.DetectFacesConfig),
|
|
1918
|
-
/* harmony export */ DetectFacesErrorCode: () => (/* reexport safe */ _detect_faces_detect_faces_exception__WEBPACK_IMPORTED_MODULE_17__.DetectFacesErrorCode),
|
|
1919
|
-
/* harmony export */ DetectFacesException: () => (/* reexport safe */ _detect_faces_detect_faces_exception__WEBPACK_IMPORTED_MODULE_17__.DetectFacesException),
|
|
1920
|
-
/* harmony export */ DetectFacesRequest: () => (/* reexport safe */ _detect_faces_detect_faces_request__WEBPACK_IMPORTED_MODULE_18__.DetectFacesRequest),
|
|
1921
|
-
/* harmony export */ DetectFacesResponse: () => (/* reexport safe */ _detect_faces_detect_faces_response__WEBPACK_IMPORTED_MODULE_19__.DetectFacesResponse),
|
|
1922
|
-
/* harmony export */ DetectFacesScenario: () => (/* reexport safe */ _detect_faces_detect_faces_scenario__WEBPACK_IMPORTED_MODULE_20__.DetectFacesScenario),
|
|
1923
|
-
/* harmony export */ EditGroupPersonsRequest: () => (/* reexport safe */ _person_database_edit_group_persons_request__WEBPACK_IMPORTED_MODULE_51__.EditGroupPersonsRequest),
|
|
1924
|
-
/* harmony export */ FaceCaptureConfig: () => (/* reexport safe */ _face_capture_face_capture_config__WEBPACK_IMPORTED_MODULE_21__.FaceCaptureConfig),
|
|
1925
|
-
/* harmony export */ FaceCaptureErrorCode: () => (/* reexport safe */ _face_capture_face_capture_exception__WEBPACK_IMPORTED_MODULE_22__.FaceCaptureErrorCode),
|
|
1926
|
-
/* harmony export */ FaceCaptureException: () => (/* reexport safe */ _face_capture_face_capture_exception__WEBPACK_IMPORTED_MODULE_22__.FaceCaptureException),
|
|
1927
|
-
/* harmony export */ FaceCaptureImage: () => (/* reexport safe */ _face_capture_face_capture_image__WEBPACK_IMPORTED_MODULE_23__.FaceCaptureImage),
|
|
1928
|
-
/* harmony export */ FaceCaptureResponse: () => (/* reexport safe */ _face_capture_face_capture_response__WEBPACK_IMPORTED_MODULE_24__.FaceCaptureResponse),
|
|
1929
|
-
/* harmony export */ FaceSDK: () => (/* binding */ FaceSDK),
|
|
1930
|
-
/* harmony export */ FaceSDKVersion: () => (/* reexport safe */ _init_face_sdk_version__WEBPACK_IMPORTED_MODULE_8__.FaceSDKVersion),
|
|
1931
|
-
/* harmony export */ Font: () => (/* reexport safe */ _customization_font__WEBPACK_IMPORTED_MODULE_6__.Font),
|
|
1932
|
-
/* harmony export */ ImageQualityCharacteristic: () => (/* reexport safe */ _image_quality_image_quality_characteristic__WEBPACK_IMPORTED_MODULE_31__.ImageQualityCharacteristic),
|
|
1933
|
-
/* harmony export */ ImageQualityCharacteristicName: () => (/* reexport safe */ _image_quality_image_quality_characteristic_name__WEBPACK_IMPORTED_MODULE_30__.ImageQualityCharacteristicName),
|
|
1934
|
-
/* harmony export */ ImageQualityGroup: () => (/* reexport safe */ _image_quality_image_quality_group__WEBPACK_IMPORTED_MODULE_32__.ImageQualityGroup),
|
|
1935
|
-
/* harmony export */ ImageQualityGroupName: () => (/* reexport safe */ _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__.ImageQualityGroupName),
|
|
1936
|
-
/* harmony export */ ImageQualityRange: () => (/* reexport safe */ _image_quality_image_quality_range__WEBPACK_IMPORTED_MODULE_33__.ImageQualityRange),
|
|
1937
|
-
/* harmony export */ ImageQualityResult: () => (/* reexport safe */ _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__.ImageQualityResult),
|
|
1938
|
-
/* harmony export */ ImageQualityResultStatus: () => (/* reexport safe */ _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__.ImageQualityResultStatus),
|
|
1939
|
-
/* harmony export */ ImageType: () => (/* reexport safe */ _face_capture_face_capture_image__WEBPACK_IMPORTED_MODULE_23__.ImageType),
|
|
1940
|
-
/* harmony export */ ImageUpload: () => (/* reexport safe */ _person_database_image_upload__WEBPACK_IMPORTED_MODULE_52__.ImageUpload),
|
|
1941
|
-
/* harmony export */ InitConfig: () => (/* reexport safe */ _init_init_config__WEBPACK_IMPORTED_MODULE_9__.InitConfig),
|
|
1942
|
-
/* harmony export */ InitErrorCode: () => (/* reexport safe */ _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitErrorCode),
|
|
1943
|
-
/* harmony export */ InitException: () => (/* reexport safe */ _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitException),
|
|
1944
|
-
/* harmony export */ LicenseException: () => (/* reexport safe */ _init_license_exception__WEBPACK_IMPORTED_MODULE_11__.LicenseException),
|
|
1945
|
-
/* harmony export */ LicensingResultCode: () => (/* reexport safe */ _init_license_exception__WEBPACK_IMPORTED_MODULE_11__.LicensingResultCode),
|
|
1946
|
-
/* harmony export */ LivenessBackendErrorCode: () => (/* reexport safe */ _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_35__.LivenessBackendErrorCode),
|
|
1947
|
-
/* harmony export */ LivenessBackendException: () => (/* reexport safe */ _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_35__.LivenessBackendException),
|
|
1948
|
-
/* harmony export */ LivenessConfig: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_36__.LivenessConfig),
|
|
1949
|
-
/* harmony export */ LivenessErrorCode: () => (/* reexport safe */ _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_37__.LivenessErrorCode),
|
|
1950
|
-
/* harmony export */ LivenessException: () => (/* reexport safe */ _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_37__.LivenessException),
|
|
1951
|
-
/* harmony export */ LivenessNotification: () => (/* reexport safe */ _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_38__.LivenessNotification),
|
|
1952
|
-
/* harmony export */ LivenessProcessStatus: () => (/* reexport safe */ _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_38__.LivenessProcessStatus),
|
|
1953
|
-
/* harmony export */ LivenessResponse: () => (/* reexport safe */ _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_39__.LivenessResponse),
|
|
1954
|
-
/* harmony export */ LivenessSkipStep: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_36__.LivenessSkipStep),
|
|
1955
|
-
/* harmony export */ LivenessStatus: () => (/* reexport safe */ _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_39__.LivenessStatus),
|
|
1956
|
-
/* harmony export */ LivenessType: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_36__.LivenessType),
|
|
1957
|
-
/* harmony export */ MatchFacesBackendException: () => (/* reexport safe */ _match_faces_match_faces_backend_exception__WEBPACK_IMPORTED_MODULE_43__.MatchFacesBackendException),
|
|
1958
|
-
/* harmony export */ MatchFacesConfig: () => (/* reexport safe */ _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_44__.MatchFacesConfig),
|
|
1959
|
-
/* harmony export */ MatchFacesDetection: () => (/* reexport safe */ _match_faces_match_faces_detection__WEBPACK_IMPORTED_MODULE_46__.MatchFacesDetection),
|
|
1960
|
-
/* harmony export */ MatchFacesDetectionFace: () => (/* reexport safe */ _match_faces_match_faces_detection_face__WEBPACK_IMPORTED_MODULE_45__.MatchFacesDetectionFace),
|
|
1961
|
-
/* harmony export */ MatchFacesErrorCode: () => (/* reexport safe */ _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_47__.MatchFacesErrorCode),
|
|
1962
|
-
/* harmony export */ MatchFacesException: () => (/* reexport safe */ _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_47__.MatchFacesException),
|
|
1963
|
-
/* harmony export */ MatchFacesImage: () => (/* reexport safe */ _match_faces_match_faces_image__WEBPACK_IMPORTED_MODULE_48__.MatchFacesImage),
|
|
1964
|
-
/* harmony export */ MatchFacesRequest: () => (/* reexport safe */ _match_faces_match_faces_request__WEBPACK_IMPORTED_MODULE_49__.MatchFacesRequest),
|
|
1965
|
-
/* harmony export */ MatchFacesResponse: () => (/* reexport safe */ _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_50__.MatchFacesResponse),
|
|
1966
|
-
/* harmony export */ OutputImageCrop: () => (/* reexport safe */ _image_params_output_image_crop__WEBPACK_IMPORTED_MODULE_25__.OutputImageCrop),
|
|
1967
|
-
/* harmony export */ OutputImageCropAspectRatio: () => (/* reexport safe */ _image_params_output_image_crop__WEBPACK_IMPORTED_MODULE_25__.OutputImageCropAspectRatio),
|
|
1968
|
-
/* harmony export */ OutputImageParams: () => (/* reexport safe */ _image_params_output_image_params__WEBPACK_IMPORTED_MODULE_26__.OutputImageParams),
|
|
1969
|
-
/* harmony export */ PageableItemList: () => (/* reexport safe */ _person_database_pageable_item_list__WEBPACK_IMPORTED_MODULE_53__.PageableItemList),
|
|
1970
|
-
/* harmony export */ Person: () => (/* reexport safe */ _person_database_person__WEBPACK_IMPORTED_MODULE_57__.Person),
|
|
1971
|
-
/* harmony export */ PersonDatabase: () => (/* reexport safe */ _person_database_person_database__WEBPACK_IMPORTED_MODULE_54__.PersonDatabase),
|
|
1972
|
-
/* harmony export */ PersonGroup: () => (/* reexport safe */ _person_database_person_group__WEBPACK_IMPORTED_MODULE_55__.PersonGroup),
|
|
1973
|
-
/* harmony export */ PersonImage: () => (/* reexport safe */ _person_database_person_image__WEBPACK_IMPORTED_MODULE_56__.PersonImage),
|
|
1974
|
-
/* harmony export */ Point: () => (/* reexport safe */ _image_params_point__WEBPACK_IMPORTED_MODULE_27__.Point),
|
|
1975
|
-
/* harmony export */ ProcessingMode: () => (/* reexport safe */ _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_44__.ProcessingMode),
|
|
1976
|
-
/* harmony export */ RecordingProcess: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_36__.RecordingProcess),
|
|
1977
|
-
/* harmony export */ Rect: () => (/* reexport safe */ _image_params_rect__WEBPACK_IMPORTED_MODULE_28__.Rect),
|
|
1978
|
-
/* harmony export */ ScreenOrientation: () => (/* reexport safe */ _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_7__.ScreenOrientation),
|
|
1979
|
-
/* harmony export */ SearchPerson: () => (/* reexport safe */ _person_database_search_person__WEBPACK_IMPORTED_MODULE_61__.SearchPerson),
|
|
1980
|
-
/* harmony export */ SearchPersonDetection: () => (/* reexport safe */ _person_database_search_person_detection__WEBPACK_IMPORTED_MODULE_58__.SearchPersonDetection),
|
|
1981
|
-
/* harmony export */ SearchPersonImage: () => (/* reexport safe */ _person_database_search_person_image__WEBPACK_IMPORTED_MODULE_59__.SearchPersonImage),
|
|
1982
|
-
/* harmony export */ SearchPersonRequest: () => (/* reexport safe */ _person_database_search_person_request__WEBPACK_IMPORTED_MODULE_60__.SearchPersonRequest),
|
|
1983
|
-
/* harmony export */ Size: () => (/* reexport safe */ _image_params_size__WEBPACK_IMPORTED_MODULE_29__.Size)
|
|
1984
|
-
/* harmony export */ });
|
|
1985
|
-
/* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./internal/bridge */ "./src/internal/bridge.js");
|
|
1986
|
-
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./customization/camera_position */ "./src/customization/camera_position.js");
|
|
1987
|
-
/* harmony import */ var _customization_customization_colors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./customization/customization_colors */ "./src/customization/customization_colors.js");
|
|
1988
|
-
/* harmony import */ var _customization_customization_fonts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./customization/customization_fonts */ "./src/customization/customization_fonts.js");
|
|
1989
|
-
/* harmony import */ var _customization_customization_images__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./customization/customization_images */ "./src/customization/customization_images.js");
|
|
1990
|
-
/* harmony import */ var _customization_customization__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./customization/customization */ "./src/customization/customization.js");
|
|
1991
|
-
/* harmony import */ var _customization_font__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./customization/font */ "./src/customization/font.js");
|
|
1992
|
-
/* harmony import */ var _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./customization/screen_orientation */ "./src/customization/screen_orientation.js");
|
|
1993
|
-
/* harmony import */ var _init_face_sdk_version__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./init/face_sdk_version */ "./src/init/face_sdk_version.js");
|
|
1994
|
-
/* harmony import */ var _init_init_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./init/init_config */ "./src/init/init_config.js");
|
|
1995
|
-
/* harmony import */ var _init_init_exception__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./init/init_exception */ "./src/init/init_exception.js");
|
|
1996
|
-
/* harmony import */ var _init_license_exception__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./init/license_exception */ "./src/init/license_exception.js");
|
|
1997
|
-
/* harmony import */ var _detect_faces_detect_face_result__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./detect_faces/detect_face_result */ "./src/detect_faces/detect_face_result.js");
|
|
1998
|
-
/* harmony import */ var _detect_faces_detect_faces_attribute_result__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./detect_faces/detect_faces_attribute_result */ "./src/detect_faces/detect_faces_attribute_result.js");
|
|
1999
|
-
/* harmony import */ var _detect_faces_detect_faces_attribute__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./detect_faces/detect_faces_attribute */ "./src/detect_faces/detect_faces_attribute.js");
|
|
2000
|
-
/* harmony import */ var _detect_faces_detect_faces_backend_exception__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./detect_faces/detect_faces_backend_exception */ "./src/detect_faces/detect_faces_backend_exception.js");
|
|
2001
|
-
/* harmony import */ var _detect_faces_detect_faces_config__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./detect_faces/detect_faces_config */ "./src/detect_faces/detect_faces_config.js");
|
|
2002
|
-
/* harmony import */ var _detect_faces_detect_faces_exception__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./detect_faces/detect_faces_exception */ "./src/detect_faces/detect_faces_exception.js");
|
|
2003
|
-
/* harmony import */ var _detect_faces_detect_faces_request__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./detect_faces/detect_faces_request */ "./src/detect_faces/detect_faces_request.js");
|
|
2004
|
-
/* harmony import */ var _detect_faces_detect_faces_response__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./detect_faces/detect_faces_response */ "./src/detect_faces/detect_faces_response.js");
|
|
2005
|
-
/* harmony import */ var _detect_faces_detect_faces_scenario__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./detect_faces/detect_faces_scenario */ "./src/detect_faces/detect_faces_scenario.js");
|
|
2006
|
-
/* harmony import */ var _face_capture_face_capture_config__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./face_capture/face_capture_config */ "./src/face_capture/face_capture_config.js");
|
|
2007
|
-
/* harmony import */ var _face_capture_face_capture_exception__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./face_capture/face_capture_exception */ "./src/face_capture/face_capture_exception.js");
|
|
2008
|
-
/* harmony import */ var _face_capture_face_capture_image__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./face_capture/face_capture_image */ "./src/face_capture/face_capture_image.js");
|
|
2009
|
-
/* harmony import */ var _face_capture_face_capture_response__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./face_capture/face_capture_response */ "./src/face_capture/face_capture_response.js");
|
|
2010
|
-
/* harmony import */ var _image_params_output_image_crop__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./image_params/output_image_crop */ "./src/image_params/output_image_crop.js");
|
|
2011
|
-
/* harmony import */ var _image_params_output_image_params__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./image_params/output_image_params */ "./src/image_params/output_image_params.js");
|
|
2012
|
-
/* harmony import */ var _image_params_point__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./image_params/point */ "./src/image_params/point.js");
|
|
2013
|
-
/* harmony import */ var _image_params_rect__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./image_params/rect */ "./src/image_params/rect.js");
|
|
2014
|
-
/* harmony import */ var _image_params_size__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./image_params/size */ "./src/image_params/size.js");
|
|
2015
|
-
/* harmony import */ var _image_quality_image_quality_characteristic_name__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./image_quality/image_quality_characteristic_name */ "./src/image_quality/image_quality_characteristic_name.js");
|
|
2016
|
-
/* harmony import */ var _image_quality_image_quality_characteristic__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./image_quality/image_quality_characteristic */ "./src/image_quality/image_quality_characteristic.js");
|
|
2017
|
-
/* harmony import */ var _image_quality_image_quality_group__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./image_quality/image_quality_group */ "./src/image_quality/image_quality_group.js");
|
|
2018
|
-
/* harmony import */ var _image_quality_image_quality_range__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./image_quality/image_quality_range */ "./src/image_quality/image_quality_range.js");
|
|
2019
|
-
/* harmony import */ var _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./image_quality/image_quality_result */ "./src/image_quality/image_quality_result.js");
|
|
2020
|
-
/* harmony import */ var _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./liveness/liveness_backend_exception */ "./src/liveness/liveness_backend_exception.js");
|
|
2021
|
-
/* harmony import */ var _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./liveness/liveness_config */ "./src/liveness/liveness_config.js");
|
|
2022
|
-
/* harmony import */ var _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./liveness/liveness_exception */ "./src/liveness/liveness_exception.js");
|
|
2023
|
-
/* harmony import */ var _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./liveness/liveness_notification */ "./src/liveness/liveness_notification.js");
|
|
2024
|
-
/* harmony import */ var _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./liveness/liveness_response */ "./src/liveness/liveness_response.js");
|
|
2025
|
-
/* harmony import */ var _match_faces_compared_face__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./match_faces/compared_face */ "./src/match_faces/compared_face.js");
|
|
2026
|
-
/* harmony import */ var _match_faces_compared_faces_pair__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./match_faces/compared_faces_pair */ "./src/match_faces/compared_faces_pair.js");
|
|
2027
|
-
/* harmony import */ var _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./match_faces/compared_faces_split */ "./src/match_faces/compared_faces_split.js");
|
|
2028
|
-
/* harmony import */ var _match_faces_match_faces_backend_exception__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./match_faces/match_faces_backend_exception */ "./src/match_faces/match_faces_backend_exception.js");
|
|
2029
|
-
/* harmony import */ var _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./match_faces/match_faces_config */ "./src/match_faces/match_faces_config.js");
|
|
2030
|
-
/* harmony import */ var _match_faces_match_faces_detection_face__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./match_faces/match_faces_detection_face */ "./src/match_faces/match_faces_detection_face.js");
|
|
2031
|
-
/* harmony import */ var _match_faces_match_faces_detection__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./match_faces/match_faces_detection */ "./src/match_faces/match_faces_detection.js");
|
|
2032
|
-
/* harmony import */ var _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./match_faces/match_faces_exception */ "./src/match_faces/match_faces_exception.js");
|
|
2033
|
-
/* harmony import */ var _match_faces_match_faces_image__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./match_faces/match_faces_image */ "./src/match_faces/match_faces_image.js");
|
|
2034
|
-
/* harmony import */ var _match_faces_match_faces_request__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./match_faces/match_faces_request */ "./src/match_faces/match_faces_request.js");
|
|
2035
|
-
/* harmony import */ var _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./match_faces/match_faces_response */ "./src/match_faces/match_faces_response.js");
|
|
2036
|
-
/* harmony import */ var _person_database_edit_group_persons_request__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./person_database/edit_group_persons_request */ "./src/person_database/edit_group_persons_request.js");
|
|
2037
|
-
/* harmony import */ var _person_database_image_upload__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./person_database/image_upload */ "./src/person_database/image_upload.js");
|
|
2038
|
-
/* harmony import */ var _person_database_pageable_item_list__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./person_database/pageable_item_list */ "./src/person_database/pageable_item_list.js");
|
|
2039
|
-
/* harmony import */ var _person_database_person_database__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./person_database/person_database */ "./src/person_database/person_database.js");
|
|
2040
|
-
/* harmony import */ var _person_database_person_group__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./person_database/person_group */ "./src/person_database/person_group.js");
|
|
2041
|
-
/* harmony import */ var _person_database_person_image__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./person_database/person_image */ "./src/person_database/person_image.js");
|
|
2042
|
-
/* harmony import */ var _person_database_person__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./person_database/person */ "./src/person_database/person.js");
|
|
2043
|
-
/* harmony import */ var _person_database_search_person_detection__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./person_database/search_person_detection */ "./src/person_database/search_person_detection.js");
|
|
2044
|
-
/* harmony import */ var _person_database_search_person_image__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./person_database/search_person_image */ "./src/person_database/search_person_image.js");
|
|
2045
|
-
/* harmony import */ var _person_database_search_person_request__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./person_database/search_person_request */ "./src/person_database/search_person_request.js");
|
|
2046
|
-
/* harmony import */ var _person_database_search_person__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./person_database/search_person */ "./src/person_database/search_person.js");
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
;
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
;
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
;
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
;
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
;
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
;
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
;
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
;
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
class FaceSDK {
|
|
2141
|
-
static get instance() { return FaceSDK._instance }
|
|
2142
|
-
static _instance = new FaceSDK()
|
|
2143
|
-
|
|
2144
|
-
get version() { return this._version }
|
|
2145
|
-
_version
|
|
2146
|
-
|
|
2147
|
-
get serviceUrl() { return this._serviceUrl }
|
|
2148
|
-
_serviceUrl
|
|
2149
|
-
set serviceUrl(val) {
|
|
2150
|
-
this._serviceUrl = val
|
|
2151
|
-
this._setServiceUrl(val)
|
|
2152
|
-
}
|
|
2153
|
-
|
|
2154
|
-
get localizationDictionary() { return this._localizationDictionary }
|
|
2155
|
-
_localizationDictionary
|
|
2156
|
-
set localizationDictionary(val) {
|
|
2157
|
-
var temp = Object.assign({}, val);
|
|
2158
|
-
Object.freeze(temp);
|
|
2159
|
-
this._localizationDictionary = temp
|
|
2160
|
-
this._setLocalizationDictionary(val)
|
|
2161
|
-
}
|
|
2162
|
-
|
|
2163
|
-
get requestHeaders() { return this._requestHeaders }
|
|
2164
|
-
_requestHeaders
|
|
2165
|
-
set requestHeaders(val) {
|
|
2166
|
-
var temp = Object.assign({}, val);
|
|
2167
|
-
Object.freeze(temp);
|
|
2168
|
-
this._requestHeaders = temp
|
|
2169
|
-
this._setRequestHeaders(val)
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
get customization() { return this._customization }
|
|
2173
|
-
_customization = new _customization_customization__WEBPACK_IMPORTED_MODULE_5__.Customization()
|
|
2174
|
-
set customization(val) {
|
|
2175
|
-
this._customization = val
|
|
2176
|
-
this._customization._apply()
|
|
2177
|
-
}
|
|
2178
|
-
|
|
2179
|
-
set videoEncoderCompletion(completion) {
|
|
2180
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setVideoEncoderCompletion)(completion)
|
|
2181
|
-
}
|
|
2182
|
-
|
|
2183
|
-
get personDatabase() { return this._personDatabase }
|
|
2184
|
-
_personDatabase = new _person_database_person_database__WEBPACK_IMPORTED_MODULE_54__.PersonDatabase()
|
|
2185
|
-
|
|
2186
|
-
async isInitialized() {
|
|
2187
|
-
return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("isInitialized", [])
|
|
2188
|
-
}
|
|
2189
|
-
|
|
2190
|
-
async initialize(params) {
|
|
2191
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("initialize", [params?.config])
|
|
2192
|
-
|
|
2193
|
-
var jsonObject = JSON.parse(response)
|
|
2194
|
-
var success = jsonObject["success"]
|
|
2195
|
-
var error = jsonObject["error"]
|
|
2196
|
-
|
|
2197
|
-
if (success) await this._onInit()
|
|
2198
|
-
|
|
2199
|
-
return [success, _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitException.fromJson(error)]
|
|
2200
|
-
}
|
|
2201
|
-
|
|
2202
|
-
deinitialize() {
|
|
2203
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("deinitialize", [])
|
|
2204
|
-
}
|
|
2205
|
-
|
|
2206
|
-
async startFaceCapture(params) {
|
|
2207
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(params?.cameraSwitchCallback)
|
|
2208
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startFaceCapture", [params?.config])
|
|
2209
|
-
return _face_capture_face_capture_response__WEBPACK_IMPORTED_MODULE_24__.FaceCaptureResponse.fromJson(JSON.parse(response))
|
|
2210
|
-
}
|
|
2211
|
-
|
|
2212
|
-
stopFaceCapture() {
|
|
2213
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopFaceCapture", [])
|
|
2214
|
-
}
|
|
2215
|
-
|
|
2216
|
-
async startLiveness(params) {
|
|
2217
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(params?.cameraSwitchCallback)
|
|
2218
|
-
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setLivenessNotificationCompletion)(params?.notificationCompletion)
|
|
2219
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startLiveness", [params?.config])
|
|
2220
|
-
return _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_39__.LivenessResponse.fromJson(JSON.parse(response))
|
|
2221
|
-
}
|
|
2222
|
-
|
|
2223
|
-
stopLiveness() {
|
|
2224
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopLiveness", [])
|
|
2225
|
-
}
|
|
2226
|
-
|
|
2227
|
-
async matchFaces(request, params) {
|
|
2228
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("matchFaces", [request, params?.config])
|
|
2229
|
-
return _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_50__.MatchFacesResponse.fromJson(JSON.parse(response))
|
|
2230
|
-
}
|
|
2231
|
-
|
|
2232
|
-
async splitComparedFaces(facesPairs, similarityThreshold) {
|
|
2233
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("splitComparedFaces", [facesPairs, similarityThreshold])
|
|
2234
|
-
return _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_42__.ComparedFacesSplit.fromJson(JSON.parse(response))
|
|
2235
|
-
}
|
|
2236
|
-
|
|
2237
|
-
async detectFaces(request) {
|
|
2238
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("detectFaces", [request])
|
|
2239
|
-
return _detect_faces_detect_faces_response__WEBPACK_IMPORTED_MODULE_19__.DetectFacesResponse.fromJson(JSON.parse(response))
|
|
2240
|
-
}
|
|
2241
|
-
|
|
2242
|
-
async _onInit() {
|
|
2243
|
-
this._version = await this._getVersion()
|
|
2244
|
-
this._serviceUrl = await this._getServiceUrl()
|
|
2245
|
-
}
|
|
2246
|
-
|
|
2247
|
-
async _getVersion() {
|
|
2248
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getVersion", [])
|
|
2249
|
-
return _init_face_sdk_version__WEBPACK_IMPORTED_MODULE_8__.FaceSDKVersion.fromJson(JSON.parse(response))
|
|
2250
|
-
}
|
|
2251
|
-
|
|
2252
|
-
async _getServiceUrl() {
|
|
2253
|
-
return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getServiceUrl", [])
|
|
2254
|
-
}
|
|
2255
|
-
|
|
2256
|
-
_setServiceUrl(url) {
|
|
2257
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setServiceUrl", [url])
|
|
2258
|
-
}
|
|
2259
|
-
|
|
2260
|
-
_setLocalizationDictionary(dictionary) {
|
|
2261
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setLocalizationDictionary", [dictionary])
|
|
2262
|
-
}
|
|
2263
|
-
|
|
2264
|
-
_setRequestHeaders(dictionary) {
|
|
2265
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setRequestHeaders", [dictionary])
|
|
2266
|
-
}
|
|
2267
|
-
}
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
/***/ }),
|
|
2271
|
-
|
|
2272
|
-
/***/ "./src/init/face_sdk_version.js":
|
|
2273
|
-
/*!**************************************!*\
|
|
2274
|
-
!*** ./src/init/face_sdk_version.js ***!
|
|
2275
|
-
\**************************************/
|
|
2276
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2277
|
-
|
|
2278
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2279
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2280
|
-
/* harmony export */ FaceSDKVersion: () => (/* binding */ FaceSDKVersion)
|
|
2281
|
-
/* harmony export */ });
|
|
2282
|
-
class FaceSDKVersion {
|
|
2283
|
-
api
|
|
2284
|
-
core
|
|
2285
|
-
coreMode
|
|
2286
|
-
|
|
2287
|
-
static fromJson(jsonObject) {
|
|
2288
|
-
if (jsonObject == null) return null
|
|
2289
|
-
const result = new FaceSDKVersion()
|
|
2290
|
-
|
|
2291
|
-
result.api = jsonObject["api"]
|
|
2292
|
-
result.core = jsonObject["core"]
|
|
2293
|
-
result.coreMode = jsonObject["coreMode"]
|
|
2294
|
-
|
|
2295
|
-
return result
|
|
2296
|
-
}
|
|
2297
|
-
}
|
|
2298
|
-
|
|
2299
|
-
/***/ }),
|
|
2300
|
-
|
|
2301
|
-
/***/ "./src/init/init_config.js":
|
|
2302
|
-
/*!*********************************!*\
|
|
2303
|
-
!*** ./src/init/init_config.js ***!
|
|
2304
|
-
\*********************************/
|
|
2305
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2306
|
-
|
|
2307
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2308
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2309
|
-
/* harmony export */ InitConfig: () => (/* binding */ InitConfig)
|
|
2310
|
-
/* harmony export */ });
|
|
2311
|
-
class InitConfig {
|
|
2312
|
-
license
|
|
2313
|
-
licenseUpdate
|
|
2314
|
-
|
|
2315
|
-
constructor(license, params) {
|
|
2316
|
-
this.license = license
|
|
2317
|
-
this.licenseUpdate = params?.licenseUpdate
|
|
2318
|
-
}
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
/***/ }),
|
|
2322
|
-
|
|
2323
|
-
/***/ "./src/init/init_exception.js":
|
|
2324
|
-
/*!************************************!*\
|
|
2325
|
-
!*** ./src/init/init_exception.js ***!
|
|
2326
|
-
\************************************/
|
|
2327
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2328
|
-
|
|
2329
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2330
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2331
|
-
/* harmony export */ InitErrorCode: () => (/* binding */ InitErrorCode),
|
|
2332
|
-
/* harmony export */ InitException: () => (/* binding */ InitException)
|
|
2333
|
-
/* harmony export */ });
|
|
2334
|
-
/* harmony import */ var _license_exception__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./license_exception */ "./src/init/license_exception.js");
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
class InitException {
|
|
2338
|
-
code
|
|
2339
|
-
message
|
|
2340
|
-
underlyingError
|
|
2341
|
-
|
|
2342
|
-
static fromJson(jsonObject) {
|
|
2343
|
-
if (jsonObject == null) return null
|
|
2344
|
-
const result = new InitException()
|
|
2345
|
-
|
|
2346
|
-
result.code = jsonObject["code"]
|
|
2347
|
-
result.message = jsonObject["message"] ?? ""
|
|
2348
|
-
result.underlyingError = _license_exception__WEBPACK_IMPORTED_MODULE_0__.LicenseException.fromJson(jsonObject["underlyingError"])
|
|
2349
|
-
|
|
2350
|
-
return result
|
|
2351
|
-
}
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
|
-
const InitErrorCode = {
|
|
2355
|
-
IN_PROGRESS_ALREADY: 0,
|
|
2356
|
-
MISSING_CORE: 1,
|
|
2357
|
-
INTERNAL_CORE_ERROR: 2,
|
|
2358
|
-
BAD_LICENSE: 3,
|
|
2359
|
-
UNAVAILABLE: 4,
|
|
2360
|
-
CONTEXT_IS_NULL: 100,
|
|
2361
|
-
RESOURCE_DAT_ABSENT: 101,
|
|
2362
|
-
LICENSE_IS_NULL: 102,
|
|
2363
|
-
}
|
|
2364
|
-
|
|
2365
|
-
/***/ }),
|
|
2366
|
-
|
|
2367
|
-
/***/ "./src/init/license_exception.js":
|
|
2368
|
-
/*!***************************************!*\
|
|
2369
|
-
!*** ./src/init/license_exception.js ***!
|
|
2370
|
-
\***************************************/
|
|
2371
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2372
|
-
|
|
2373
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2374
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2375
|
-
/* harmony export */ LicenseException: () => (/* binding */ LicenseException),
|
|
2376
|
-
/* harmony export */ LicensingResultCode: () => (/* binding */ LicensingResultCode)
|
|
2377
|
-
/* harmony export */ });
|
|
2378
|
-
class LicenseException {
|
|
2379
|
-
code
|
|
2380
|
-
message
|
|
2381
|
-
|
|
2382
|
-
static fromJson(jsonObject) {
|
|
2383
|
-
if (jsonObject == null) return null
|
|
2384
|
-
const result = new LicenseException()
|
|
2385
|
-
|
|
2386
|
-
result.code = jsonObject["code"]
|
|
2387
|
-
result.message = jsonObject["message"] ?? ""
|
|
2388
|
-
|
|
2389
|
-
return result
|
|
2390
|
-
}
|
|
2391
|
-
}
|
|
2392
|
-
|
|
2393
|
-
const LicensingResultCode = {
|
|
2394
|
-
OK: 0,
|
|
2395
|
-
LICENSE_CORRUPTED: 1,
|
|
2396
|
-
INVALID_DATE: 2,
|
|
2397
|
-
INVALID_VERSION: 3,
|
|
2398
|
-
INVALID_DEVICE_ID: 4,
|
|
2399
|
-
INVALID_SYSTEM_OR_APP_ID: 5,
|
|
2400
|
-
NO_CAPABILITIES: 6,
|
|
2401
|
-
NO_AUTHENTICITY: 7,
|
|
2402
|
-
LICENSE_ABSENT: 8,
|
|
2403
|
-
NO_INTERNET: 9,
|
|
2404
|
-
NO_DATABASE: 10,
|
|
2405
|
-
DATABASE_INCORRECT: 11,
|
|
2406
|
-
}
|
|
2407
|
-
|
|
2408
|
-
/***/ }),
|
|
2409
|
-
|
|
2410
|
-
/***/ "./src/internal/bridge.js":
|
|
2411
|
-
/*!********************************!*\
|
|
2412
|
-
!*** ./src/internal/bridge.js ***!
|
|
2413
|
-
\********************************/
|
|
2414
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2415
|
-
|
|
2416
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2417
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2418
|
-
/* harmony export */ _setCameraSwitchCallback: () => (/* binding */ _setCameraSwitchCallback),
|
|
2419
|
-
/* harmony export */ _setCustomButtonTappedCompletion: () => (/* binding */ _setCustomButtonTappedCompletion),
|
|
2420
|
-
/* harmony export */ _setLivenessNotificationCompletion: () => (/* binding */ _setLivenessNotificationCompletion),
|
|
2421
|
-
/* harmony export */ _setVideoEncoderCompletion: () => (/* binding */ _setVideoEncoderCompletion),
|
|
2422
|
-
/* harmony export */ exec: () => (/* binding */ exec)
|
|
2423
|
-
/* harmony export */ });
|
|
2424
|
-
/* harmony import */ var _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../liveness/liveness_notification */ "./src/liveness/liveness_notification.js");
|
|
2425
|
-
/* harmony import */ var _cordova__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cordova */ "./src/internal/cordova.js");
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
const { RNFaceSDK } = _cordova__WEBPACK_IMPORTED_MODULE_1__.NativeModules
|
|
2430
|
-
var eventManager = new _cordova__WEBPACK_IMPORTED_MODULE_1__.NativeEventEmitter(RNFaceSDK)
|
|
2431
|
-
|
|
2432
|
-
async function exec(name, params) {
|
|
2433
|
-
return RNFaceSDK.exec(name, params)
|
|
2434
|
-
}
|
|
2435
|
-
|
|
2436
|
-
function _setEvent(id, completion) {
|
|
2437
|
-
eventManager.removeAllListeners(id)
|
|
2438
|
-
if (completion != null)
|
|
2439
|
-
eventManager.addListener(id, completion)
|
|
2440
|
-
}
|
|
2441
|
-
|
|
2442
|
-
function _setCustomButtonTappedCompletion(completion) {
|
|
2443
|
-
_setEvent("onCustomButtonTappedEvent", completion)
|
|
2444
|
-
}
|
|
2445
|
-
|
|
2446
|
-
function _setVideoEncoderCompletion(completion) {
|
|
2447
|
-
_setEvent("video_encoder_completion", (json) => {
|
|
2448
|
-
var jsonObject = JSON.parse(json)
|
|
2449
|
-
var transactionId = jsonObject["transactionId"]
|
|
2450
|
-
var success = jsonObject["success"]
|
|
2451
|
-
completion(transactionId, success)
|
|
2452
|
-
})
|
|
2453
|
-
}
|
|
2454
|
-
|
|
2455
|
-
function _setLivenessNotificationCompletion(completion) {
|
|
2456
|
-
_setEvent("livenessNotificationEvent", (json) => {
|
|
2457
|
-
var livenessNotification = _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_0__.LivenessNotification.fromJson(JSON.parse(json))
|
|
2458
|
-
completion(livenessNotification)
|
|
2459
|
-
})
|
|
2460
|
-
}
|
|
2461
|
-
|
|
2462
|
-
function _setCameraSwitchCallback(completion) {
|
|
2463
|
-
_setEvent("cameraSwitchEvent", completion)
|
|
2464
|
-
}
|
|
2465
|
-
|
|
2466
|
-
/***/ }),
|
|
2467
|
-
|
|
2468
|
-
/***/ "./src/internal/cordova.js":
|
|
2469
|
-
/*!*********************************!*\
|
|
2470
|
-
!*** ./src/internal/cordova.js ***!
|
|
2471
|
-
\*********************************/
|
|
2472
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2473
|
-
|
|
2474
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2475
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2476
|
-
/* harmony export */ NativeEventEmitter: () => (/* binding */ NativeEventEmitter),
|
|
2477
|
-
/* harmony export */ NativeModules: () => (/* binding */ NativeModules)
|
|
2478
|
-
/* harmony export */ });
|
|
2479
|
-
var _exec = (completion, params) => cordova.exec(completion, null, "FaceSDK", "exec", params)
|
|
2480
|
-
|
|
2481
|
-
const NativeModules = {
|
|
2482
|
-
RNFaceSDK: {
|
|
2483
|
-
exec: async (name, params) => new Promise((resolve, _) => _exec(data => resolve(data), [name, ...params]))
|
|
2484
|
-
}
|
|
2485
|
-
}
|
|
2486
|
-
|
|
2487
|
-
class NativeEventEmitter {
|
|
2488
|
-
addListener(id, completion) {
|
|
2489
|
-
_exec(completion, ["setEvent", id])
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2492
|
-
removeAllListeners(id) {
|
|
2493
|
-
_exec(null, ["setEvent", id])
|
|
2494
|
-
}
|
|
2495
|
-
}
|
|
2496
|
-
|
|
2497
|
-
/***/ }),
|
|
2498
|
-
|
|
2499
|
-
/***/ "./src/liveness/liveness_backend_exception.js":
|
|
2500
|
-
/*!****************************************************!*\
|
|
2501
|
-
!*** ./src/liveness/liveness_backend_exception.js ***!
|
|
2502
|
-
\****************************************************/
|
|
2503
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2504
|
-
|
|
2505
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2506
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2507
|
-
/* harmony export */ LivenessBackendErrorCode: () => (/* binding */ LivenessBackendErrorCode),
|
|
2508
|
-
/* harmony export */ LivenessBackendException: () => (/* binding */ LivenessBackendException)
|
|
2509
|
-
/* harmony export */ });
|
|
2510
|
-
class LivenessBackendException {
|
|
2511
|
-
code
|
|
2512
|
-
message
|
|
2513
|
-
|
|
2514
|
-
static fromJson(jsonObject) {
|
|
2515
|
-
if (jsonObject == null) return null
|
|
2516
|
-
const result = new LivenessBackendException()
|
|
2517
|
-
|
|
2518
|
-
result.code = jsonObject["code"]
|
|
2519
|
-
result.message = jsonObject["message"] ?? ""
|
|
2520
|
-
|
|
2521
|
-
return result
|
|
2522
|
-
}
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
|
-
const LivenessBackendErrorCode = {
|
|
2526
|
-
UNDEFINED: -1,
|
|
2527
|
-
NO_LICENSE: 200,
|
|
2528
|
-
NOT_INITIALIZED: 201,
|
|
2529
|
-
COMMAND_IS_NOT_SUPPORTED: 202,
|
|
2530
|
-
PARAMS_READ_ERROR: 203,
|
|
2531
|
-
LOW_QUALITY: 231,
|
|
2532
|
-
TRACK_BREAK: 246,
|
|
2533
|
-
CLOSED_EYES_DETECTED: 230,
|
|
2534
|
-
HIGH_ASYMMETRY: 232,
|
|
2535
|
-
FACE_OVER_EMOTIONAL: 233,
|
|
2536
|
-
SUNGLASSES_DETECTED: 234,
|
|
2537
|
-
SMALL_AGE: 235,
|
|
2538
|
-
HEADDRESS_DETECTED: 236,
|
|
2539
|
-
MEDICINE_MASK_DETECTED: 239,
|
|
2540
|
-
OCCLUSION_DETECTED: 240,
|
|
2541
|
-
FOREHEAD_GLASSES_DETECTED: 242,
|
|
2542
|
-
MOUTH_OPENED: 243,
|
|
2543
|
-
ART_MASK_DETECTED: 244,
|
|
2544
|
-
NOT_MATCHED: 237,
|
|
2545
|
-
IMAGES_COUNT_LIMIT_EXCEEDED: 238,
|
|
2546
|
-
ELECTRONIC_DEVICE_DETECTED: 245,
|
|
2547
|
-
WRONG_GEO: 247,
|
|
2548
|
-
WRONG_OF: 248,
|
|
2549
|
-
WRONG_VIEW: 249,
|
|
2550
|
-
}
|
|
2551
|
-
|
|
2552
|
-
/***/ }),
|
|
2553
|
-
|
|
2554
|
-
/***/ "./src/liveness/liveness_config.js":
|
|
2555
|
-
/*!*****************************************!*\
|
|
2556
|
-
!*** ./src/liveness/liveness_config.js ***!
|
|
2557
|
-
\*****************************************/
|
|
2558
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2559
|
-
|
|
2560
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2561
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2562
|
-
/* harmony export */ LivenessConfig: () => (/* binding */ LivenessConfig),
|
|
2563
|
-
/* harmony export */ LivenessSkipStep: () => (/* binding */ LivenessSkipStep),
|
|
2564
|
-
/* harmony export */ LivenessType: () => (/* binding */ LivenessType),
|
|
2565
|
-
/* harmony export */ RecordingProcess: () => (/* binding */ RecordingProcess)
|
|
2566
|
-
/* harmony export */ });
|
|
2567
|
-
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../customization/camera_position */ "./src/customization/camera_position.js");
|
|
2568
|
-
/* harmony import */ var _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../customization/screen_orientation */ "./src/customization/screen_orientation.js");
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
class LivenessConfig {
|
|
2573
|
-
copyright
|
|
2574
|
-
cameraSwitchEnabled
|
|
2575
|
-
closeButtonEnabled
|
|
2576
|
-
torchButtonEnabled
|
|
2577
|
-
vibrateOnSteps
|
|
2578
|
-
cameraPositionIOS
|
|
2579
|
-
screenOrientation
|
|
2580
|
-
cameraPositionAndroid
|
|
2581
|
-
locationTrackingEnabled
|
|
2582
|
-
attemptsCount
|
|
2583
|
-
recordingProcess
|
|
2584
|
-
livenessType
|
|
2585
|
-
tag
|
|
2586
|
-
skipStep
|
|
2587
|
-
metadata
|
|
2588
|
-
|
|
2589
|
-
constructor(params) {
|
|
2590
|
-
this.copyright = params?.copyright ?? true
|
|
2591
|
-
this.cameraSwitchEnabled = params?.cameraSwitchEnabled ?? false
|
|
2592
|
-
this.closeButtonEnabled = params?.closeButtonEnabled ?? true
|
|
2593
|
-
this.torchButtonEnabled = params?.torchButtonEnabled ?? true
|
|
2594
|
-
this.vibrateOnSteps = params?.vibrateOnSteps ?? true
|
|
2595
|
-
this.cameraPositionIOS = params?.cameraPositionIOS ?? _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__.CameraPosition.FRONT
|
|
2596
|
-
this.screenOrientation = params?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
2597
|
-
this.locationTrackingEnabled = params?.locationTrackingEnabled ?? true
|
|
2598
|
-
this.attemptsCount = params?.attemptsCount ?? 0
|
|
2599
|
-
this.recordingProcess = params?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
2600
|
-
this.livenessType = params?.livenessType ?? LivenessType.ACTIVE
|
|
2601
|
-
this.skipStep = params?.skipStep ?? []
|
|
2602
|
-
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
2603
|
-
this.tag = params?.tag
|
|
2604
|
-
this.metadata = params?.metadata
|
|
2605
|
-
}
|
|
2606
|
-
}
|
|
2607
|
-
|
|
2608
|
-
const RecordingProcess = {
|
|
2609
|
-
ASYNCHRONOUS_UPLOAD: 0,
|
|
2610
|
-
SYNCHRONOUS_UPLOAD: 1,
|
|
2611
|
-
NOT_UPLOAD: 2,
|
|
2612
|
-
}
|
|
2613
|
-
|
|
2614
|
-
const LivenessType = {
|
|
2615
|
-
ACTIVE: 0,
|
|
2616
|
-
PASSIVE: 1,
|
|
2617
|
-
}
|
|
2618
|
-
|
|
2619
|
-
const LivenessSkipStep = {
|
|
2620
|
-
ONBOARDING_STEP: 0,
|
|
2621
|
-
SUCCESS_STEP: 1,
|
|
2622
|
-
}
|
|
2623
|
-
|
|
2624
|
-
/***/ }),
|
|
2625
|
-
|
|
2626
|
-
/***/ "./src/liveness/liveness_exception.js":
|
|
2627
|
-
/*!********************************************!*\
|
|
2628
|
-
!*** ./src/liveness/liveness_exception.js ***!
|
|
2629
|
-
\********************************************/
|
|
2630
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2631
|
-
|
|
2632
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2633
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2634
|
-
/* harmony export */ LivenessErrorCode: () => (/* binding */ LivenessErrorCode),
|
|
2635
|
-
/* harmony export */ LivenessException: () => (/* binding */ LivenessException)
|
|
2636
|
-
/* harmony export */ });
|
|
2637
|
-
/* harmony import */ var _liveness_backend_exception__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./liveness_backend_exception */ "./src/liveness/liveness_backend_exception.js");
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
class LivenessException {
|
|
2641
|
-
code
|
|
2642
|
-
message
|
|
2643
|
-
underlyingError
|
|
2644
|
-
|
|
2645
|
-
static fromJson(jsonObject) {
|
|
2646
|
-
if (jsonObject == null) return null
|
|
2647
|
-
const result = new LivenessException()
|
|
2648
|
-
|
|
2649
|
-
result.code = jsonObject["code"]
|
|
2650
|
-
result.message = jsonObject["message"] ?? ""
|
|
2651
|
-
result.underlyingError = _liveness_backend_exception__WEBPACK_IMPORTED_MODULE_0__.LivenessBackendException.fromJson(jsonObject["underlyingError"])
|
|
2652
|
-
|
|
2653
|
-
return result
|
|
2654
|
-
}
|
|
2655
|
-
}
|
|
2656
|
-
|
|
2657
|
-
const LivenessErrorCode = {
|
|
2658
|
-
NOT_INITIALIZED: 0,
|
|
2659
|
-
NO_LICENSE: 1,
|
|
2660
|
-
API_CALL_FAILED: 2,
|
|
2661
|
-
SESSION_START_FAILED: 3,
|
|
2662
|
-
CANCELLED: 4,
|
|
2663
|
-
PROCESSING_TIMEOUT: 5,
|
|
2664
|
-
PROCESSING_FAILED: 6,
|
|
2665
|
-
PROCESSING_FRAME_FAILED: 7,
|
|
2666
|
-
APPLICATION_INACTIVE: 8,
|
|
2667
|
-
CONTEXT_IS_NULL: 9,
|
|
2668
|
-
IN_PROGRESS_ALREADY: 10,
|
|
2669
|
-
ZOOM_NOT_SUPPORTED: 11,
|
|
2670
|
-
CAMERA_NO_PERMISSION: 12,
|
|
2671
|
-
CAMERA_NOT_AVAILABLE: 13,
|
|
2672
|
-
}
|
|
2673
|
-
|
|
2674
|
-
/***/ }),
|
|
2675
|
-
|
|
2676
|
-
/***/ "./src/liveness/liveness_notification.js":
|
|
2677
|
-
/*!***********************************************!*\
|
|
2678
|
-
!*** ./src/liveness/liveness_notification.js ***!
|
|
2679
|
-
\***********************************************/
|
|
2680
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2681
|
-
|
|
2682
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2683
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2684
|
-
/* harmony export */ LivenessNotification: () => (/* binding */ LivenessNotification),
|
|
2685
|
-
/* harmony export */ LivenessProcessStatus: () => (/* binding */ LivenessProcessStatus)
|
|
2686
|
-
/* harmony export */ });
|
|
2687
|
-
/* harmony import */ var _liveness_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./liveness_response */ "./src/liveness/liveness_response.js");
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
class LivenessNotification {
|
|
2691
|
-
status
|
|
2692
|
-
response
|
|
2693
|
-
|
|
2694
|
-
static fromJson(jsonObject) {
|
|
2695
|
-
if (jsonObject == null) return null
|
|
2696
|
-
const result = new LivenessNotification()
|
|
2697
|
-
|
|
2698
|
-
result.status = jsonObject["status"]
|
|
2699
|
-
result.response = _liveness_response__WEBPACK_IMPORTED_MODULE_0__.LivenessResponse.fromJson(jsonObject["response"])
|
|
2700
|
-
|
|
2701
|
-
return result
|
|
2702
|
-
}
|
|
2703
|
-
}
|
|
2704
|
-
|
|
2705
|
-
const LivenessProcessStatus = {
|
|
2706
|
-
START: 0,
|
|
2707
|
-
PREPARING: 1,
|
|
2708
|
-
NEW_SESSION: 2,
|
|
2709
|
-
NEXT_STAGE: 3,
|
|
2710
|
-
SECTOR_CHANGED: 4,
|
|
2711
|
-
PROGRESS: 5,
|
|
2712
|
-
LOW_BRIGHTNESS: 6,
|
|
2713
|
-
FIT_FACE: 7,
|
|
2714
|
-
MOVE_AWAY: 8,
|
|
2715
|
-
MOVE_CLOSER: 9,
|
|
2716
|
-
TURN_HEAD: 10,
|
|
2717
|
-
PROCESSING: 11,
|
|
2718
|
-
FAILED: 12,
|
|
2719
|
-
RETRY: 13,
|
|
2720
|
-
SUCCESS: 14,
|
|
2721
|
-
}
|
|
2722
|
-
|
|
2723
|
-
/***/ }),
|
|
2724
|
-
|
|
2725
|
-
/***/ "./src/liveness/liveness_response.js":
|
|
2726
|
-
/*!*******************************************!*\
|
|
2727
|
-
!*** ./src/liveness/liveness_response.js ***!
|
|
2728
|
-
\*******************************************/
|
|
2729
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2730
|
-
|
|
2731
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2732
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2733
|
-
/* harmony export */ LivenessResponse: () => (/* binding */ LivenessResponse),
|
|
2734
|
-
/* harmony export */ LivenessStatus: () => (/* binding */ LivenessStatus)
|
|
2735
|
-
/* harmony export */ });
|
|
2736
|
-
/* harmony import */ var _liveness_exception__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./liveness_exception */ "./src/liveness/liveness_exception.js");
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
class LivenessResponse {
|
|
2741
|
-
image
|
|
2742
|
-
liveness
|
|
2743
|
-
tag
|
|
2744
|
-
transactionId
|
|
2745
|
-
estimatedAge
|
|
2746
|
-
error
|
|
2747
|
-
|
|
2748
|
-
static fromJson(jsonObject) {
|
|
2749
|
-
if (jsonObject == null) return null
|
|
2750
|
-
const result = new LivenessResponse()
|
|
2751
|
-
|
|
2752
|
-
result.image = jsonObject["image"]
|
|
2753
|
-
result.liveness = jsonObject["liveness"]
|
|
2754
|
-
result.tag = jsonObject["tag"]
|
|
2755
|
-
result.transactionId = jsonObject["transactionId"]
|
|
2756
|
-
result.estimatedAge = jsonObject["estimatedAge"]
|
|
2757
|
-
result.error = _liveness_exception__WEBPACK_IMPORTED_MODULE_0__.LivenessException.fromJson(jsonObject["error"])
|
|
2758
|
-
|
|
2759
|
-
return result
|
|
2760
|
-
}
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
const LivenessStatus = {
|
|
2764
|
-
PASSED: 0,
|
|
2765
|
-
UNKNOWN: 1,
|
|
2766
|
-
}
|
|
2767
|
-
|
|
2768
|
-
/***/ }),
|
|
2769
|
-
|
|
2770
|
-
/***/ "./src/match_faces/compared_face.js":
|
|
2771
|
-
/*!******************************************!*\
|
|
2772
|
-
!*** ./src/match_faces/compared_face.js ***!
|
|
2773
|
-
\******************************************/
|
|
2774
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2775
|
-
|
|
2776
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2777
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2778
|
-
/* harmony export */ ComparedFace: () => (/* binding */ ComparedFace)
|
|
2779
|
-
/* harmony export */ });
|
|
2780
|
-
/* harmony import */ var _match_faces_image__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./match_faces_image */ "./src/match_faces/match_faces_image.js");
|
|
2781
|
-
/* harmony import */ var _match_faces_detection_face__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./match_faces_detection_face */ "./src/match_faces/match_faces_detection_face.js");
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
class ComparedFace {
|
|
2786
|
-
imageIndex
|
|
2787
|
-
image
|
|
2788
|
-
faceIndex
|
|
2789
|
-
face
|
|
2790
|
-
|
|
2791
|
-
static fromJson(jsonObject) {
|
|
2792
|
-
if (jsonObject == null) return null
|
|
2793
|
-
const result = new ComparedFace()
|
|
2794
|
-
|
|
2795
|
-
result.imageIndex = jsonObject["imageIndex"]
|
|
2796
|
-
result.image = _match_faces_image__WEBPACK_IMPORTED_MODULE_0__.MatchFacesImage.fromJson(jsonObject["image"])
|
|
2797
|
-
result.faceIndex = jsonObject["faceIndex"]
|
|
2798
|
-
result.face = _match_faces_detection_face__WEBPACK_IMPORTED_MODULE_1__.MatchFacesDetectionFace.fromJson(jsonObject["face"])
|
|
2799
|
-
|
|
2800
|
-
return result
|
|
2801
|
-
}
|
|
2802
|
-
}
|
|
2803
|
-
|
|
2804
|
-
/***/ }),
|
|
2805
|
-
|
|
2806
|
-
/***/ "./src/match_faces/compared_faces_pair.js":
|
|
2807
|
-
/*!************************************************!*\
|
|
2808
|
-
!*** ./src/match_faces/compared_faces_pair.js ***!
|
|
2809
|
-
\************************************************/
|
|
2810
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2811
|
-
|
|
2812
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2813
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2814
|
-
/* harmony export */ ComparedFacesPair: () => (/* binding */ ComparedFacesPair)
|
|
2815
|
-
/* harmony export */ });
|
|
2816
|
-
/* harmony import */ var _compared_face__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./compared_face */ "./src/match_faces/compared_face.js");
|
|
2817
|
-
/* harmony import */ var _match_faces_exception__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./match_faces_exception */ "./src/match_faces/match_faces_exception.js");
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
class ComparedFacesPair {
|
|
2822
|
-
first
|
|
2823
|
-
second
|
|
2824
|
-
similarity
|
|
2825
|
-
score
|
|
2826
|
-
error
|
|
2827
|
-
|
|
2828
|
-
static fromJson(jsonObject) {
|
|
2829
|
-
if (jsonObject == null) return null
|
|
2830
|
-
const result = new ComparedFacesPair()
|
|
2831
|
-
|
|
2832
|
-
result.first = _compared_face__WEBPACK_IMPORTED_MODULE_0__.ComparedFace.fromJson(jsonObject["first"])
|
|
2833
|
-
result.second = _compared_face__WEBPACK_IMPORTED_MODULE_0__.ComparedFace.fromJson(jsonObject["second"])
|
|
2834
|
-
result.similarity = jsonObject["similarity"]
|
|
2835
|
-
result.score = jsonObject["score"]
|
|
2836
|
-
result.error = _match_faces_exception__WEBPACK_IMPORTED_MODULE_1__.MatchFacesException.fromJson(jsonObject["error"])
|
|
2837
|
-
|
|
2838
|
-
return result
|
|
2839
|
-
}
|
|
2840
|
-
}
|
|
2841
|
-
|
|
2842
|
-
/***/ }),
|
|
2843
|
-
|
|
2844
|
-
/***/ "./src/match_faces/compared_faces_split.js":
|
|
2845
|
-
/*!*************************************************!*\
|
|
2846
|
-
!*** ./src/match_faces/compared_faces_split.js ***!
|
|
2847
|
-
\*************************************************/
|
|
2848
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2849
|
-
|
|
2850
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2851
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2852
|
-
/* harmony export */ ComparedFacesSplit: () => (/* binding */ ComparedFacesSplit)
|
|
2853
|
-
/* harmony export */ });
|
|
2854
|
-
/* harmony import */ var _compared_faces_pair__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./compared_faces_pair */ "./src/match_faces/compared_faces_pair.js");
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
class ComparedFacesSplit {
|
|
2858
|
-
matchedFaces
|
|
2859
|
-
unmatchedFaces
|
|
2860
|
-
|
|
2861
|
-
static fromJson(jsonObject) {
|
|
2862
|
-
if (jsonObject == null) return null
|
|
2863
|
-
const result = new ComparedFacesSplit()
|
|
2864
|
-
|
|
2865
|
-
result.matchedFaces = []
|
|
2866
|
-
if (jsonObject["matchedFaces"] != null)
|
|
2867
|
-
for (const item of jsonObject["matchedFaces"])
|
|
2868
|
-
result.matchedFaces.push(_compared_faces_pair__WEBPACK_IMPORTED_MODULE_0__.ComparedFacesPair.fromJson(item))
|
|
2869
|
-
result.unmatchedFaces = []
|
|
2870
|
-
if (jsonObject["unmatchedFaces"] != null)
|
|
2871
|
-
for (const item of jsonObject["unmatchedFaces"])
|
|
2872
|
-
result.unmatchedFaces.push(_compared_faces_pair__WEBPACK_IMPORTED_MODULE_0__.ComparedFacesPair.fromJson(item))
|
|
2873
|
-
|
|
2874
|
-
return result
|
|
2875
|
-
}
|
|
2876
|
-
}
|
|
2877
|
-
|
|
2878
|
-
/***/ }),
|
|
2879
|
-
|
|
2880
|
-
/***/ "./src/match_faces/match_faces_backend_exception.js":
|
|
2881
|
-
/*!**********************************************************!*\
|
|
2882
|
-
!*** ./src/match_faces/match_faces_backend_exception.js ***!
|
|
2883
|
-
\**********************************************************/
|
|
2884
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2885
|
-
|
|
2886
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2887
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2888
|
-
/* harmony export */ MatchFacesBackendException: () => (/* binding */ MatchFacesBackendException)
|
|
2889
|
-
/* harmony export */ });
|
|
2890
|
-
class MatchFacesBackendException {
|
|
2891
|
-
code
|
|
2892
|
-
message
|
|
2893
|
-
|
|
2894
|
-
static fromJson(jsonObject) {
|
|
2895
|
-
if (jsonObject == null) return null
|
|
2896
|
-
const result = new MatchFacesBackendException()
|
|
2897
|
-
|
|
2898
|
-
result.code = jsonObject["code"]
|
|
2899
|
-
result.message = jsonObject["message"] ?? ""
|
|
2900
|
-
|
|
2901
|
-
return result
|
|
2902
|
-
}
|
|
2903
|
-
}
|
|
2904
|
-
|
|
2905
|
-
/***/ }),
|
|
2906
|
-
|
|
2907
|
-
/***/ "./src/match_faces/match_faces_config.js":
|
|
2908
|
-
/*!***********************************************!*\
|
|
2909
|
-
!*** ./src/match_faces/match_faces_config.js ***!
|
|
2910
|
-
\***********************************************/
|
|
2911
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2912
|
-
|
|
2913
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2914
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2915
|
-
/* harmony export */ MatchFacesConfig: () => (/* binding */ MatchFacesConfig),
|
|
2916
|
-
/* harmony export */ ProcessingMode: () => (/* binding */ ProcessingMode)
|
|
2917
|
-
/* harmony export */ });
|
|
2918
|
-
class MatchFacesConfig {
|
|
2919
|
-
processingMode
|
|
2920
|
-
|
|
2921
|
-
constructor(params) {
|
|
2922
|
-
this.processingMode = params?.processingMode ?? ProcessingMode.ONLINE
|
|
2923
|
-
}
|
|
2924
|
-
}
|
|
2925
|
-
|
|
2926
|
-
const ProcessingMode = {
|
|
2927
|
-
ONLINE: 0,
|
|
2928
|
-
OFFLINE: 1,
|
|
2929
|
-
}
|
|
2930
|
-
|
|
2931
|
-
/***/ }),
|
|
2932
|
-
|
|
2933
|
-
/***/ "./src/match_faces/match_faces_detection.js":
|
|
2934
|
-
/*!**************************************************!*\
|
|
2935
|
-
!*** ./src/match_faces/match_faces_detection.js ***!
|
|
2936
|
-
\**************************************************/
|
|
2937
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2938
|
-
|
|
2939
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2940
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2941
|
-
/* harmony export */ MatchFacesDetection: () => (/* binding */ MatchFacesDetection)
|
|
2942
|
-
/* harmony export */ });
|
|
2943
|
-
/* harmony import */ var _match_faces_image__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./match_faces_image */ "./src/match_faces/match_faces_image.js");
|
|
2944
|
-
/* harmony import */ var _match_faces_detection_face__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./match_faces_detection_face */ "./src/match_faces/match_faces_detection_face.js");
|
|
2945
|
-
/* harmony import */ var _match_faces_exception__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./match_faces_exception */ "./src/match_faces/match_faces_exception.js");
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
class MatchFacesDetection {
|
|
2951
|
-
imageIndex
|
|
2952
|
-
image
|
|
2953
|
-
faces
|
|
2954
|
-
error
|
|
2955
|
-
|
|
2956
|
-
static fromJson(jsonObject) {
|
|
2957
|
-
if (jsonObject == null) return null
|
|
2958
|
-
const result = new MatchFacesDetection()
|
|
2959
|
-
|
|
2960
|
-
result.imageIndex = jsonObject["imageIndex"]
|
|
2961
|
-
result.image = _match_faces_image__WEBPACK_IMPORTED_MODULE_0__.MatchFacesImage.fromJson(jsonObject["image"])
|
|
2962
|
-
result.faces = []
|
|
2963
|
-
if (jsonObject["faces"] != null)
|
|
2964
|
-
for (const item of jsonObject["faces"])
|
|
2965
|
-
result.faces.push(_match_faces_detection_face__WEBPACK_IMPORTED_MODULE_1__.MatchFacesDetectionFace.fromJson(item))
|
|
2966
|
-
result.error = _match_faces_exception__WEBPACK_IMPORTED_MODULE_2__.MatchFacesException.fromJson(jsonObject["error"])
|
|
2967
|
-
|
|
2968
|
-
return result
|
|
2969
|
-
}
|
|
2970
|
-
}
|
|
2971
|
-
|
|
2972
|
-
/***/ }),
|
|
2973
|
-
|
|
2974
|
-
/***/ "./src/match_faces/match_faces_detection_face.js":
|
|
2975
|
-
/*!*******************************************************!*\
|
|
2976
|
-
!*** ./src/match_faces/match_faces_detection_face.js ***!
|
|
2977
|
-
\*******************************************************/
|
|
2978
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2979
|
-
|
|
2980
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2981
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2982
|
-
/* harmony export */ MatchFacesDetectionFace: () => (/* binding */ MatchFacesDetectionFace)
|
|
2983
|
-
/* harmony export */ });
|
|
2984
|
-
/* harmony import */ var _image_params_point__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../image_params/point */ "./src/image_params/point.js");
|
|
2985
|
-
/* harmony import */ var _image_params_rect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../image_params/rect */ "./src/image_params/rect.js");
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
class MatchFacesDetectionFace {
|
|
2990
|
-
faceIndex
|
|
2991
|
-
landmarks
|
|
2992
|
-
faceRect
|
|
2993
|
-
rotationAngle
|
|
2994
|
-
originalRect
|
|
2995
|
-
crop
|
|
2996
|
-
|
|
2997
|
-
static fromJson(jsonObject) {
|
|
2998
|
-
if (jsonObject == null) return null
|
|
2999
|
-
const result = new MatchFacesDetectionFace()
|
|
3000
|
-
|
|
3001
|
-
result.faceIndex = jsonObject["faceIndex"]
|
|
3002
|
-
result.landmarks = []
|
|
3003
|
-
if (jsonObject["landmarks"] != null)
|
|
3004
|
-
for (const item of jsonObject["landmarks"])
|
|
3005
|
-
result.landmarks.push(_image_params_point__WEBPACK_IMPORTED_MODULE_0__.Point.fromJson(item))
|
|
3006
|
-
result.faceRect = _image_params_rect__WEBPACK_IMPORTED_MODULE_1__.Rect.fromJson(jsonObject["faceRect"])
|
|
3007
|
-
result.rotationAngle = jsonObject["rotationAngle"]
|
|
3008
|
-
result.originalRect = _image_params_rect__WEBPACK_IMPORTED_MODULE_1__.Rect.fromJson(jsonObject["originalRect"])
|
|
3009
|
-
result.crop = jsonObject["crop"]
|
|
3010
|
-
|
|
3011
|
-
return result
|
|
3012
|
-
}
|
|
3013
|
-
}
|
|
3014
|
-
|
|
3015
|
-
/***/ }),
|
|
3016
|
-
|
|
3017
|
-
/***/ "./src/match_faces/match_faces_exception.js":
|
|
3018
|
-
/*!**************************************************!*\
|
|
3019
|
-
!*** ./src/match_faces/match_faces_exception.js ***!
|
|
3020
|
-
\**************************************************/
|
|
3021
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3022
|
-
|
|
3023
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3024
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3025
|
-
/* harmony export */ MatchFacesErrorCode: () => (/* binding */ MatchFacesErrorCode),
|
|
3026
|
-
/* harmony export */ MatchFacesException: () => (/* binding */ MatchFacesException)
|
|
3027
|
-
/* harmony export */ });
|
|
3028
|
-
/* harmony import */ var _match_faces_backend_exception__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./match_faces_backend_exception */ "./src/match_faces/match_faces_backend_exception.js");
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
class MatchFacesException {
|
|
3032
|
-
code
|
|
3033
|
-
message
|
|
3034
|
-
underlyingError
|
|
3035
|
-
|
|
3036
|
-
static fromJson(jsonObject) {
|
|
3037
|
-
if (jsonObject == null) return null
|
|
3038
|
-
const result = new MatchFacesException()
|
|
3039
|
-
|
|
3040
|
-
result.code = jsonObject["code"]
|
|
3041
|
-
result.message = jsonObject["message"] ?? ""
|
|
3042
|
-
result.underlyingError = _match_faces_backend_exception__WEBPACK_IMPORTED_MODULE_0__.MatchFacesBackendException.fromJson(jsonObject["underlyingError"])
|
|
3043
|
-
|
|
3044
|
-
return result
|
|
3045
|
-
}
|
|
3046
|
-
}
|
|
3047
|
-
|
|
3048
|
-
const MatchFacesErrorCode = {
|
|
3049
|
-
IMAGE_EMPTY: 0,
|
|
3050
|
-
FACE_NOT_DETECTED: 1,
|
|
3051
|
-
LANDMARKS_NOT_DETECTED: 2,
|
|
3052
|
-
FACE_ALIGNER_FAILED: 3,
|
|
3053
|
-
DESCRIPTOR_EXTRACTOR_ERROR: 4,
|
|
3054
|
-
IMAGES_COUNT_LIMIT_EXCEEDED: 5,
|
|
3055
|
-
API_CALL_FAILED: 6,
|
|
3056
|
-
PROCESSING_FAILED: 7,
|
|
3057
|
-
NO_LICENSE: 8,
|
|
3058
|
-
}
|
|
3059
|
-
|
|
3060
|
-
/***/ }),
|
|
3061
|
-
|
|
3062
|
-
/***/ "./src/match_faces/match_faces_image.js":
|
|
3063
|
-
/*!**********************************************!*\
|
|
3064
|
-
!*** ./src/match_faces/match_faces_image.js ***!
|
|
3065
|
-
\**********************************************/
|
|
22
|
+
/***/ "./src/customization/screen_orientation.js":
|
|
23
|
+
/*!*************************************************!*\
|
|
24
|
+
!*** ./src/customization/screen_orientation.js ***!
|
|
25
|
+
\*************************************************/
|
|
3066
26
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3067
27
|
|
|
3068
28
|
__webpack_require__.r(__webpack_exports__);
|
|
3069
29
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3070
|
-
/* harmony export */
|
|
30
|
+
/* harmony export */ ScreenOrientation: () => (/* binding */ ScreenOrientation)
|
|
3071
31
|
/* harmony export */ });
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
detectAll
|
|
3076
|
-
identifier
|
|
3077
|
-
|
|
3078
|
-
constructor(image, imageType, params) {
|
|
3079
|
-
this.image = image
|
|
3080
|
-
this.imageType = imageType
|
|
3081
|
-
this.detectAll = params?.detectAll ?? false
|
|
3082
|
-
this.identifier = ""
|
|
3083
|
-
}
|
|
3084
|
-
|
|
3085
|
-
static fromJson(jsonObject) {
|
|
3086
|
-
if (jsonObject == null) return null
|
|
3087
|
-
const result = new MatchFacesImage()
|
|
3088
|
-
|
|
3089
|
-
result.image = jsonObject["image"]
|
|
3090
|
-
result.imageType = jsonObject["imageType"]
|
|
3091
|
-
result.detectAll = jsonObject["detectAll"]
|
|
3092
|
-
result.identifier = jsonObject["identifier"]
|
|
3093
|
-
|
|
3094
|
-
return result
|
|
3095
|
-
}
|
|
32
|
+
const ScreenOrientation = {
|
|
33
|
+
PORTRAIT: 0,
|
|
34
|
+
LANDSCAPE: 1,
|
|
3096
35
|
}
|
|
3097
36
|
|
|
3098
37
|
/***/ }),
|
|
3099
38
|
|
|
3100
|
-
/***/ "./src/
|
|
3101
|
-
|
|
3102
|
-
!*** ./src/
|
|
3103
|
-
|
|
39
|
+
/***/ "./src/init/init_config.js":
|
|
40
|
+
/*!*********************************!*\
|
|
41
|
+
!*** ./src/init/init_config.js ***!
|
|
42
|
+
\*********************************/
|
|
3104
43
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3105
44
|
|
|
3106
45
|
__webpack_require__.r(__webpack_exports__);
|
|
3107
46
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3108
|
-
/* harmony export */
|
|
47
|
+
/* harmony export */ InitConfig: () => (/* binding */ InitConfig)
|
|
3109
48
|
/* harmony export */ });
|
|
3110
|
-
class
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
tag
|
|
3114
|
-
metadata
|
|
49
|
+
class InitConfig {
|
|
50
|
+
license
|
|
51
|
+
licenseUpdate
|
|
3115
52
|
|
|
3116
|
-
constructor(
|
|
3117
|
-
this.
|
|
3118
|
-
this.
|
|
3119
|
-
this.tag = params?.tag
|
|
3120
|
-
this.metadata = params?.metadata
|
|
53
|
+
constructor(license, params) {
|
|
54
|
+
this.license = license
|
|
55
|
+
this.licenseUpdate = params?.licenseUpdate
|
|
3121
56
|
}
|
|
3122
57
|
}
|
|
3123
58
|
|
|
3124
59
|
/***/ }),
|
|
3125
60
|
|
|
3126
|
-
/***/ "./src/
|
|
3127
|
-
|
|
3128
|
-
!*** ./src/
|
|
3129
|
-
|
|
61
|
+
/***/ "./src/init/init_exception.js":
|
|
62
|
+
/*!************************************!*\
|
|
63
|
+
!*** ./src/init/init_exception.js ***!
|
|
64
|
+
\************************************/
|
|
3130
65
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3131
66
|
|
|
3132
67
|
__webpack_require__.r(__webpack_exports__);
|
|
3133
68
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3134
|
-
/* harmony export */
|
|
69
|
+
/* harmony export */ InitErrorCode: () => (/* binding */ InitErrorCode),
|
|
70
|
+
/* harmony export */ InitException: () => (/* binding */ InitException)
|
|
3135
71
|
/* harmony export */ });
|
|
3136
|
-
/* harmony import */ var
|
|
3137
|
-
/* harmony import */ var _match_faces_detection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./match_faces_detection */ "./src/match_faces/match_faces_detection.js");
|
|
3138
|
-
/* harmony import */ var _match_faces_exception__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./match_faces_exception */ "./src/match_faces/match_faces_exception.js");
|
|
3139
|
-
|
|
3140
|
-
|
|
72
|
+
/* harmony import */ var _license_exception__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./license_exception */ "./src/init/license_exception.js");
|
|
3141
73
|
|
|
3142
74
|
|
|
3143
|
-
class
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
error
|
|
75
|
+
class InitException {
|
|
76
|
+
code
|
|
77
|
+
message
|
|
78
|
+
underlyingError
|
|
3148
79
|
|
|
3149
80
|
static fromJson(jsonObject) {
|
|
3150
81
|
if (jsonObject == null) return null
|
|
3151
|
-
const result = new
|
|
3152
|
-
|
|
3153
|
-
result.results = []
|
|
3154
|
-
if (jsonObject["results"] != null)
|
|
3155
|
-
for (const item of jsonObject["results"])
|
|
3156
|
-
result.results.push(_compared_faces_pair__WEBPACK_IMPORTED_MODULE_0__.ComparedFacesPair.fromJson(item))
|
|
3157
|
-
result.detections = []
|
|
3158
|
-
if (jsonObject["detections"] != null)
|
|
3159
|
-
for (const item of jsonObject["detections"])
|
|
3160
|
-
result.detections.push(_match_faces_detection__WEBPACK_IMPORTED_MODULE_1__.MatchFacesDetection.fromJson(item))
|
|
3161
|
-
result.tag = jsonObject["tag"]
|
|
3162
|
-
result.error = _match_faces_exception__WEBPACK_IMPORTED_MODULE_2__.MatchFacesException.fromJson(jsonObject["error"])
|
|
3163
|
-
|
|
3164
|
-
return result
|
|
3165
|
-
}
|
|
3166
|
-
}
|
|
3167
|
-
|
|
3168
|
-
/***/ }),
|
|
3169
|
-
|
|
3170
|
-
/***/ "./src/person_database/edit_group_persons_request.js":
|
|
3171
|
-
/*!***********************************************************!*\
|
|
3172
|
-
!*** ./src/person_database/edit_group_persons_request.js ***!
|
|
3173
|
-
\***********************************************************/
|
|
3174
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3175
|
-
|
|
3176
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3177
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3178
|
-
/* harmony export */ EditGroupPersonsRequest: () => (/* binding */ EditGroupPersonsRequest)
|
|
3179
|
-
/* harmony export */ });
|
|
3180
|
-
class EditGroupPersonsRequest {
|
|
3181
|
-
personIdsToAdd
|
|
3182
|
-
personIdsToRemove
|
|
3183
|
-
|
|
3184
|
-
constructor(params) {
|
|
3185
|
-
this.personIdsToAdd = params?.personIdsToAdd
|
|
3186
|
-
this.personIdsToRemove = params?.personIdsToRemove
|
|
3187
|
-
}
|
|
3188
|
-
}
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
/***/ }),
|
|
3192
|
-
|
|
3193
|
-
/***/ "./src/person_database/image_upload.js":
|
|
3194
|
-
/*!*********************************************!*\
|
|
3195
|
-
!*** ./src/person_database/image_upload.js ***!
|
|
3196
|
-
\*********************************************/
|
|
3197
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3198
|
-
|
|
3199
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3200
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3201
|
-
/* harmony export */ ImageUpload: () => (/* binding */ ImageUpload)
|
|
3202
|
-
/* harmony export */ });
|
|
3203
|
-
class ImageUpload {
|
|
3204
|
-
imageData
|
|
3205
|
-
imageUrl
|
|
82
|
+
const result = new InitException()
|
|
3206
83
|
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
result.
|
|
3210
|
-
return result
|
|
3211
|
-
}
|
|
84
|
+
result.code = jsonObject["code"]
|
|
85
|
+
result.message = jsonObject["message"] ?? ""
|
|
86
|
+
result.underlyingError = _license_exception__WEBPACK_IMPORTED_MODULE_0__.LicenseException.fromJson(jsonObject["underlyingError"])
|
|
3212
87
|
|
|
3213
|
-
static withImageUrl(imageUrl) {
|
|
3214
|
-
var result = new ImageUpload()
|
|
3215
|
-
result.imageUrl = imageUrl
|
|
3216
88
|
return result
|
|
3217
89
|
}
|
|
3218
90
|
}
|
|
3219
91
|
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3230
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3231
|
-
/* harmony export */ PageableItemList: () => (/* binding */ PageableItemList)
|
|
3232
|
-
/* harmony export */ });
|
|
3233
|
-
class PageableItemList {
|
|
3234
|
-
items
|
|
3235
|
-
page
|
|
3236
|
-
totalPages
|
|
3237
|
-
|
|
3238
|
-
static fromJson(jsonObject, fromJSON) {
|
|
3239
|
-
if (jsonObject == null) return null
|
|
3240
|
-
var result = new PageableItemList()
|
|
3241
|
-
|
|
3242
|
-
if (jsonObject["items"] != null) {
|
|
3243
|
-
result.items = []
|
|
3244
|
-
for (var item of jsonObject["items"]) {
|
|
3245
|
-
var temp = fromJSON(item)
|
|
3246
|
-
if (temp != null) result.items.push(temp)
|
|
3247
|
-
}
|
|
3248
|
-
}
|
|
3249
|
-
result.page = jsonObject["page"]
|
|
3250
|
-
result.totalPages = jsonObject["totalPages"]
|
|
3251
|
-
|
|
3252
|
-
return result
|
|
3253
|
-
}
|
|
92
|
+
const InitErrorCode = {
|
|
93
|
+
IN_PROGRESS_ALREADY: 0,
|
|
94
|
+
MISSING_CORE: 1,
|
|
95
|
+
INTERNAL_CORE_ERROR: 2,
|
|
96
|
+
BAD_LICENSE: 3,
|
|
97
|
+
UNAVAILABLE: 4,
|
|
98
|
+
CONTEXT_IS_NULL: 100,
|
|
99
|
+
RESOURCE_DAT_ABSENT: 101,
|
|
100
|
+
LICENSE_IS_NULL: 102,
|
|
3254
101
|
}
|
|
3255
102
|
|
|
3256
|
-
|
|
3257
103
|
/***/ }),
|
|
3258
104
|
|
|
3259
|
-
/***/ "./src/
|
|
105
|
+
/***/ "./src/init/license_exception.js":
|
|
3260
106
|
/*!***************************************!*\
|
|
3261
|
-
!*** ./src/
|
|
107
|
+
!*** ./src/init/license_exception.js ***!
|
|
3262
108
|
\***************************************/
|
|
3263
109
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3264
110
|
|
|
3265
111
|
__webpack_require__.r(__webpack_exports__);
|
|
3266
112
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3267
|
-
/* harmony export */
|
|
113
|
+
/* harmony export */ LicenseException: () => (/* binding */ LicenseException),
|
|
114
|
+
/* harmony export */ LicensingResultCode: () => (/* binding */ LicensingResultCode)
|
|
3268
115
|
/* harmony export */ });
|
|
3269
|
-
class
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
groups
|
|
3273
|
-
id
|
|
3274
|
-
metadata
|
|
3275
|
-
createdAt
|
|
116
|
+
class LicenseException {
|
|
117
|
+
code
|
|
118
|
+
message
|
|
3276
119
|
|
|
3277
120
|
static fromJson(jsonObject) {
|
|
3278
121
|
if (jsonObject == null) return null
|
|
3279
|
-
|
|
122
|
+
const result = new LicenseException()
|
|
3280
123
|
|
|
3281
|
-
result.
|
|
3282
|
-
result.
|
|
3283
|
-
result.groups = jsonObject["groups"]
|
|
3284
|
-
result.id = jsonObject["id"]
|
|
3285
|
-
result.metadata = jsonObject["metadata"]
|
|
3286
|
-
result.createdAt = new Date(jsonObject["createdAt"])
|
|
124
|
+
result.code = jsonObject["code"]
|
|
125
|
+
result.message = jsonObject["message"] ?? ""
|
|
3287
126
|
|
|
3288
127
|
return result
|
|
3289
128
|
}
|
|
3290
129
|
}
|
|
3291
130
|
|
|
131
|
+
const LicensingResultCode = {
|
|
132
|
+
OK: 0,
|
|
133
|
+
LICENSE_CORRUPTED: 1,
|
|
134
|
+
INVALID_DATE: 2,
|
|
135
|
+
INVALID_VERSION: 3,
|
|
136
|
+
INVALID_DEVICE_ID: 4,
|
|
137
|
+
INVALID_SYSTEM_OR_APP_ID: 5,
|
|
138
|
+
NO_CAPABILITIES: 6,
|
|
139
|
+
NO_AUTHENTICITY: 7,
|
|
140
|
+
LICENSE_ABSENT: 8,
|
|
141
|
+
NO_INTERNET: 9,
|
|
142
|
+
NO_DATABASE: 10,
|
|
143
|
+
DATABASE_INCORRECT: 11,
|
|
144
|
+
}
|
|
3292
145
|
|
|
3293
146
|
/***/ }),
|
|
3294
147
|
|
|
3295
|
-
/***/ "./src/
|
|
3296
|
-
|
|
3297
|
-
!*** ./src/
|
|
3298
|
-
|
|
148
|
+
/***/ "./src/internal/bridge.js":
|
|
149
|
+
/*!********************************!*\
|
|
150
|
+
!*** ./src/internal/bridge.js ***!
|
|
151
|
+
\********************************/
|
|
3299
152
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3300
153
|
|
|
3301
154
|
__webpack_require__.r(__webpack_exports__);
|
|
3302
155
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3303
|
-
/* harmony export */
|
|
156
|
+
/* harmony export */ _setCameraSwitchCallback: () => (/* binding */ _setCameraSwitchCallback),
|
|
157
|
+
/* harmony export */ _setCustomButtonTappedCompletion: () => (/* binding */ _setCustomButtonTappedCompletion),
|
|
158
|
+
/* harmony export */ _setLivenessNotificationCompletion: () => (/* binding */ _setLivenessNotificationCompletion),
|
|
159
|
+
/* harmony export */ _setVideoEncoderCompletion: () => (/* binding */ _setVideoEncoderCompletion),
|
|
160
|
+
/* harmony export */ exec: () => (/* binding */ exec)
|
|
3304
161
|
/* harmony export */ });
|
|
3305
|
-
/* harmony import */ var
|
|
3306
|
-
/* harmony import */ var
|
|
3307
|
-
/* harmony import */ var _person_image__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./person_image */ "./src/person_database/person_image.js");
|
|
3308
|
-
/* harmony import */ var _pageable_item_list__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pageable_item_list */ "./src/person_database/pageable_item_list.js");
|
|
3309
|
-
/* harmony import */ var _person_group__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./person_group */ "./src/person_database/person_group.js");
|
|
3310
|
-
/* harmony import */ var _search_person__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./search_person */ "./src/person_database/search_person.js");
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
class PersonDatabase {
|
|
3319
|
-
async createPerson(name, params) {
|
|
3320
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("createPerson", [name, params?.groupIds, params?.metadata])
|
|
3321
|
-
return this._itemResponseFromJson(response, _person__WEBPACK_IMPORTED_MODULE_1__.Person.fromJson)
|
|
3322
|
-
}
|
|
3323
|
-
|
|
3324
|
-
async updatePerson(person) {
|
|
3325
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("updatePerson", [person])
|
|
3326
|
-
return this._successResponseFromJson(response)
|
|
3327
|
-
}
|
|
3328
|
-
|
|
3329
|
-
async deletePerson(personId) {
|
|
3330
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("deletePerson", [personId])
|
|
3331
|
-
return this._successResponseFromJson(response)
|
|
3332
|
-
}
|
|
3333
|
-
|
|
3334
|
-
async getPerson(personId) {
|
|
3335
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getPerson", [personId])
|
|
3336
|
-
return this._itemResponseFromJson(response, _person__WEBPACK_IMPORTED_MODULE_1__.Person.fromJson)
|
|
3337
|
-
}
|
|
3338
|
-
|
|
3339
|
-
async addPersonImage(personId, image) {
|
|
3340
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("addPersonImage", [personId, image])
|
|
3341
|
-
return this._itemResponseFromJson(response, _person_image__WEBPACK_IMPORTED_MODULE_2__.PersonImage.fromJson)
|
|
3342
|
-
}
|
|
3343
|
-
|
|
3344
|
-
async deletePersonImage(personId, imageId) {
|
|
3345
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("deletePersonImage", [personId, imageId])
|
|
3346
|
-
return this._successResponseFromJson(response)
|
|
3347
|
-
}
|
|
3348
|
-
|
|
3349
|
-
async getPersonImage(personId, imageId) {
|
|
3350
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getPersonImage", [personId, imageId])
|
|
3351
|
-
return this._itemResponseFromJson(response, _person_image__WEBPACK_IMPORTED_MODULE_2__.PersonImage.fromJson)
|
|
3352
|
-
}
|
|
3353
|
-
|
|
3354
|
-
async getPersonImages(personId) {
|
|
3355
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getPersonImages", [personId])
|
|
3356
|
-
return this._listResponseFromJson(response, _person_image__WEBPACK_IMPORTED_MODULE_2__.PersonImage.fromJson)
|
|
3357
|
-
}
|
|
3358
|
-
|
|
3359
|
-
async getPersonImagesForPage(personId, page, size) {
|
|
3360
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getPersonImagesForPage", [personId, page, size])
|
|
3361
|
-
return this._listResponseFromJson(response, _person_image__WEBPACK_IMPORTED_MODULE_2__.PersonImage.fromJson)
|
|
3362
|
-
}
|
|
3363
|
-
|
|
3364
|
-
async createGroup(name, params) {
|
|
3365
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("createGroup", [name, params?.metadata])
|
|
3366
|
-
return this._itemResponseFromJson(response, _person_group__WEBPACK_IMPORTED_MODULE_4__.PersonGroup.fromJson)
|
|
3367
|
-
}
|
|
3368
|
-
|
|
3369
|
-
async updateGroup(group) {
|
|
3370
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("updateGroup", [group])
|
|
3371
|
-
return this._successResponseFromJson(response)
|
|
3372
|
-
}
|
|
162
|
+
/* harmony import */ var _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../liveness/liveness_notification */ "./src/liveness/liveness_notification.js");
|
|
163
|
+
/* harmony import */ var _cordova__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cordova */ "./src/internal/cordova.js");
|
|
3373
164
|
|
|
3374
|
-
async editPersonsInGroup(groupId, request) {
|
|
3375
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("editPersonsInGroup", [groupId, request])
|
|
3376
|
-
return this._successResponseFromJson(response)
|
|
3377
|
-
}
|
|
3378
165
|
|
|
3379
|
-
async deleteGroup(groupId) {
|
|
3380
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("deleteGroup", [groupId])
|
|
3381
|
-
return this._successResponseFromJson(response)
|
|
3382
|
-
}
|
|
3383
166
|
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
return this._itemResponseFromJson(response, _person_group__WEBPACK_IMPORTED_MODULE_4__.PersonGroup.fromJson)
|
|
3387
|
-
}
|
|
167
|
+
const { RNFaceSDK } = _cordova__WEBPACK_IMPORTED_MODULE_1__.NativeModules
|
|
168
|
+
var eventManager = new _cordova__WEBPACK_IMPORTED_MODULE_1__.NativeEventEmitter(RNFaceSDK)
|
|
3388
169
|
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
}
|
|
170
|
+
async function exec(name, params) {
|
|
171
|
+
return RNFaceSDK.exec(name, params)
|
|
172
|
+
}
|
|
3393
173
|
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
174
|
+
function _setEvent(id, completion) {
|
|
175
|
+
eventManager.removeAllListeners(id)
|
|
176
|
+
if (completion != null)
|
|
177
|
+
eventManager.addListener(id, completion)
|
|
178
|
+
}
|
|
3398
179
|
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
}
|
|
180
|
+
function _setCustomButtonTappedCompletion(completion) {
|
|
181
|
+
_setEvent("onCustomButtonTappedEvent", completion)
|
|
182
|
+
}
|
|
3403
183
|
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
184
|
+
function _setVideoEncoderCompletion(completion) {
|
|
185
|
+
_setEvent("video_encoder_completion", (json) => {
|
|
186
|
+
var jsonObject = JSON.parse(json)
|
|
187
|
+
var transactionId = jsonObject["transactionId"]
|
|
188
|
+
var success = jsonObject["success"]
|
|
189
|
+
completion(transactionId, success)
|
|
190
|
+
})
|
|
191
|
+
}
|
|
3408
192
|
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
193
|
+
function _setLivenessNotificationCompletion(completion) {
|
|
194
|
+
_setEvent("livenessNotificationEvent", (json) => {
|
|
195
|
+
var livenessNotification = _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_0__.LivenessNotification.fromJson(JSON.parse(json))
|
|
196
|
+
completion(livenessNotification)
|
|
197
|
+
})
|
|
198
|
+
}
|
|
3413
199
|
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
}
|
|
200
|
+
function _setCameraSwitchCallback(completion) {
|
|
201
|
+
_setEvent("cameraSwitchEvent", completion)
|
|
202
|
+
}
|
|
3418
203
|
|
|
3419
|
-
|
|
3420
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("searchPerson", [request])
|
|
204
|
+
/***/ }),
|
|
3421
205
|
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
data.push(_search_person__WEBPACK_IMPORTED_MODULE_5__.SearchPerson.fromJson(item))
|
|
3428
|
-
}
|
|
3429
|
-
var error = jsonObject["error"]
|
|
206
|
+
/***/ "./src/internal/cordova.js":
|
|
207
|
+
/*!*********************************!*\
|
|
208
|
+
!*** ./src/internal/cordova.js ***!
|
|
209
|
+
\*********************************/
|
|
210
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3430
211
|
|
|
3431
|
-
|
|
3432
|
-
|
|
212
|
+
__webpack_require__.r(__webpack_exports__);
|
|
213
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
214
|
+
/* harmony export */ NativeEventEmitter: () => (/* binding */ NativeEventEmitter),
|
|
215
|
+
/* harmony export */ NativeModules: () => (/* binding */ NativeModules)
|
|
216
|
+
/* harmony export */ });
|
|
217
|
+
var _exec = (completion, params) => cordova.exec(completion, null, "FaceSDK", "exec", params)
|
|
3433
218
|
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
var error = jsonObject["error"]
|
|
3438
|
-
var success = data ?? false
|
|
3439
|
-
return [success, error]
|
|
219
|
+
const NativeModules = {
|
|
220
|
+
RNFaceSDK: {
|
|
221
|
+
exec: async (name, params) => new Promise((resolve, _) => _exec(data => resolve(data), [name, ...params]))
|
|
3440
222
|
}
|
|
223
|
+
}
|
|
3441
224
|
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
var error = jsonObject["error"]
|
|
3446
|
-
return [data, error]
|
|
225
|
+
class NativeEventEmitter {
|
|
226
|
+
addListener(id, completion) {
|
|
227
|
+
_exec(completion, ["setEvent", id])
|
|
3447
228
|
}
|
|
3448
229
|
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
var data = _pageable_item_list__WEBPACK_IMPORTED_MODULE_3__.PageableItemList.fromJson(jsonObject["data"], fromJSON)
|
|
3452
|
-
var error = jsonObject["error"]
|
|
3453
|
-
return [data, error]
|
|
230
|
+
removeAllListeners(id) {
|
|
231
|
+
_exec(null, ["setEvent", id])
|
|
3454
232
|
}
|
|
3455
233
|
}
|
|
3456
234
|
|
|
3457
|
-
|
|
3458
235
|
/***/ }),
|
|
3459
236
|
|
|
3460
|
-
/***/ "./src/
|
|
3461
|
-
|
|
3462
|
-
!*** ./src/
|
|
3463
|
-
|
|
237
|
+
/***/ "./src/liveness/liveness_backend_exception.js":
|
|
238
|
+
/*!****************************************************!*\
|
|
239
|
+
!*** ./src/liveness/liveness_backend_exception.js ***!
|
|
240
|
+
\****************************************************/
|
|
3464
241
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3465
242
|
|
|
3466
243
|
__webpack_require__.r(__webpack_exports__);
|
|
3467
244
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3468
|
-
/* harmony export */
|
|
245
|
+
/* harmony export */ LivenessBackendErrorCode: () => (/* binding */ LivenessBackendErrorCode),
|
|
246
|
+
/* harmony export */ LivenessBackendException: () => (/* binding */ LivenessBackendException)
|
|
3469
247
|
/* harmony export */ });
|
|
3470
|
-
class
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
metadata
|
|
3474
|
-
createdAt
|
|
248
|
+
class LivenessBackendException {
|
|
249
|
+
code
|
|
250
|
+
message
|
|
3475
251
|
|
|
3476
252
|
static fromJson(jsonObject) {
|
|
3477
253
|
if (jsonObject == null) return null
|
|
3478
|
-
|
|
254
|
+
const result = new LivenessBackendException()
|
|
3479
255
|
|
|
3480
|
-
result.
|
|
3481
|
-
result.
|
|
3482
|
-
result.metadata = jsonObject["metadata"]
|
|
3483
|
-
result.createdAt = new Date(jsonObject["createdAt"])
|
|
256
|
+
result.code = jsonObject["code"]
|
|
257
|
+
result.message = jsonObject["message"] ?? ""
|
|
3484
258
|
|
|
3485
259
|
return result
|
|
3486
260
|
}
|
|
3487
261
|
}
|
|
3488
262
|
|
|
263
|
+
const LivenessBackendErrorCode = {
|
|
264
|
+
UNDEFINED: -1,
|
|
265
|
+
NO_LICENSE: 200,
|
|
266
|
+
NOT_INITIALIZED: 201,
|
|
267
|
+
COMMAND_IS_NOT_SUPPORTED: 202,
|
|
268
|
+
PARAMS_READ_ERROR: 203,
|
|
269
|
+
LOW_QUALITY: 231,
|
|
270
|
+
TRACK_BREAK: 246,
|
|
271
|
+
CLOSED_EYES_DETECTED: 230,
|
|
272
|
+
HIGH_ASYMMETRY: 232,
|
|
273
|
+
FACE_OVER_EMOTIONAL: 233,
|
|
274
|
+
SUNGLASSES_DETECTED: 234,
|
|
275
|
+
SMALL_AGE: 235,
|
|
276
|
+
HEADDRESS_DETECTED: 236,
|
|
277
|
+
MEDICINE_MASK_DETECTED: 239,
|
|
278
|
+
OCCLUSION_DETECTED: 240,
|
|
279
|
+
FOREHEAD_GLASSES_DETECTED: 242,
|
|
280
|
+
MOUTH_OPENED: 243,
|
|
281
|
+
ART_MASK_DETECTED: 244,
|
|
282
|
+
NOT_MATCHED: 237,
|
|
283
|
+
IMAGES_COUNT_LIMIT_EXCEEDED: 238,
|
|
284
|
+
ELECTRONIC_DEVICE_DETECTED: 245,
|
|
285
|
+
WRONG_GEO: 247,
|
|
286
|
+
WRONG_OF: 248,
|
|
287
|
+
WRONG_VIEW: 249,
|
|
288
|
+
}
|
|
3489
289
|
|
|
3490
290
|
/***/ }),
|
|
3491
291
|
|
|
3492
|
-
/***/ "./src/
|
|
3493
|
-
|
|
3494
|
-
!*** ./src/
|
|
3495
|
-
|
|
292
|
+
/***/ "./src/liveness/liveness_config.js":
|
|
293
|
+
/*!*****************************************!*\
|
|
294
|
+
!*** ./src/liveness/liveness_config.js ***!
|
|
295
|
+
\*****************************************/
|
|
3496
296
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3497
297
|
|
|
3498
298
|
__webpack_require__.r(__webpack_exports__);
|
|
3499
299
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3500
|
-
/* harmony export */
|
|
300
|
+
/* harmony export */ LivenessConfig: () => (/* binding */ LivenessConfig),
|
|
301
|
+
/* harmony export */ LivenessSkipStep: () => (/* binding */ LivenessSkipStep),
|
|
302
|
+
/* harmony export */ LivenessType: () => (/* binding */ LivenessType),
|
|
303
|
+
/* harmony export */ RecordingProcess: () => (/* binding */ RecordingProcess)
|
|
3501
304
|
/* harmony export */ });
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
url
|
|
3505
|
-
contentType
|
|
3506
|
-
id
|
|
3507
|
-
metadata
|
|
3508
|
-
createdAt
|
|
305
|
+
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../customization/camera_position */ "./src/customization/camera_position.js");
|
|
306
|
+
/* harmony import */ var _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../customization/screen_orientation */ "./src/customization/screen_orientation.js");
|
|
3509
307
|
|
|
3510
|
-
static fromJson(jsonObject) {
|
|
3511
|
-
if (jsonObject == null) return null
|
|
3512
|
-
var result = new PersonImage()
|
|
3513
308
|
|
|
3514
|
-
result.path = jsonObject["path"]
|
|
3515
|
-
result.url = jsonObject["url"]
|
|
3516
|
-
result.contentType = jsonObject["contentType"]
|
|
3517
|
-
result.id = jsonObject["id"]
|
|
3518
|
-
result.metadata = jsonObject["metadata"]
|
|
3519
|
-
result.createdAt = new Date(jsonObject["createdAt"])
|
|
3520
309
|
|
|
3521
|
-
|
|
310
|
+
class LivenessConfig {
|
|
311
|
+
copyright
|
|
312
|
+
cameraSwitchEnabled
|
|
313
|
+
closeButtonEnabled
|
|
314
|
+
torchButtonEnabled
|
|
315
|
+
vibrateOnSteps
|
|
316
|
+
cameraPositionIOS
|
|
317
|
+
screenOrientation
|
|
318
|
+
cameraPositionAndroid
|
|
319
|
+
locationTrackingEnabled
|
|
320
|
+
attemptsCount
|
|
321
|
+
recordingProcess
|
|
322
|
+
livenessType
|
|
323
|
+
tag
|
|
324
|
+
skipStep
|
|
325
|
+
metadata
|
|
326
|
+
|
|
327
|
+
constructor(params) {
|
|
328
|
+
this.copyright = params?.copyright ?? true
|
|
329
|
+
this.cameraSwitchEnabled = params?.cameraSwitchEnabled ?? false
|
|
330
|
+
this.closeButtonEnabled = params?.closeButtonEnabled ?? true
|
|
331
|
+
this.torchButtonEnabled = params?.torchButtonEnabled ?? true
|
|
332
|
+
this.vibrateOnSteps = params?.vibrateOnSteps ?? true
|
|
333
|
+
this.cameraPositionIOS = params?.cameraPositionIOS ?? _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__.CameraPosition.FRONT
|
|
334
|
+
this.screenOrientation = params?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
335
|
+
this.locationTrackingEnabled = params?.locationTrackingEnabled ?? true
|
|
336
|
+
this.attemptsCount = params?.attemptsCount ?? 0
|
|
337
|
+
this.recordingProcess = params?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
338
|
+
this.livenessType = params?.livenessType ?? LivenessType.ACTIVE
|
|
339
|
+
this.skipStep = params?.skipStep ?? []
|
|
340
|
+
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
341
|
+
this.tag = params?.tag
|
|
342
|
+
this.metadata = params?.metadata
|
|
3522
343
|
}
|
|
3523
344
|
}
|
|
3524
345
|
|
|
346
|
+
const RecordingProcess = {
|
|
347
|
+
ASYNCHRONOUS_UPLOAD: 0,
|
|
348
|
+
SYNCHRONOUS_UPLOAD: 1,
|
|
349
|
+
NOT_UPLOAD: 2,
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
const LivenessType = {
|
|
353
|
+
ACTIVE: 0,
|
|
354
|
+
PASSIVE: 1,
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
const LivenessSkipStep = {
|
|
358
|
+
ONBOARDING_STEP: 0,
|
|
359
|
+
SUCCESS_STEP: 1,
|
|
360
|
+
}
|
|
3525
361
|
|
|
3526
362
|
/***/ }),
|
|
3527
363
|
|
|
3528
|
-
/***/ "./src/
|
|
3529
|
-
|
|
3530
|
-
!*** ./src/
|
|
3531
|
-
|
|
364
|
+
/***/ "./src/liveness/liveness_exception.js":
|
|
365
|
+
/*!********************************************!*\
|
|
366
|
+
!*** ./src/liveness/liveness_exception.js ***!
|
|
367
|
+
\********************************************/
|
|
3532
368
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3533
369
|
|
|
3534
370
|
__webpack_require__.r(__webpack_exports__);
|
|
3535
371
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3536
|
-
/* harmony export */
|
|
372
|
+
/* harmony export */ LivenessErrorCode: () => (/* binding */ LivenessErrorCode),
|
|
373
|
+
/* harmony export */ LivenessException: () => (/* binding */ LivenessException)
|
|
3537
374
|
/* harmony export */ });
|
|
3538
|
-
/* harmony import */ var
|
|
3539
|
-
/* harmony import */ var _search_person_detection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./search_person_detection */ "./src/person_database/search_person_detection.js");
|
|
3540
|
-
|
|
375
|
+
/* harmony import */ var _liveness_backend_exception__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./liveness_backend_exception */ "./src/liveness/liveness_backend_exception.js");
|
|
3541
376
|
|
|
3542
377
|
|
|
3543
|
-
class
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
updatedAt
|
|
3548
|
-
groups
|
|
3549
|
-
id
|
|
3550
|
-
metadata
|
|
3551
|
-
createdAt
|
|
378
|
+
class LivenessException {
|
|
379
|
+
code
|
|
380
|
+
message
|
|
381
|
+
underlyingError
|
|
3552
382
|
|
|
3553
383
|
static fromJson(jsonObject) {
|
|
3554
384
|
if (jsonObject == null) return null
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
result.detection = _search_person_detection__WEBPACK_IMPORTED_MODULE_1__.SearchPersonDetection.fromJson(jsonObject["detection"])
|
|
3561
|
-
result.name = jsonObject["name"]
|
|
3562
|
-
result.updatedAt = new Date(jsonObject["updatedAt"])
|
|
3563
|
-
result.groups = jsonObject["groups"]
|
|
3564
|
-
result.id = jsonObject["id"]
|
|
3565
|
-
result.metadata = jsonObject["metadata"]
|
|
3566
|
-
result.createdAt = new Date(jsonObject["createdAt"])
|
|
385
|
+
const result = new LivenessException()
|
|
386
|
+
|
|
387
|
+
result.code = jsonObject["code"]
|
|
388
|
+
result.message = jsonObject["message"] ?? ""
|
|
389
|
+
result.underlyingError = _liveness_backend_exception__WEBPACK_IMPORTED_MODULE_0__.LivenessBackendException.fromJson(jsonObject["underlyingError"])
|
|
3567
390
|
|
|
3568
391
|
return result
|
|
3569
392
|
}
|
|
3570
393
|
}
|
|
3571
394
|
|
|
395
|
+
const LivenessErrorCode = {
|
|
396
|
+
NOT_INITIALIZED: 0,
|
|
397
|
+
NO_LICENSE: 1,
|
|
398
|
+
API_CALL_FAILED: 2,
|
|
399
|
+
SESSION_START_FAILED: 3,
|
|
400
|
+
CANCELLED: 4,
|
|
401
|
+
PROCESSING_TIMEOUT: 5,
|
|
402
|
+
PROCESSING_FAILED: 6,
|
|
403
|
+
PROCESSING_FRAME_FAILED: 7,
|
|
404
|
+
APPLICATION_INACTIVE: 8,
|
|
405
|
+
CONTEXT_IS_NULL: 9,
|
|
406
|
+
IN_PROGRESS_ALREADY: 10,
|
|
407
|
+
ZOOM_NOT_SUPPORTED: 11,
|
|
408
|
+
CAMERA_NO_PERMISSION: 12,
|
|
409
|
+
CAMERA_NOT_AVAILABLE: 13,
|
|
410
|
+
}
|
|
3572
411
|
|
|
3573
412
|
/***/ }),
|
|
3574
413
|
|
|
3575
|
-
/***/ "./src/
|
|
3576
|
-
|
|
3577
|
-
!*** ./src/
|
|
3578
|
-
|
|
414
|
+
/***/ "./src/liveness/liveness_notification.js":
|
|
415
|
+
/*!***********************************************!*\
|
|
416
|
+
!*** ./src/liveness/liveness_notification.js ***!
|
|
417
|
+
\***********************************************/
|
|
3579
418
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3580
419
|
|
|
3581
420
|
__webpack_require__.r(__webpack_exports__);
|
|
3582
421
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3583
|
-
/* harmony export */
|
|
422
|
+
/* harmony export */ LivenessNotification: () => (/* binding */ LivenessNotification),
|
|
423
|
+
/* harmony export */ LivenessProcessStatus: () => (/* binding */ LivenessProcessStatus)
|
|
3584
424
|
/* harmony export */ });
|
|
3585
|
-
/* harmony import */ var
|
|
3586
|
-
/* harmony import */ var _image_params_rect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../image_params/rect */ "./src/image_params/rect.js");
|
|
3587
|
-
|
|
425
|
+
/* harmony import */ var _liveness_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./liveness_response */ "./src/liveness/liveness_response.js");
|
|
3588
426
|
|
|
3589
427
|
|
|
3590
|
-
class
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
crop
|
|
3594
|
-
rotationAngle
|
|
428
|
+
class LivenessNotification {
|
|
429
|
+
status
|
|
430
|
+
response
|
|
3595
431
|
|
|
3596
432
|
static fromJson(jsonObject) {
|
|
3597
433
|
if (jsonObject == null) return null
|
|
3598
|
-
|
|
434
|
+
const result = new LivenessNotification()
|
|
3599
435
|
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
result.rect = _image_params_rect__WEBPACK_IMPORTED_MODULE_1__.Rect.fromJson(jsonObject["rect"])
|
|
3603
|
-
result.crop = jsonObject["crop"]
|
|
3604
|
-
result.rotationAngle = jsonObject["rotationAngle"]
|
|
436
|
+
result.status = jsonObject["status"]
|
|
437
|
+
result.response = _liveness_response__WEBPACK_IMPORTED_MODULE_0__.LivenessResponse.fromJson(jsonObject["response"])
|
|
3605
438
|
|
|
3606
439
|
return result
|
|
3607
440
|
}
|
|
3608
441
|
}
|
|
3609
442
|
|
|
443
|
+
const LivenessProcessStatus = {
|
|
444
|
+
START: 0,
|
|
445
|
+
PREPARING: 1,
|
|
446
|
+
NEW_SESSION: 2,
|
|
447
|
+
NEXT_STAGE: 3,
|
|
448
|
+
SECTOR_CHANGED: 4,
|
|
449
|
+
PROGRESS: 5,
|
|
450
|
+
LOW_BRIGHTNESS: 6,
|
|
451
|
+
FIT_FACE: 7,
|
|
452
|
+
MOVE_AWAY: 8,
|
|
453
|
+
MOVE_CLOSER: 9,
|
|
454
|
+
TURN_HEAD: 10,
|
|
455
|
+
PROCESSING: 11,
|
|
456
|
+
FAILED: 12,
|
|
457
|
+
RETRY: 13,
|
|
458
|
+
SUCCESS: 14,
|
|
459
|
+
}
|
|
3610
460
|
|
|
3611
461
|
/***/ }),
|
|
3612
462
|
|
|
3613
|
-
/***/ "./src/
|
|
3614
|
-
|
|
3615
|
-
!*** ./src/
|
|
3616
|
-
|
|
463
|
+
/***/ "./src/liveness/liveness_response.js":
|
|
464
|
+
/*!*******************************************!*\
|
|
465
|
+
!*** ./src/liveness/liveness_response.js ***!
|
|
466
|
+
\*******************************************/
|
|
3617
467
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3618
468
|
|
|
3619
469
|
__webpack_require__.r(__webpack_exports__);
|
|
3620
470
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3621
|
-
/* harmony export */
|
|
471
|
+
/* harmony export */ LivenessResponse: () => (/* binding */ LivenessResponse),
|
|
472
|
+
/* harmony export */ LivenessStatus: () => (/* binding */ LivenessStatus)
|
|
3622
473
|
/* harmony export */ });
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
474
|
+
/* harmony import */ var _liveness_exception__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./liveness_exception */ "./src/liveness/liveness_exception.js");
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
class LivenessResponse {
|
|
479
|
+
image
|
|
480
|
+
liveness
|
|
481
|
+
tag
|
|
482
|
+
transactionId
|
|
483
|
+
estimatedAge
|
|
484
|
+
error
|
|
3632
485
|
|
|
3633
486
|
static fromJson(jsonObject) {
|
|
3634
487
|
if (jsonObject == null) return null
|
|
3635
|
-
|
|
488
|
+
const result = new LivenessResponse()
|
|
3636
489
|
|
|
3637
|
-
result.
|
|
3638
|
-
result.
|
|
3639
|
-
result.
|
|
3640
|
-
result.
|
|
3641
|
-
result.
|
|
3642
|
-
result.
|
|
3643
|
-
result.metadata = jsonObject["metadata"]
|
|
3644
|
-
result.createdAt = new Date(jsonObject["createdAt"])
|
|
490
|
+
result.image = jsonObject["image"]
|
|
491
|
+
result.liveness = jsonObject["liveness"]
|
|
492
|
+
result.tag = jsonObject["tag"]
|
|
493
|
+
result.transactionId = jsonObject["transactionId"]
|
|
494
|
+
result.estimatedAge = jsonObject["estimatedAge"]
|
|
495
|
+
result.error = _liveness_exception__WEBPACK_IMPORTED_MODULE_0__.LivenessException.fromJson(jsonObject["error"])
|
|
3645
496
|
|
|
3646
497
|
return result
|
|
3647
498
|
}
|
|
3648
499
|
}
|
|
3649
500
|
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
/***/ "./src/person_database/search_person_request.js":
|
|
3654
|
-
/*!******************************************************!*\
|
|
3655
|
-
!*** ./src/person_database/search_person_request.js ***!
|
|
3656
|
-
\******************************************************/
|
|
3657
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3658
|
-
|
|
3659
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3660
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3661
|
-
/* harmony export */ SearchPersonRequest: () => (/* binding */ SearchPersonRequest)
|
|
3662
|
-
/* harmony export */ });
|
|
3663
|
-
class SearchPersonRequest {
|
|
3664
|
-
imageUpload
|
|
3665
|
-
groupIdsForSearch
|
|
3666
|
-
threshold
|
|
3667
|
-
limit
|
|
3668
|
-
detectAll
|
|
3669
|
-
outputImageParams
|
|
3670
|
-
|
|
3671
|
-
constructor(image, params) {
|
|
3672
|
-
this.imageUpload = image
|
|
3673
|
-
this.groupIdsForSearch = params?.groupIdsForSearch
|
|
3674
|
-
this.threshold = params?.threshold
|
|
3675
|
-
this.limit = params?.limit
|
|
3676
|
-
this.detectAll = params?.detectAll ?? false
|
|
3677
|
-
this.outputImageParams = params?.outputImageParams
|
|
3678
|
-
}
|
|
501
|
+
const LivenessStatus = {
|
|
502
|
+
PASSED: 0,
|
|
503
|
+
UNKNOWN: 1,
|
|
3679
504
|
}
|
|
3680
505
|
|
|
3681
|
-
|
|
3682
506
|
/***/ })
|
|
3683
507
|
|
|
3684
508
|
/******/ });
|
|
@@ -3737,14 +561,97 @@ class SearchPersonRequest {
|
|
|
3737
561
|
/******/ })();
|
|
3738
562
|
/******/
|
|
3739
563
|
/************************************************************************/
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
564
|
+
var __webpack_exports__ = {};
|
|
565
|
+
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
566
|
+
(() => {
|
|
567
|
+
/*!**********************!*\
|
|
568
|
+
!*** ./src/index.js ***!
|
|
569
|
+
\**********************/
|
|
570
|
+
__webpack_require__.r(__webpack_exports__);
|
|
571
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
572
|
+
/* harmony export */ CameraPosition: () => (/* reexport safe */ _customization_camera_position__WEBPACK_IMPORTED_MODULE_4__.CameraPosition),
|
|
573
|
+
/* harmony export */ FaceSDK: () => (/* binding */ FaceSDK),
|
|
574
|
+
/* harmony export */ InitConfig: () => (/* reexport safe */ _init_init_config__WEBPACK_IMPORTED_MODULE_1__.InitConfig),
|
|
575
|
+
/* harmony export */ InitErrorCode: () => (/* reexport safe */ _init_init_exception__WEBPACK_IMPORTED_MODULE_2__.InitErrorCode),
|
|
576
|
+
/* harmony export */ InitException: () => (/* reexport safe */ _init_init_exception__WEBPACK_IMPORTED_MODULE_2__.InitException),
|
|
577
|
+
/* harmony export */ LicenseException: () => (/* reexport safe */ _init_license_exception__WEBPACK_IMPORTED_MODULE_3__.LicenseException),
|
|
578
|
+
/* harmony export */ LicensingResultCode: () => (/* reexport safe */ _init_license_exception__WEBPACK_IMPORTED_MODULE_3__.LicensingResultCode),
|
|
579
|
+
/* harmony export */ LivenessBackendErrorCode: () => (/* reexport safe */ _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_6__.LivenessBackendErrorCode),
|
|
580
|
+
/* harmony export */ LivenessBackendException: () => (/* reexport safe */ _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_6__.LivenessBackendException),
|
|
581
|
+
/* harmony export */ LivenessConfig: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_7__.LivenessConfig),
|
|
582
|
+
/* harmony export */ LivenessErrorCode: () => (/* reexport safe */ _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_8__.LivenessErrorCode),
|
|
583
|
+
/* harmony export */ LivenessException: () => (/* reexport safe */ _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_8__.LivenessException),
|
|
584
|
+
/* harmony export */ LivenessNotification: () => (/* reexport safe */ _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_9__.LivenessNotification),
|
|
585
|
+
/* harmony export */ LivenessProcessStatus: () => (/* reexport safe */ _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_9__.LivenessProcessStatus),
|
|
586
|
+
/* harmony export */ LivenessResponse: () => (/* reexport safe */ _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_10__.LivenessResponse),
|
|
587
|
+
/* harmony export */ LivenessSkipStep: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_7__.LivenessSkipStep),
|
|
588
|
+
/* harmony export */ LivenessStatus: () => (/* reexport safe */ _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_10__.LivenessStatus),
|
|
589
|
+
/* harmony export */ LivenessType: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_7__.LivenessType),
|
|
590
|
+
/* harmony export */ RecordingProcess: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_7__.RecordingProcess),
|
|
591
|
+
/* harmony export */ ScreenOrientation: () => (/* reexport safe */ _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_5__.ScreenOrientation)
|
|
592
|
+
/* harmony export */ });
|
|
593
|
+
/* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./internal/bridge */ "./src/internal/bridge.js");
|
|
594
|
+
/* harmony import */ var _init_init_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./init/init_config */ "./src/init/init_config.js");
|
|
595
|
+
/* harmony import */ var _init_init_exception__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./init/init_exception */ "./src/init/init_exception.js");
|
|
596
|
+
/* harmony import */ var _init_license_exception__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./init/license_exception */ "./src/init/license_exception.js");
|
|
597
|
+
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./customization/camera_position */ "./src/customization/camera_position.js");
|
|
598
|
+
/* harmony import */ var _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./customization/screen_orientation */ "./src/customization/screen_orientation.js");
|
|
599
|
+
/* harmony import */ var _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./liveness/liveness_backend_exception */ "./src/liveness/liveness_backend_exception.js");
|
|
600
|
+
/* harmony import */ var _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./liveness/liveness_config */ "./src/liveness/liveness_config.js");
|
|
601
|
+
/* harmony import */ var _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./liveness/liveness_exception */ "./src/liveness/liveness_exception.js");
|
|
602
|
+
/* harmony import */ var _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./liveness/liveness_notification */ "./src/liveness/liveness_notification.js");
|
|
603
|
+
/* harmony import */ var _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./liveness/liveness_response */ "./src/liveness/liveness_response.js");
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
;
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
class FaceSDK {
|
|
625
|
+
async initialize(params) {
|
|
626
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("initialize", [params?.config])
|
|
627
|
+
|
|
628
|
+
var jsonObject = JSON.parse(response)
|
|
629
|
+
var success = jsonObject["success"]
|
|
630
|
+
var error = jsonObject["error"]
|
|
631
|
+
|
|
632
|
+
return [success, _init_init_exception__WEBPACK_IMPORTED_MODULE_2__.InitException.fromJson(error)]
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
deinitialize() {
|
|
636
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("deinitialize", [])
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
async startLiveness(params) {
|
|
640
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(params?.cameraSwitchCallback)
|
|
641
|
+
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setLivenessNotificationCompletion)(params?.notificationCompletion)
|
|
642
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startLiveness", [params?.config])
|
|
643
|
+
return _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_10__.LivenessResponse.fromJson(JSON.parse(response))
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
stopLiveness() {
|
|
647
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopLiveness", [])
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
})();
|
|
652
|
+
|
|
653
|
+
var __webpack_export_target__ = exports;
|
|
654
|
+
for(var __webpack_i__ in __webpack_exports__) __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
655
|
+
if(__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", { value: true });
|
|
3749
656
|
/******/ })()
|
|
3750
657
|
;
|