@regulaforensics/face-sdk 7.1.398-nightly → 7.1.400-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/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +2 -0
- package/examples/capacitor/package.json +2 -2
- package/examples/cordova/package.json +2 -2
- package/examples/ionic/package.json +2 -2
- package/examples/react_native/package.json +2 -2
- package/ios/RFSWJSONConstructor.h +0 -1
- package/ios/RFSWJSONConstructor.m +3 -11
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/www/capacitor/person_database/search_person_request.js +2 -0
- package/www/cordova.js +2 -0
- package/www/react-native/person_database/search_person_request.js +2 -0
- package/www/types/person_database/search_person_request.d.ts +4 -0
package/RNFaceSDK.podspec
CHANGED
|
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
|
|
|
5
5
|
|
|
6
6
|
Pod::Spec.new do |s|
|
|
7
7
|
s.name = 'RNFaceSDK'
|
|
8
|
-
s.version = '7.1.
|
|
8
|
+
s.version = '7.1.400-nightly'
|
|
9
9
|
s.summary = package['description']
|
|
10
10
|
s.license = package['license']
|
|
11
11
|
|
|
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.ios.deployment_target = '13.0'
|
|
17
17
|
s.source_files = 'ios/**/*.{h,m}'
|
|
18
18
|
s.exclude_files = [ 'ios/CVDFaceSDK.h', 'ios/CVDFaceSDK.m' ]
|
|
19
|
-
s.dependency 'FaceSDKNightly', '7.1.
|
|
19
|
+
s.dependency 'FaceSDKNightly', '7.1.3005'
|
|
20
20
|
s.dependency 'React'
|
|
21
21
|
end
|
|
@@ -833,6 +833,7 @@ fun searchPersonRequestFromJSON(it: JSONObject) = object : SearchPersonRequest()
|
|
|
833
833
|
groupIdsForSearch = it.getJSONArrayOrNull("groupIdsForSearch").toArray()
|
|
834
834
|
threshold = it.getDoubleOrNull("threshold")?.toFloat()
|
|
835
835
|
limit = it.getIntOrNull("limit")
|
|
836
|
+
tag = it.getStringOrNull("tag")
|
|
836
837
|
imageUpload = imageUploadFromJSON(it.getJSONObjectOrNull("imageUpload"))
|
|
837
838
|
isDetectAll = it.optBoolean("detectAll", false)
|
|
838
839
|
outputImageParams = outputImageParamsFromJSON(it.getJSONObjectOrNull("outputImageParams"))
|
|
@@ -843,6 +844,7 @@ fun generateSearchPersonRequest(it: SearchPersonRequest) = mapOf(
|
|
|
843
844
|
"groupIdsForSearch" to it.groupIdsForSearch.toJson(),
|
|
844
845
|
"threshold" to it.threshold,
|
|
845
846
|
"limit" to it.limit,
|
|
847
|
+
"tag" to it.tag,
|
|
846
848
|
"imageUpload" to generateImageUpload(it.imageUpload),
|
|
847
849
|
"detectAll" to it.isDetectAll,
|
|
848
850
|
"outputImageParams" to generateOutputImageParams(it.outputImageParams)
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
10
|
-
"@regulaforensics/face-core-basic": "7.1.
|
|
9
|
+
"@regulaforensics/face-sdk": "7.1.400-nightly",
|
|
10
|
+
"@regulaforensics/face-core-basic": "7.1.237-nightly",
|
|
11
11
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
12
12
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
13
13
|
"cordova-plugin-file": "8.1.3",
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
10
|
-
"@regulaforensics/face-core-basic": "7.1.
|
|
9
|
+
"@regulaforensics/face-sdk": "7.1.400-nightly",
|
|
10
|
+
"@regulaforensics/face-core-basic": "7.1.237-nightly",
|
|
11
11
|
"cordova-ios": "7.1.1",
|
|
12
12
|
"cordova-android": "13.0.0",
|
|
13
13
|
"cordova-plugin-file": "8.1.3",
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
10
|
-
"@regulaforensics/face-core-basic": "7.1.
|
|
9
|
+
"@regulaforensics/face-sdk": "7.1.400-nightly",
|
|
10
|
+
"@regulaforensics/face-core-basic": "7.1.237-nightly",
|
|
11
11
|
"@awesome-cordova-plugins/file": "6.16.0",
|
|
12
12
|
"@awesome-cordova-plugins/camera": "6.16.0",
|
|
13
13
|
"@awesome-cordova-plugins/dialogs": "6.16.0",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
12
|
-
"@regulaforensics/face-core-basic": "7.1.
|
|
11
|
+
"@regulaforensics/face-sdk": "7.1.400-nightly",
|
|
12
|
+
"@regulaforensics/face-core-basic": "7.1.237-nightly",
|
|
13
13
|
"react-native": "0.79.2",
|
|
14
14
|
"react-native-fs": "2.20.0",
|
|
15
15
|
"react-native-image-picker": "8.2.1",
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
+(RFSImageQualityCharacteristic* _Nonnull)imageQualityCharacteristicFromJSON:(id _Nonnull)input;
|
|
53
53
|
+(NSDictionary<NSString*, id>* _Nonnull)generateImageQualityCharacteristic:(RFSImageQualityCharacteristic* _Nonnull)input;
|
|
54
54
|
|
|
55
|
-
+(RFSFaceSDKVersion* _Nonnull)faceSDKVersionFromJSON:(id _Nonnull)input;
|
|
56
55
|
+(NSDictionary<NSString*, id>* _Nonnull)generateFaceSDKVersion:(RFSFaceSDKVersion* _Nonnull)input;
|
|
57
56
|
|
|
58
57
|
+(RFSInitializationConfiguration* _Nonnull)initConfigFromJSON:(id _Nonnull)input;
|
|
@@ -203,17 +203,7 @@
|
|
|
203
203
|
return result;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
|
|
207
|
-
if (!input || [input isEqual:[NSNull null]]) return nil;
|
|
208
|
-
RFSFaceSDKVersion* result = [RFSFaceSDKVersion new];
|
|
209
|
-
|
|
210
|
-
[result setValue:input[@"api"] forKey:@"api"];
|
|
211
|
-
[result setValue:input[@"core"] forKey:@"core"];
|
|
212
|
-
[result setValue:input[@"coreMode"] forKey:@"coreMode"];
|
|
213
|
-
|
|
214
|
-
return result;
|
|
215
|
-
}
|
|
216
|
-
|
|
206
|
+
// No fromJSON and no tests for FaceSDKVersion because of its implementation.
|
|
217
207
|
+(id)generateFaceSDKVersion:(RFSFaceSDKVersion*)input {
|
|
218
208
|
if (!input) return [NSNull null];
|
|
219
209
|
NSMutableDictionary* result = @{}.mutableCopy;
|
|
@@ -892,6 +882,7 @@
|
|
|
892
882
|
imageUpload:[self imageUploadFromJSON:input[@"imageUpload"]]];
|
|
893
883
|
result.threshold = input[@"threshold"];
|
|
894
884
|
result.limit = input[@"limit"];
|
|
885
|
+
result.tag = input[@"tag"];
|
|
895
886
|
if (input[@"detectAll"] && ![input[@"detectAll"] isEqual:[NSNull null]]) result.detectAll = [input[@"detectAll"] boolValue];
|
|
896
887
|
result.outputImageParams = [self outputImageParamsFromJSON:input[@"outputImageParams"]];
|
|
897
888
|
return result;
|
|
@@ -905,6 +896,7 @@
|
|
|
905
896
|
}.mutableCopy;
|
|
906
897
|
if (input.threshold) result[@"threshold"] = input.threshold;
|
|
907
898
|
if (input.limit) result[@"limit"] = input.limit;
|
|
899
|
+
if (input.tag) result[@"tag"] = input.tag;
|
|
908
900
|
if (input.groupIdsForSearch) result[@"groupIdsForSearch"] = input.groupIdsForSearch;
|
|
909
901
|
if (input.outputImageParams) result[@"outputImageParams"] = [self generateOutputImageParams:input.outputImageParams];
|
|
910
902
|
return result;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/face-sdk",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.400-nightly",
|
|
4
4
|
"description": "This is an npm module for Regula Face SDK. It allows you to easily compaire faces using your phone's camera.",
|
|
5
5
|
"main": "www/react-native/index.js",
|
|
6
6
|
"module": "www/capacitor/index.js",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/face-sdk" version="7.1.
|
|
2
|
+
<plugin id="@regulaforensics/face-sdk" version="7.1.400-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>FaceSDK</name>
|
|
4
4
|
<description>Cordova plugin for Regula Face SDK</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<source url="https://github.com/CocoaPods/Specs.git" />
|
|
30
30
|
</config>
|
|
31
31
|
<pods>
|
|
32
|
-
<pod name="FaceSDKNightly" spec="7.1.
|
|
32
|
+
<pod name="FaceSDKNightly" spec="7.1.3005" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
|
@@ -3,6 +3,7 @@ export class SearchPersonRequest {
|
|
|
3
3
|
groupIdsForSearch
|
|
4
4
|
threshold
|
|
5
5
|
limit
|
|
6
|
+
tag
|
|
6
7
|
detectAll
|
|
7
8
|
outputImageParams
|
|
8
9
|
|
|
@@ -11,6 +12,7 @@ export class SearchPersonRequest {
|
|
|
11
12
|
this.groupIdsForSearch = params?.groupIdsForSearch
|
|
12
13
|
this.threshold = params?.threshold
|
|
13
14
|
this.limit = params?.limit
|
|
15
|
+
this.tag = params?.tag
|
|
14
16
|
this.detectAll = params?.detectAll ?? false
|
|
15
17
|
this.outputImageParams = params?.outputImageParams
|
|
16
18
|
}
|
package/www/cordova.js
CHANGED
|
@@ -3742,6 +3742,7 @@ class SearchPersonRequest {
|
|
|
3742
3742
|
groupIdsForSearch
|
|
3743
3743
|
threshold
|
|
3744
3744
|
limit
|
|
3745
|
+
tag
|
|
3745
3746
|
detectAll
|
|
3746
3747
|
outputImageParams
|
|
3747
3748
|
|
|
@@ -3750,6 +3751,7 @@ class SearchPersonRequest {
|
|
|
3750
3751
|
this.groupIdsForSearch = params?.groupIdsForSearch
|
|
3751
3752
|
this.threshold = params?.threshold
|
|
3752
3753
|
this.limit = params?.limit
|
|
3754
|
+
this.tag = params?.tag
|
|
3753
3755
|
this.detectAll = params?.detectAll ?? false
|
|
3754
3756
|
this.outputImageParams = params?.outputImageParams
|
|
3755
3757
|
}
|
|
@@ -3,6 +3,7 @@ export class SearchPersonRequest {
|
|
|
3
3
|
groupIdsForSearch
|
|
4
4
|
threshold
|
|
5
5
|
limit
|
|
6
|
+
tag
|
|
6
7
|
detectAll
|
|
7
8
|
outputImageParams
|
|
8
9
|
|
|
@@ -11,6 +12,7 @@ export class SearchPersonRequest {
|
|
|
11
12
|
this.groupIdsForSearch = params?.groupIdsForSearch
|
|
12
13
|
this.threshold = params?.threshold
|
|
13
14
|
this.limit = params?.limit
|
|
15
|
+
this.tag = params?.tag
|
|
14
16
|
this.detectAll = params?.detectAll ?? false
|
|
15
17
|
this.outputImageParams = params?.outputImageParams
|
|
16
18
|
}
|
|
@@ -20,6 +20,9 @@ export class SearchPersonRequest {
|
|
|
20
20
|
* @param params.limit - The number of returned Persons limit.
|
|
21
21
|
* Default: 100.
|
|
22
22
|
*
|
|
23
|
+
* @param tag - Defines tag that can be used in search request.
|
|
24
|
+
* Default: null.
|
|
25
|
+
*
|
|
23
26
|
* @param params.detectAll - Whether to process only the one face on the image or all the faces.
|
|
24
27
|
* Default: `false`.
|
|
25
28
|
*
|
|
@@ -32,6 +35,7 @@ export class SearchPersonRequest {
|
|
|
32
35
|
groupIdsForSearch?: string[],
|
|
33
36
|
threshold?: number,
|
|
34
37
|
limit?: number,
|
|
38
|
+
tag?: string,
|
|
35
39
|
detectAll?: boolean,
|
|
36
40
|
outputImageParams?: OutputImageParams
|
|
37
41
|
}
|