@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
|
@@ -1,146 +1,24 @@
|
|
|
1
1
|
import { exec, _setVideoEncoderCompletion, _setLivenessNotificationCompletion, _setCameraSwitchCallback } from './internal/bridge'
|
|
2
2
|
|
|
3
|
-
import { CameraPosition } from './customization/camera_position'
|
|
4
|
-
import { CustomizationColors } from './customization/customization_colors'
|
|
5
|
-
import { CustomizationFonts } from './customization/customization_fonts'
|
|
6
|
-
import { CustomizationImages } from './customization/customization_images'
|
|
7
|
-
import { Customization } from './customization/customization'
|
|
8
|
-
import { Font } from './customization/font'
|
|
9
|
-
import { ScreenOrientation } from './customization/screen_orientation'
|
|
10
|
-
|
|
11
|
-
export { CameraPosition, CustomizationColors, CustomizationFonts, CustomizationImages, Customization, Font, ScreenOrientation }
|
|
12
|
-
|
|
13
|
-
import { FaceSDKVersion } from './init/face_sdk_version'
|
|
14
3
|
import { InitConfig } from './init/init_config'
|
|
15
4
|
import { InitException } from './init/init_exception'
|
|
16
5
|
import { InitErrorCode } from './init/init_exception'
|
|
17
6
|
import { LicenseException } from './init/license_exception'
|
|
18
7
|
import { LicensingResultCode } from './init/license_exception'
|
|
19
8
|
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
import { DetectFaceResult } from './detect_faces/detect_face_result'
|
|
23
|
-
import { DetectFacesAttributeResult } from './detect_faces/detect_faces_attribute_result'
|
|
24
|
-
import { DetectFacesAttribute } from './detect_faces/detect_faces_attribute'
|
|
25
|
-
import { DetectFacesBackendException, DetectFacesBackendErrorCode } from './detect_faces/detect_faces_backend_exception'
|
|
26
|
-
import { DetectFacesConfig } from './detect_faces/detect_faces_config'
|
|
27
|
-
import { DetectFacesException, DetectFacesErrorCode } from './detect_faces/detect_faces_exception'
|
|
28
|
-
import { DetectFacesRequest } from './detect_faces/detect_faces_request'
|
|
29
|
-
import { DetectFacesResponse } from './detect_faces/detect_faces_response'
|
|
30
|
-
import { DetectFacesScenario } from './detect_faces/detect_faces_scenario'
|
|
31
|
-
|
|
32
|
-
export { DetectFaceResult, DetectFacesAttributeResult, DetectFacesAttribute, DetectFacesBackendException, DetectFacesBackendErrorCode, DetectFacesConfig, DetectFacesException, DetectFacesErrorCode, DetectFacesRequest, DetectFacesResponse, DetectFacesScenario }
|
|
33
|
-
|
|
34
|
-
import { FaceCaptureConfig } from './face_capture/face_capture_config'
|
|
35
|
-
import { FaceCaptureException, FaceCaptureErrorCode } from './face_capture/face_capture_exception'
|
|
36
|
-
import { FaceCaptureImage, ImageType } from './face_capture/face_capture_image'
|
|
37
|
-
import { FaceCaptureResponse } from './face_capture/face_capture_response'
|
|
38
|
-
|
|
39
|
-
export { FaceCaptureConfig, FaceCaptureException, FaceCaptureErrorCode, FaceCaptureImage, ImageType, FaceCaptureResponse }
|
|
40
|
-
|
|
41
|
-
import { OutputImageCrop, OutputImageCropAspectRatio } from './image_params/output_image_crop'
|
|
42
|
-
import { OutputImageParams } from './image_params/output_image_params'
|
|
43
|
-
import { Point } from './image_params/point'
|
|
44
|
-
import { Rect } from './image_params/rect'
|
|
45
|
-
import { Size } from './image_params/size'
|
|
46
|
-
|
|
47
|
-
export { OutputImageCrop, OutputImageCropAspectRatio, OutputImageParams, Point, Rect, Size }
|
|
48
|
-
|
|
49
|
-
import { ImageQualityCharacteristicName } from './image_quality/image_quality_characteristic_name'
|
|
50
|
-
import { ImageQualityCharacteristic } from './image_quality/image_quality_characteristic'
|
|
51
|
-
import { ImageQualityGroup } from './image_quality/image_quality_group'
|
|
52
|
-
import { ImageQualityRange } from './image_quality/image_quality_range'
|
|
53
|
-
import { ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus } from './image_quality/image_quality_result'
|
|
54
|
-
|
|
55
|
-
export { ImageQualityCharacteristicName, ImageQualityCharacteristic, ImageQualityGroup, ImageQualityRange, ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus }
|
|
9
|
+
export { InitConfig, InitException, InitErrorCode, LicenseException, LicensingResultCode }
|
|
56
10
|
|
|
11
|
+
import { CameraPosition } from './customization/camera_position'
|
|
12
|
+
import { ScreenOrientation } from './customization/screen_orientation'
|
|
57
13
|
import { LivenessBackendException, LivenessBackendErrorCode } from './liveness/liveness_backend_exception'
|
|
58
14
|
import { LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep } from './liveness/liveness_config'
|
|
59
15
|
import { LivenessException, LivenessErrorCode } from './liveness/liveness_exception'
|
|
60
16
|
import { LivenessNotification, LivenessProcessStatus } from './liveness/liveness_notification'
|
|
61
17
|
import { LivenessResponse, LivenessStatus } from './liveness/liveness_response'
|
|
62
18
|
|
|
63
|
-
export { LivenessBackendException, LivenessBackendErrorCode, LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep, LivenessException, LivenessErrorCode, LivenessNotification, LivenessProcessStatus, LivenessResponse, LivenessStatus }
|
|
64
|
-
|
|
65
|
-
import { ComparedFace } from './match_faces/compared_face'
|
|
66
|
-
import { ComparedFacesPair } from './match_faces/compared_faces_pair'
|
|
67
|
-
import { ComparedFacesSplit } from './match_faces/compared_faces_split'
|
|
68
|
-
import { MatchFacesBackendException } from './match_faces/match_faces_backend_exception'
|
|
69
|
-
import { MatchFacesConfig, ProcessingMode } from './match_faces/match_faces_config'
|
|
70
|
-
import { MatchFacesDetectionFace } from './match_faces/match_faces_detection_face'
|
|
71
|
-
import { MatchFacesDetection } from './match_faces/match_faces_detection'
|
|
72
|
-
import { MatchFacesException, MatchFacesErrorCode } from './match_faces/match_faces_exception'
|
|
73
|
-
import { MatchFacesImage } from './match_faces/match_faces_image'
|
|
74
|
-
import { MatchFacesRequest } from './match_faces/match_faces_request'
|
|
75
|
-
import { MatchFacesResponse } from './match_faces/match_faces_response'
|
|
76
|
-
|
|
77
|
-
export { ComparedFace, ComparedFacesPair, ComparedFacesSplit, MatchFacesBackendException, MatchFacesConfig, ProcessingMode, MatchFacesDetectionFace, MatchFacesDetection, MatchFacesException, MatchFacesErrorCode, MatchFacesImage, MatchFacesRequest, MatchFacesResponse }
|
|
78
|
-
|
|
79
|
-
import { EditGroupPersonsRequest } from './person_database/edit_group_persons_request'
|
|
80
|
-
import { ImageUpload } from './person_database/image_upload'
|
|
81
|
-
import { PageableItemList } from './person_database/pageable_item_list'
|
|
82
|
-
import { PersonDatabase } from './person_database/person_database'
|
|
83
|
-
import { PersonGroup } from './person_database/person_group'
|
|
84
|
-
import { PersonImage } from './person_database/person_image'
|
|
85
|
-
import { Person } from './person_database/person'
|
|
86
|
-
import { SearchPersonDetection } from './person_database/search_person_detection'
|
|
87
|
-
import { SearchPersonImage } from './person_database/search_person_image'
|
|
88
|
-
import { SearchPersonRequest } from './person_database/search_person_request'
|
|
89
|
-
import { SearchPerson } from './person_database/search_person'
|
|
90
|
-
|
|
91
|
-
export { EditGroupPersonsRequest, ImageUpload, PageableItemList, PersonDatabase, PersonGroup, PersonImage, Person, SearchPersonDetection, SearchPersonImage, SearchPersonRequest, SearchPerson }
|
|
92
|
-
|
|
19
|
+
export { LivenessBackendException, LivenessBackendErrorCode, LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep, LivenessException, LivenessErrorCode, LivenessNotification, LivenessProcessStatus, LivenessResponse, LivenessStatus, CameraPosition, ScreenOrientation }
|
|
93
20
|
|
|
94
21
|
export class FaceSDK {
|
|
95
|
-
static get instance() { return FaceSDK._instance }
|
|
96
|
-
static _instance = new FaceSDK()
|
|
97
|
-
|
|
98
|
-
get version() { return this._version }
|
|
99
|
-
_version
|
|
100
|
-
|
|
101
|
-
get serviceUrl() { return this._serviceUrl }
|
|
102
|
-
_serviceUrl
|
|
103
|
-
set serviceUrl(val) {
|
|
104
|
-
this._serviceUrl = val
|
|
105
|
-
this._setServiceUrl(val)
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
get localizationDictionary() { return this._localizationDictionary }
|
|
109
|
-
_localizationDictionary
|
|
110
|
-
set localizationDictionary(val) {
|
|
111
|
-
var temp = Object.assign({}, val);
|
|
112
|
-
Object.freeze(temp);
|
|
113
|
-
this._localizationDictionary = temp
|
|
114
|
-
this._setLocalizationDictionary(val)
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
get requestHeaders() { return this._requestHeaders }
|
|
118
|
-
_requestHeaders
|
|
119
|
-
set requestHeaders(val) {
|
|
120
|
-
var temp = Object.assign({}, val);
|
|
121
|
-
Object.freeze(temp);
|
|
122
|
-
this._requestHeaders = temp
|
|
123
|
-
this._setRequestHeaders(val)
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
get customization() { return this._customization }
|
|
127
|
-
_customization = new Customization()
|
|
128
|
-
set customization(val) {
|
|
129
|
-
this._customization = val
|
|
130
|
-
this._customization._apply()
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
set videoEncoderCompletion(completion) {
|
|
134
|
-
_setVideoEncoderCompletion(completion)
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
get personDatabase() { return this._personDatabase }
|
|
138
|
-
_personDatabase = new PersonDatabase()
|
|
139
|
-
|
|
140
|
-
async isInitialized() {
|
|
141
|
-
return await exec("isInitialized", [])
|
|
142
|
-
}
|
|
143
|
-
|
|
144
22
|
async initialize(params) {
|
|
145
23
|
var response = await exec("initialize", [params?.config])
|
|
146
24
|
|
|
@@ -148,8 +26,6 @@ export class FaceSDK {
|
|
|
148
26
|
var success = jsonObject["success"]
|
|
149
27
|
var error = jsonObject["error"]
|
|
150
28
|
|
|
151
|
-
if (success) await this._onInit()
|
|
152
|
-
|
|
153
29
|
return [success, InitException.fromJson(error)]
|
|
154
30
|
}
|
|
155
31
|
|
|
@@ -157,16 +33,6 @@ export class FaceSDK {
|
|
|
157
33
|
exec("deinitialize", [])
|
|
158
34
|
}
|
|
159
35
|
|
|
160
|
-
async startFaceCapture(params) {
|
|
161
|
-
_setCameraSwitchCallback(params?.cameraSwitchCallback)
|
|
162
|
-
var response = await exec("startFaceCapture", [params?.config])
|
|
163
|
-
return FaceCaptureResponse.fromJson(JSON.parse(response))
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
stopFaceCapture() {
|
|
167
|
-
exec("stopFaceCapture", [])
|
|
168
|
-
}
|
|
169
|
-
|
|
170
36
|
async startLiveness(params) {
|
|
171
37
|
_setCameraSwitchCallback(params?.cameraSwitchCallback)
|
|
172
38
|
_setLivenessNotificationCompletion(params?.notificationCompletion)
|
|
@@ -177,45 +43,4 @@ export class FaceSDK {
|
|
|
177
43
|
stopLiveness() {
|
|
178
44
|
exec("stopLiveness", [])
|
|
179
45
|
}
|
|
180
|
-
|
|
181
|
-
async matchFaces(request, params) {
|
|
182
|
-
var response = await exec("matchFaces", [request, params?.config])
|
|
183
|
-
return MatchFacesResponse.fromJson(JSON.parse(response))
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
async splitComparedFaces(facesPairs, similarityThreshold) {
|
|
187
|
-
var response = await exec("splitComparedFaces", [facesPairs, similarityThreshold])
|
|
188
|
-
return ComparedFacesSplit.fromJson(JSON.parse(response))
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
async detectFaces(request) {
|
|
192
|
-
var response = await exec("detectFaces", [request])
|
|
193
|
-
return DetectFacesResponse.fromJson(JSON.parse(response))
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
async _onInit() {
|
|
197
|
-
this._version = await this._getVersion()
|
|
198
|
-
this._serviceUrl = await this._getServiceUrl()
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
async _getVersion() {
|
|
202
|
-
var response = await exec("getVersion", [])
|
|
203
|
-
return FaceSDKVersion.fromJson(JSON.parse(response))
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
async _getServiceUrl() {
|
|
207
|
-
return await exec("getServiceUrl", [])
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
_setServiceUrl(url) {
|
|
211
|
-
exec("setServiceUrl", [url])
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
_setLocalizationDictionary(dictionary) {
|
|
215
|
-
exec("setLocalizationDictionary", [dictionary])
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
_setRequestHeaders(dictionary) {
|
|
219
|
-
exec("setRequestHeaders", [dictionary])
|
|
220
|
-
}
|
|
221
46
|
}
|
package/www/types/index.d.ts
CHANGED
|
@@ -1,135 +1,24 @@
|
|
|
1
|
-
import { CameraPosition } from './customization/camera_position'
|
|
2
|
-
import { CustomizationColors } from './customization/customization_colors'
|
|
3
|
-
import { CustomizationFonts } from './customization/customization_fonts'
|
|
4
|
-
import { CustomizationImages } from './customization/customization_images'
|
|
5
|
-
import { Customization, CustomButtonTappedCompletion } from './customization/customization'
|
|
6
|
-
import { Font } from './customization/font'
|
|
7
|
-
import { ScreenOrientation } from './customization/screen_orientation'
|
|
8
|
-
export { CameraPosition, CustomizationColors, CustomizationFonts, CustomizationImages, Customization, CustomButtonTappedCompletion, Font, ScreenOrientation }
|
|
9
1
|
|
|
10
|
-
import { FaceSDKVersion } from './init/face_sdk_version'
|
|
11
2
|
import { InitConfig } from './init/init_config'
|
|
12
3
|
import { InitException } from './init/init_exception'
|
|
13
4
|
import { InitErrorCode } from './init/init_exception'
|
|
14
5
|
import { LicenseException } from './init/license_exception'
|
|
15
6
|
import { LicensingResultCode } from './init/license_exception'
|
|
16
|
-
export {
|
|
17
|
-
|
|
18
|
-
import { DetectFaceResult } from './detect_faces/detect_face_result'
|
|
19
|
-
import { DetectFacesAttributeResult } from './detect_faces/detect_faces_attribute_result'
|
|
20
|
-
import { DetectFacesAttribute } from './detect_faces/detect_faces_attribute'
|
|
21
|
-
import { DetectFacesBackendException, DetectFacesBackendErrorCode } from './detect_faces/detect_faces_backend_exception'
|
|
22
|
-
import { DetectFacesConfig } from './detect_faces/detect_faces_config'
|
|
23
|
-
import { DetectFacesException, DetectFacesErrorCode } from './detect_faces/detect_faces_exception'
|
|
24
|
-
import { DetectFacesRequest } from './detect_faces/detect_faces_request'
|
|
25
|
-
import { DetectFacesResponse } from './detect_faces/detect_faces_response'
|
|
26
|
-
import { DetectFacesScenario } from './detect_faces/detect_faces_scenario'
|
|
27
|
-
export { DetectFaceResult, DetectFacesAttributeResult, DetectFacesAttribute, DetectFacesBackendException, DetectFacesBackendErrorCode, DetectFacesConfig, DetectFacesException, DetectFacesErrorCode, DetectFacesRequest, DetectFacesResponse, DetectFacesScenario }
|
|
28
|
-
|
|
29
|
-
import { FaceCaptureConfig } from './face_capture/face_capture_config'
|
|
30
|
-
import { FaceCaptureException, FaceCaptureErrorCode } from './face_capture/face_capture_exception'
|
|
31
|
-
import { FaceCaptureImage, ImageType } from './face_capture/face_capture_image'
|
|
32
|
-
import { FaceCaptureResponse } from './face_capture/face_capture_response'
|
|
33
|
-
export { FaceCaptureConfig, FaceCaptureException, FaceCaptureErrorCode, FaceCaptureImage, ImageType, FaceCaptureResponse }
|
|
34
|
-
|
|
35
|
-
import { OutputImageCrop, OutputImageCropAspectRatio } from './image_params/output_image_crop'
|
|
36
|
-
import { OutputImageParams } from './image_params/output_image_params'
|
|
37
|
-
import { Point } from './image_params/point'
|
|
38
|
-
import { Rect } from './image_params/rect'
|
|
39
|
-
import { Size } from './image_params/size'
|
|
40
|
-
export { OutputImageCrop, OutputImageCropAspectRatio, OutputImageParams, Point, Rect, Size }
|
|
41
|
-
|
|
42
|
-
import { ImageQualityCharacteristicName } from './image_quality/image_quality_characteristic_name'
|
|
43
|
-
import { ImageQualityCharacteristic } from './image_quality/image_quality_characteristic'
|
|
44
|
-
import { ImageQualityGroup } from './image_quality/image_quality_group'
|
|
45
|
-
import { ImageQualityRange } from './image_quality/image_quality_range'
|
|
46
|
-
import { ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus } from './image_quality/image_quality_result'
|
|
47
|
-
export { ImageQualityCharacteristicName, ImageQualityCharacteristic, ImageQualityGroup, ImageQualityRange, ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus }
|
|
7
|
+
export { InitConfig, InitException, InitErrorCode, LicenseException, LicensingResultCode }
|
|
48
8
|
|
|
9
|
+
import { CameraPosition } from './customization/camera_position'
|
|
10
|
+
import { ScreenOrientation } from './customization/screen_orientation'
|
|
49
11
|
import { LivenessBackendException, LivenessBackendErrorCode } from './liveness/liveness_backend_exception'
|
|
50
12
|
import { LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep } from './liveness/liveness_config'
|
|
51
13
|
import { LivenessException, LivenessErrorCode } from './liveness/liveness_exception'
|
|
52
14
|
import { LivenessNotification, LivenessProcessStatus, LivenessNotificationCompletion } from './liveness/liveness_notification'
|
|
53
15
|
import { LivenessResponse, LivenessStatus } from './liveness/liveness_response'
|
|
54
|
-
export { LivenessBackendException, LivenessBackendErrorCode, LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep, LivenessException, LivenessErrorCode, LivenessNotification, LivenessProcessStatus, LivenessNotificationCompletion, LivenessResponse, LivenessStatus }
|
|
55
|
-
|
|
56
|
-
import { ComparedFace } from './match_faces/compared_face'
|
|
57
|
-
import { ComparedFacesPair } from './match_faces/compared_faces_pair'
|
|
58
|
-
import { ComparedFacesSplit } from './match_faces/compared_faces_split'
|
|
59
|
-
import { MatchFacesBackendException } from './match_faces/match_faces_backend_exception'
|
|
60
|
-
import { MatchFacesConfig, ProcessingMode } from './match_faces/match_faces_config'
|
|
61
|
-
import { MatchFacesDetectionFace } from './match_faces/match_faces_detection_face'
|
|
62
|
-
import { MatchFacesDetection } from './match_faces/match_faces_detection'
|
|
63
|
-
import { MatchFacesException, MatchFacesErrorCode } from './match_faces/match_faces_exception'
|
|
64
|
-
import { MatchFacesImage } from './match_faces/match_faces_image'
|
|
65
|
-
import { MatchFacesRequest } from './match_faces/match_faces_request'
|
|
66
|
-
import { MatchFacesResponse } from './match_faces/match_faces_response'
|
|
67
|
-
export { ComparedFace, ComparedFacesPair, ComparedFacesSplit, MatchFacesBackendException, MatchFacesConfig, ProcessingMode, MatchFacesDetectionFace, MatchFacesDetection, MatchFacesException, MatchFacesErrorCode, MatchFacesImage, MatchFacesRequest, MatchFacesResponse }
|
|
68
|
-
|
|
69
|
-
import { EditGroupPersonsRequest } from './person_database/edit_group_persons_request'
|
|
70
|
-
import { ImageUpload } from './person_database/image_upload'
|
|
71
|
-
import { PageableItemList } from './person_database/pageable_item_list'
|
|
72
|
-
import { PersonDatabase } from './person_database/person_database'
|
|
73
|
-
import { PersonGroup } from './person_database/person_group'
|
|
74
|
-
import { PersonImage } from './person_database/person_image'
|
|
75
|
-
import { Person } from './person_database/person'
|
|
76
|
-
import { SearchPersonDetection } from './person_database/search_person_detection'
|
|
77
|
-
import { SearchPersonImage } from './person_database/search_person_image'
|
|
78
|
-
import { SearchPersonRequest } from './person_database/search_person_request'
|
|
79
|
-
import { SearchPerson } from './person_database/search_person'
|
|
80
|
-
export { EditGroupPersonsRequest, ImageUpload, PageableItemList, PersonDatabase, PersonGroup, PersonImage, Person, SearchPersonDetection, SearchPersonImage, SearchPersonRequest, SearchPerson }
|
|
16
|
+
export { LivenessBackendException, LivenessBackendErrorCode, LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep, LivenessException, LivenessErrorCode, LivenessNotification, LivenessProcessStatus, LivenessNotificationCompletion, LivenessResponse, LivenessStatus, CameraPosition, ScreenOrientation }
|
|
81
17
|
|
|
82
18
|
/**
|
|
83
19
|
* Entry point of the Regula Face SDK.
|
|
84
20
|
*/
|
|
85
21
|
export class FaceSDK {
|
|
86
|
-
/**
|
|
87
|
-
* The only instance of singleton class {@link FaceSDK}.
|
|
88
|
-
*/
|
|
89
|
-
static get instance(): FaceSDK
|
|
90
|
-
private constructor()
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Information about the SDK.
|
|
94
|
-
*/
|
|
95
|
-
get version(): FaceSDKVersion | null
|
|
96
|
-
|
|
97
|
-
get serviceUrl(): string | null
|
|
98
|
-
set serviceUrl(val: string | null)
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* A localization dictionary to override default localization logic.
|
|
102
|
-
* Allows to replace any string of FaceSDK with an arbitrary string.
|
|
103
|
-
*
|
|
104
|
-
* To see all the localization keys, look up the RegulaSDK.strings file at
|
|
105
|
-
* ios/Pods/FaceSDK/FaceSDK.xcframework/ios-arm64/FaceSDK.framework/FaceSDK.bundle/en.lproj/FaceSDK.strings.
|
|
106
|
-
*
|
|
107
|
-
* Immutable property. Use setter instead of editing.
|
|
108
|
-
*/
|
|
109
|
-
get localizationDictionary(): Record<string, string> | null
|
|
110
|
-
set localizationDictionary(val: Record<string, string> | null)
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Immutable property. Use setter instead of editing.
|
|
114
|
-
*/
|
|
115
|
-
get requestHeaders(): Record<string, string> | null
|
|
116
|
-
set requestHeaders(val: Record<string, string> | null)
|
|
117
|
-
|
|
118
|
-
get customization(): Customization
|
|
119
|
-
set customization(val: Customization)
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Allows user to receive a video file of current session.
|
|
123
|
-
*/
|
|
124
|
-
set videoEncoderCompletion(completion: VideoEncoderCompletion)
|
|
125
|
-
|
|
126
|
-
get personDatabase(): PersonDatabase
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Checks if FaceSDK is initialized.
|
|
130
|
-
*/
|
|
131
|
-
isInitialized(): Promise<boolean>
|
|
132
|
-
|
|
133
22
|
/**
|
|
134
23
|
* Allows you to initialize FaceSDK.
|
|
135
24
|
*
|
|
@@ -150,15 +39,6 @@ export class FaceSDK {
|
|
|
150
39
|
*/
|
|
151
40
|
deinitialize(): void
|
|
152
41
|
|
|
153
|
-
startFaceCapture(
|
|
154
|
-
params?: {
|
|
155
|
-
config?: FaceCaptureConfig,
|
|
156
|
-
cameraSwitchCallback?: CameraSwitchCallback,
|
|
157
|
-
}
|
|
158
|
-
): Promise<FaceCaptureResponse>
|
|
159
|
-
|
|
160
|
-
stopFaceCapture(): void
|
|
161
|
-
|
|
162
42
|
startLiveness(
|
|
163
43
|
params?: {
|
|
164
44
|
config?: LivenessConfig,
|
|
@@ -168,22 +48,6 @@ export class FaceSDK {
|
|
|
168
48
|
): Promise<LivenessResponse>
|
|
169
49
|
|
|
170
50
|
stopLiveness(): void
|
|
171
|
-
|
|
172
|
-
matchFaces(
|
|
173
|
-
request: MatchFacesRequest,
|
|
174
|
-
params?: {
|
|
175
|
-
config?: MatchFacesConfig
|
|
176
|
-
}
|
|
177
|
-
): Promise<MatchFacesResponse>
|
|
178
|
-
|
|
179
|
-
splitComparedFaces(
|
|
180
|
-
facesPairs: Array<ComparedFacesPair>,
|
|
181
|
-
similarityThreshold: number
|
|
182
|
-
): Promise<ComparedFacesSplit>
|
|
183
|
-
|
|
184
|
-
detectFaces(request: DetectFacesRequest): Promise<DetectFacesResponse>
|
|
185
51
|
}
|
|
186
52
|
|
|
187
|
-
export type VideoEncoderCompletion = (transactionId: string, success: boolean) => void
|
|
188
|
-
|
|
189
53
|
export type CameraSwitchCallback = (cameraId: number) => void
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { CustomizationColors } from './customization_colors'
|
|
2
|
-
import { CustomizationFonts } from './customization_fonts'
|
|
3
|
-
import { CustomizationImages } from './customization_images'
|
|
4
|
-
import { _setCustomButtonTappedCompletion, exec } from '../internal/bridge'
|
|
5
|
-
import { FaceSDK } from '../index'
|
|
6
|
-
|
|
7
|
-
export class Customization {
|
|
8
|
-
get colors() { return this._colors }
|
|
9
|
-
_colors = new CustomizationColors()
|
|
10
|
-
set colors(val) {
|
|
11
|
-
(this._colors = val)._apply(this)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
get fonts() { return this._fonts }
|
|
15
|
-
_fonts = new CustomizationFonts()
|
|
16
|
-
set fonts(val) {
|
|
17
|
-
(this._fonts = val)._apply(this)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
get images() { return this._images }
|
|
21
|
-
_images = new CustomizationImages()
|
|
22
|
-
set images(val) {
|
|
23
|
-
(this._images = val)._apply(this)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
get uiCustomizationLayer() { return this._uiCustomizationLayer }
|
|
27
|
-
_uiCustomizationLayer
|
|
28
|
-
set uiCustomizationLayer(val) {
|
|
29
|
-
var temp = Object.assign({}, val);
|
|
30
|
-
Object.freeze(temp);
|
|
31
|
-
this._uiCustomizationLayer = temp
|
|
32
|
-
this._set({ "uiCustomizationLayer": val })
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
set onCustomButtonTapped(completion) {
|
|
36
|
-
_setCustomButtonTappedCompletion(completion)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
static fromJson(jsonObject) {
|
|
40
|
-
var result = new Customization()
|
|
41
|
-
|
|
42
|
-
result.colors = CustomizationColors.fromJson(jsonObject["colors"])
|
|
43
|
-
result.fonts = CustomizationFonts.fromJson(jsonObject["fonts"])
|
|
44
|
-
result.images = CustomizationImages.fromJson(jsonObject["images"])
|
|
45
|
-
result._uiCustomizationLayer = jsonObject["uiCustomizationLayer"]
|
|
46
|
-
|
|
47
|
-
return result
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
toJson() {
|
|
51
|
-
return {
|
|
52
|
-
"colors": this.colors.toJson(),
|
|
53
|
-
"fonts": this.fonts.toJson(),
|
|
54
|
-
"images": this.images.toJson(),
|
|
55
|
-
"uiCustomizationLayer": this.uiCustomizationLayer
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
_set(json) {
|
|
60
|
-
if (this === FaceSDK.instance.customization) {
|
|
61
|
-
exec("setCustomization", [json])
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
_apply() { this._set(toJson()) }
|
|
66
|
-
}
|