@regulaforensics/face-sdk 8.3.1174-rc → 8.3.1176-nightly
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RNFaceSDK.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +91 -0
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +106 -3
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +39 -1
- package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +0 -1
- package/examples/capacitor/README.md +1 -1
- package/examples/capacitor/package.json +2 -2
- package/examples/capacitor/scripts/android.sh +3 -1
- package/examples/capacitor/scripts/ios.sh +3 -1
- package/examples/capacitor/scripts/setup.sh +2 -0
- package/examples/ionic/README.md +1 -1
- package/examples/ionic/config.xml +0 -2
- package/examples/ionic/index.tsx +1 -1
- package/examples/ionic/package-lock.json +2360 -1733
- package/examples/ionic/package.json +21 -25
- package/examples/ionic/scripts/android.sh +4 -1
- package/examples/ionic/scripts/ios.sh +4 -1
- package/examples/ionic/scripts/setup.sh +2 -0
- package/examples/ionic/tsconfig.json +1 -1
- package/examples/react_native/README.md +1 -1
- package/examples/react_native/package.json +2 -2
- package/examples/react_native/scripts/android.sh +5 -5
- package/examples/react_native/scripts/ios.sh +5 -5
- package/examples/react_native/scripts/setup.sh +2 -0
- package/ios/Config.swift +107 -1
- package/ios/Decoder.swift +71 -3
- package/ios/Main.swift +24 -4
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +135 -57
- package/test/package-lock.json +2 -5
- package/test/test.tsx +183 -60
- package/www/capacitor/customization/customization_images.js +48 -0
- package/www/capacitor/customization/font.js +3 -3
- package/www/capacitor/detect_faces/detect_faces_config.js +5 -5
- package/www/capacitor/detect_faces/detect_faces_request.js +2 -2
- package/www/capacitor/face_capture/face_capture_config.js +14 -14
- package/www/capacitor/image_params/output_image_crop.js +4 -4
- package/www/capacitor/image_params/output_image_params.js +3 -3
- package/www/capacitor/image_quality/image_quality_characteristic.js +4 -4
- package/www/capacitor/image_quality/image_quality_group.js +2 -2
- package/www/capacitor/index.js +153 -32
- package/www/capacitor/init/init_config.js +2 -2
- package/www/capacitor/internal/bridge.js +2 -2
- package/www/capacitor/internal/cordova.js +2 -2
- package/www/capacitor/liveness/enrollment_config.js +102 -0
- package/www/capacitor/liveness/enrollment_request.js +39 -0
- package/www/capacitor/liveness/enrollment_response.js +26 -0
- package/www/capacitor/liveness/error_response.js +21 -0
- package/www/capacitor/liveness/liveness_config.js +18 -17
- package/www/capacitor/liveness/liveness_exception.js +7 -5
- package/www/capacitor/liveness/liveness_notification.js +2 -0
- package/www/capacitor/liveness/verification_config.js +98 -0
- package/www/capacitor/liveness/verification_response.js +27 -0
- package/www/capacitor/liveness/verify_match_response.js +21 -0
- package/www/capacitor/match_faces/match_faces_config.js +3 -3
- package/www/capacitor/match_faces/match_faces_image.js +2 -2
- package/www/capacitor/match_faces/match_faces_request.js +4 -4
- package/www/capacitor/person_database/edit_group_persons_request.js +3 -3
- package/www/capacitor/person_database/person_database.js +4 -4
- package/www/capacitor/person_database/search_person_request.js +7 -7
- package/www/cordova.js +703 -173
- package/www/react-native/customization/customization_images.js +48 -0
- package/www/react-native/customization/font.js +3 -3
- package/www/react-native/detect_faces/detect_faces_config.js +5 -5
- package/www/react-native/detect_faces/detect_faces_request.js +2 -2
- package/www/react-native/face_capture/face_capture_config.js +14 -14
- package/www/react-native/image_params/output_image_crop.js +4 -4
- package/www/react-native/image_params/output_image_params.js +3 -3
- package/www/react-native/image_quality/image_quality_characteristic.js +4 -4
- package/www/react-native/image_quality/image_quality_group.js +2 -2
- package/www/react-native/index.js +153 -32
- package/www/react-native/init/init_config.js +2 -2
- package/www/react-native/internal/bridge.js +2 -2
- package/www/react-native/liveness/enrollment_config.js +102 -0
- package/www/react-native/liveness/enrollment_request.js +39 -0
- package/www/react-native/liveness/enrollment_response.js +26 -0
- package/www/react-native/liveness/error_response.js +21 -0
- package/www/react-native/liveness/liveness_config.js +18 -17
- package/www/react-native/liveness/liveness_exception.js +7 -5
- package/www/react-native/liveness/liveness_notification.js +2 -0
- package/www/react-native/liveness/verification_config.js +98 -0
- package/www/react-native/liveness/verification_response.js +27 -0
- package/www/react-native/liveness/verify_match_response.js +21 -0
- package/www/react-native/match_faces/match_faces_config.js +3 -3
- package/www/react-native/match_faces/match_faces_image.js +2 -2
- package/www/react-native/match_faces/match_faces_request.js +4 -4
- package/www/react-native/person_database/edit_group_persons_request.js +3 -3
- package/www/react-native/person_database/person_database.js +4 -4
- package/www/react-native/person_database/search_person_request.js +7 -7
- package/www/types/customization/customization_images.d.ts +6 -0
- package/www/types/customization/font.d.ts +1 -1
- package/www/types/detect_faces/detect_faces_config.d.ts +1 -1
- package/www/types/detect_faces/detect_faces_request.d.ts +1 -1
- package/www/types/face_capture/face_capture_config.d.ts +1 -1
- package/www/types/image_params/output_image_crop.d.ts +1 -1
- package/www/types/image_params/output_image_params.d.ts +1 -1
- package/www/types/image_quality/image_quality_group.d.ts +1 -1
- package/www/types/index.d.ts +137 -15
- package/www/types/init/init_config.d.ts +1 -1
- package/www/types/liveness/enrollment_config.d.ts +97 -0
- package/www/types/liveness/enrollment_request.d.ts +24 -0
- package/www/types/liveness/enrollment_response.d.ts +9 -0
- package/www/types/liveness/error_response.d.ts +6 -0
- package/www/types/liveness/liveness_config.d.ts +2 -1
- package/www/types/liveness/liveness_exception.d.ts +32 -2
- package/www/types/liveness/liveness_notification.d.ts +2 -0
- package/www/types/liveness/verification_config.d.ts +95 -0
- package/www/types/liveness/verification_response.d.ts +10 -0
- package/www/types/liveness/verify_match_response.d.ts +6 -0
- package/www/types/match_faces/match_faces_config.d.ts +1 -1
- package/www/types/match_faces/match_faces_image.d.ts +1 -1
- package/www/types/match_faces/match_faces_request.d.ts +1 -1
- package/www/types/person_database/edit_group_persons_request.d.ts +1 -1
- package/www/types/person_database/person_database.d.ts +2 -2
- package/www/types/person_database/search_person_request.d.ts +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { VerifyMatchResponse } from './verify_match_response'
|
|
2
|
+
import { ErrorResponse } from './error_response'
|
|
3
|
+
|
|
4
|
+
export class VerificationResponse {
|
|
5
|
+
passed
|
|
6
|
+
match
|
|
7
|
+
error
|
|
8
|
+
|
|
9
|
+
static fromJson(jsonObject) {
|
|
10
|
+
if (jsonObject == null) return null
|
|
11
|
+
const result = new VerificationResponse()
|
|
12
|
+
|
|
13
|
+
result.passed = jsonObject["passed"]
|
|
14
|
+
result.match = VerifyMatchResponse.fromJson(jsonObject["match"])
|
|
15
|
+
result.error = ErrorResponse.fromJson(jsonObject["error"])
|
|
16
|
+
|
|
17
|
+
return result
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
toJson() {
|
|
21
|
+
return {
|
|
22
|
+
"passed": this.passed,
|
|
23
|
+
"match": this.match?.toJson(),
|
|
24
|
+
"error": this.error?.toJson(),
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class VerifyMatchResponse {
|
|
2
|
+
passed
|
|
3
|
+
similarity
|
|
4
|
+
|
|
5
|
+
static fromJson(jsonObject) {
|
|
6
|
+
if (jsonObject == null) return null
|
|
7
|
+
const result = new VerifyMatchResponse()
|
|
8
|
+
|
|
9
|
+
result.passed = jsonObject["passed"]
|
|
10
|
+
result.similarity = jsonObject["similarity"]
|
|
11
|
+
|
|
12
|
+
return result
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
toJson() {
|
|
16
|
+
return {
|
|
17
|
+
"passed": this.passed,
|
|
18
|
+
"similarity": this.similarity,
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -2,9 +2,9 @@ export class MatchFacesConfig {
|
|
|
2
2
|
processingMode
|
|
3
3
|
locationTrackingEnabled
|
|
4
4
|
|
|
5
|
-
constructor(
|
|
6
|
-
this.processingMode =
|
|
7
|
-
this.locationTrackingEnabled =
|
|
5
|
+
constructor(options) {
|
|
6
|
+
this.processingMode = options?.processingMode ?? ProcessingMode.ONLINE
|
|
7
|
+
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
static fromJson(jsonObject) {
|
|
@@ -4,10 +4,10 @@ export class MatchFacesImage {
|
|
|
4
4
|
detectAll
|
|
5
5
|
identifier
|
|
6
6
|
|
|
7
|
-
constructor(image, imageType,
|
|
7
|
+
constructor(image, imageType, options) {
|
|
8
8
|
this.image = image
|
|
9
9
|
this.imageType = imageType
|
|
10
|
-
this.detectAll =
|
|
10
|
+
this.detectAll = options?.detectAll ?? false
|
|
11
11
|
this.identifier = ""
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -7,11 +7,11 @@ export class MatchFacesRequest {
|
|
|
7
7
|
tag
|
|
8
8
|
metadata
|
|
9
9
|
|
|
10
|
-
constructor(images,
|
|
10
|
+
constructor(images, options) {
|
|
11
11
|
this.images = images
|
|
12
|
-
this.outputImageParams =
|
|
13
|
-
this.tag =
|
|
14
|
-
this.metadata =
|
|
12
|
+
this.outputImageParams = options?.outputImageParams
|
|
13
|
+
this.tag = options?.tag
|
|
14
|
+
this.metadata = options?.metadata
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
static fromJson(jsonObject) {
|
|
@@ -2,9 +2,9 @@ export class EditGroupPersonsRequest {
|
|
|
2
2
|
personIdsToAdd
|
|
3
3
|
personIdsToRemove
|
|
4
4
|
|
|
5
|
-
constructor(
|
|
6
|
-
this.personIdsToAdd =
|
|
7
|
-
this.personIdsToRemove =
|
|
5
|
+
constructor(options) {
|
|
6
|
+
this.personIdsToAdd = options?.personIdsToAdd
|
|
7
|
+
this.personIdsToRemove = options?.personIdsToRemove
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
static fromJson(jsonObject) {
|
|
@@ -6,8 +6,8 @@ import { PersonGroup } from './person_group'
|
|
|
6
6
|
import { SearchPerson } from './search_person'
|
|
7
7
|
|
|
8
8
|
export class PersonDatabase {
|
|
9
|
-
async createPerson(name,
|
|
10
|
-
var response = await exec("createPerson", [name,
|
|
9
|
+
async createPerson(name, options) {
|
|
10
|
+
var response = await exec("createPerson", [name, options?.groupIds, options?.metadata])
|
|
11
11
|
return this._itemResponseFromJson(response, Person.fromJson)
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -51,8 +51,8 @@ export class PersonDatabase {
|
|
|
51
51
|
return this._listResponseFromJson(response, PersonImage.fromJson)
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
async createGroup(name,
|
|
55
|
-
var response = await exec("createGroup", [name,
|
|
54
|
+
async createGroup(name, options) {
|
|
55
|
+
var response = await exec("createGroup", [name, options?.metadata])
|
|
56
56
|
return this._itemResponseFromJson(response, PersonGroup.fromJson)
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -10,14 +10,14 @@ export class SearchPersonRequest {
|
|
|
10
10
|
detectAll
|
|
11
11
|
outputImageParams
|
|
12
12
|
|
|
13
|
-
constructor(image,
|
|
13
|
+
constructor(image, options) {
|
|
14
14
|
this.imageUpload = image
|
|
15
|
-
this.groupIdsForSearch =
|
|
16
|
-
this.threshold =
|
|
17
|
-
this.limit =
|
|
18
|
-
this.tag =
|
|
19
|
-
this.detectAll =
|
|
20
|
-
this.outputImageParams =
|
|
15
|
+
this.groupIdsForSearch = options?.groupIdsForSearch
|
|
16
|
+
this.threshold = options?.threshold
|
|
17
|
+
this.limit = options?.limit
|
|
18
|
+
this.tag = options?.tag
|
|
19
|
+
this.detectAll = options?.detectAll ?? false
|
|
20
|
+
this.outputImageParams = options?.outputImageParams
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
static fromJson(jsonObject) {
|