@regulaforensics/document-reader 9.8.1039-beta → 9.8.1046-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RNDocumentReader.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/kotlin/com/regula/plugin/documentreader/Config.kt +2 -0
- package/android/src/main/kotlin/com/regula/plugin/documentreader/JSONConstructor.kt +13 -0
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/package.json +1 -1
- package/ios/RGLWConfig.m +3 -0
- package/ios/RGLWJSONConstructor.h +2 -0
- package/ios/RGLWJSONConstructor.m +19 -0
- package/ios/RGLWMain.h +1 -2
- package/ios/RGLWMain.m +1 -1
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +126 -50
- package/test/package-lock.json +1 -1
- package/test/test.tsx +3 -0
- package/www/capacitor/index.js +4 -1
- package/www/capacitor/params/process_params/ImageQA.js +9 -0
- package/www/capacitor/params/process_params/OcclusionCheckParams.js +21 -0
- package/www/capacitor/params/rfid_scenario/RFIDScenario.js +9 -1
- package/www/capacitor/results/rfid/Application.js +5 -1
- package/www/cordova.js +186 -147
- package/www/react-native/index.js +4 -1
- package/www/react-native/params/process_params/ImageQA.js +9 -0
- package/www/react-native/params/process_params/OcclusionCheckParams.js +21 -0
- package/www/react-native/params/rfid_scenario/RFIDScenario.js +9 -1
- package/www/react-native/results/rfid/Application.js +5 -1
- package/www/types/index.d.ts +4 -1
- package/www/types/params/process_params/ImageQA.d.ts +6 -0
- package/www/types/params/process_params/OcclusionCheckParams.d.ts +16 -0
- package/www/types/params/rfid_scenario/RFIDScenario.d.ts +9 -0
- package/www/types/results/rfid/Application.d.ts +5 -1
package/RNDocumentReader.podspec
CHANGED
|
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
|
|
|
5
5
|
|
|
6
6
|
Pod::Spec.new do |s|
|
|
7
7
|
s.name = 'RNDocumentReader'
|
|
8
|
-
s.version = '9.8.
|
|
8
|
+
s.version = '9.8.1046-rc'
|
|
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/CVDDocumentReader.h', 'ios/CVDDocumentReader.m' ]
|
|
19
|
-
s.dependency '
|
|
19
|
+
s.dependency 'DocumentReaderStage', '9.8.6884'
|
|
20
20
|
s.dependency 'React'
|
|
21
21
|
end
|
package/android/build.gradle
CHANGED
|
@@ -20,7 +20,7 @@ android {
|
|
|
20
20
|
rootProject.allprojects {
|
|
21
21
|
repositories {
|
|
22
22
|
maven {
|
|
23
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader"
|
|
23
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -29,7 +29,7 @@ dependencies {
|
|
|
29
29
|
//noinspection GradleDynamicVersion
|
|
30
30
|
implementation 'com.facebook.react:react-native:+'
|
|
31
31
|
//noinspection GradleDependency
|
|
32
|
-
implementation('com.regula.documentreader:api:9.
|
|
32
|
+
implementation('com.regula.documentreader:api:9.8.13289'){
|
|
33
33
|
transitive = true
|
|
34
34
|
}
|
|
35
35
|
}
|
package/android/cordova.gradle
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
repositories {
|
|
2
2
|
maven {
|
|
3
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader"
|
|
3
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
dependencies {
|
|
8
8
|
//noinspection GradleDependency
|
|
9
|
-
implementation('com.regula.documentreader:api:9.
|
|
9
|
+
implementation('com.regula.documentreader:api:9.8.13289'){
|
|
10
10
|
transitive = true
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -685,6 +685,7 @@ fun setImageQA(input: ImageQA, opts: JSONObject) = opts.forEach { k, v ->
|
|
|
685
685
|
"expectedPass" -> input.expectedPass = v.toIntArray()
|
|
686
686
|
"glaresCheckParams" -> input.glaresCheckParams = glaresCheckParamsFromJSON(v as JSONObject)
|
|
687
687
|
"occlusionCheck" -> input.occlusionCheck = v as Boolean
|
|
688
|
+
"occlusionCheckParams" -> input.occlusionCheckParams = occlusionCheckParamsFromJSON(v as JSONObject)
|
|
688
689
|
}
|
|
689
690
|
}
|
|
690
691
|
|
|
@@ -700,6 +701,7 @@ fun getImageQA(input: ImageQA) = mapOf(
|
|
|
700
701
|
"expectedPass" to input.expectedPass.toJson(),
|
|
701
702
|
"glaresCheckParams" to generateGlaresCheckParams(input.glaresCheckParams),
|
|
702
703
|
"occlusionCheck" to input.occlusionCheck,
|
|
704
|
+
"occlusionCheckParams" to generateOcclusionCheckParams(input.occlusionCheckParams),
|
|
703
705
|
).toJson()
|
|
704
706
|
|
|
705
707
|
fun setAuthenticityParams(input: AuthenticityParams, opts: JSONObject) = opts.forEach { k, v ->
|
|
@@ -38,6 +38,7 @@ import com.regula.documentreader.api.params.ImageInputData
|
|
|
38
38
|
import com.regula.documentreader.api.params.ImageQA
|
|
39
39
|
import com.regula.documentreader.api.params.ImageQA.GlaresCheckParams
|
|
40
40
|
import com.regula.documentreader.api.params.LivenessParams
|
|
41
|
+
import com.regula.documentreader.api.params.OcclusionCheckParams
|
|
41
42
|
import com.regula.documentreader.api.params.OnlineProcessingConfig
|
|
42
43
|
import com.regula.documentreader.api.params.ParamsCustomization
|
|
43
44
|
import com.regula.documentreader.api.params.ProcessParam
|
|
@@ -545,6 +546,18 @@ fun generateGlaresCheckParams(input: GlaresCheckParams?) = input?.let {
|
|
|
545
546
|
).toJson()
|
|
546
547
|
}
|
|
547
548
|
|
|
549
|
+
fun occlusionCheckParamsFromJSON(input: JSONObject?) = input?.let {
|
|
550
|
+
val result = OcclusionCheckParams()
|
|
551
|
+
if (it.has("maxOcclusionPart")) result.maxOcclusionPart = it.getDouble("maxOcclusionPart")
|
|
552
|
+
result
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
fun generateOcclusionCheckParams(input: OcclusionCheckParams?) = input?.let {
|
|
556
|
+
mapOf(
|
|
557
|
+
"maxOcclusionPart" to it.maxOcclusionPart,
|
|
558
|
+
).toJson()
|
|
559
|
+
}
|
|
560
|
+
|
|
548
561
|
@SuppressLint("DiscouragedApi")
|
|
549
562
|
fun typefaceFromJSON(it: JSONObject): Pair<Typeface?, Int?> {
|
|
550
563
|
val font = try {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/document-reader": "9.8.
|
|
9
|
+
"@regulaforensics/document-reader": "9.8.1046-rc",
|
|
10
10
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.7.2727",
|
|
11
11
|
"@regulaforensics/document-reader-btdevice": "9.7.63",
|
|
12
12
|
"@awesome-cordova-plugins/file": "^8.1.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@ionic/cordova-builders": "^12.3.0",
|
|
20
20
|
"@awesome-cordova-plugins/camera": "^9.2.0",
|
|
21
21
|
"@awesome-cordova-plugins/file": "^9.2.0",
|
|
22
|
-
"@regulaforensics/document-reader": "9.8.
|
|
22
|
+
"@regulaforensics/document-reader": "9.8.1046-rc",
|
|
23
23
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.7.2727",
|
|
24
24
|
"@regulaforensics/document-reader-btdevice": "9.7.63",
|
|
25
25
|
"cordova-android": "^15.0.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/document-reader": "9.8.
|
|
11
|
+
"@regulaforensics/document-reader": "9.8.1046-rc",
|
|
12
12
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.7.2727",
|
|
13
13
|
"@regulaforensics/document-reader-btdevice": "9.7.63",
|
|
14
14
|
"react-native": "^0.81.4",
|
package/ios/RGLWConfig.m
CHANGED
|
@@ -971,6 +971,8 @@
|
|
|
971
971
|
if([input valueForKey:@"brightnessThreshold"] != nil)
|
|
972
972
|
result.brightnessThreshold = [input valueForKey:@"brightnessThreshold"];
|
|
973
973
|
if(input[@"occlusionCheck"]) result.occlusionCheck = input[@"occlusionCheck"];
|
|
974
|
+
if([input valueForKey:@"occlusionCheckParams"] != nil)
|
|
975
|
+
result.occlusionCheckParams = [RGLWJSONConstructor occlusionCheckParamsFromJson:[input valueForKey:@"occlusionCheckParams"]];
|
|
974
976
|
}
|
|
975
977
|
|
|
976
978
|
+(NSDictionary*)getImageQA:(RGLImageQA*)input {
|
|
@@ -991,6 +993,7 @@
|
|
|
991
993
|
result[@"glaresCheckParams"] = [RGLWJSONConstructor generateGlaresCheckParams:input.glaresCheckParams];
|
|
992
994
|
result[@"brightnessThreshold"] = input.brightnessThreshold;
|
|
993
995
|
result[@"occlusionCheck"] = input.occlusionCheck;
|
|
996
|
+
result[@"occlusionCheckParams"] = [RGLWJSONConstructor generateOcclusionCheckParams:input.occlusionCheckParams];
|
|
994
997
|
|
|
995
998
|
return result;
|
|
996
999
|
}
|
|
@@ -45,6 +45,8 @@
|
|
|
45
45
|
+(NSDictionary* _Nullable)generateAuthenticityPropertiesParams:(RGLAuthenticityPropertiesParams* _Nullable)input;
|
|
46
46
|
+(RGLGlaresCheckParams* _Nullable)glaresCheckParamsFromJson:(NSDictionary* _Nullable)input;
|
|
47
47
|
+(NSDictionary* _Nullable)generateGlaresCheckParams:(RGLGlaresCheckParams* _Nullable)input;
|
|
48
|
+
+(RGLOcclusionCheckParams* _Nullable)occlusionCheckParamsFromJson:(NSDictionary* _Nullable)input;
|
|
49
|
+
+(NSDictionary* _Nullable)generateOcclusionCheckParams:(RGLOcclusionCheckParams* _Nullable)input;
|
|
48
50
|
+(RGLImageQA* _Nullable)imageQAFromJson:(NSDictionary* _Nullable)input;
|
|
49
51
|
+(NSDictionary* _Nullable)generateImageQA:(RGLImageQA* _Nullable)input;
|
|
50
52
|
+(RGLRFIDParams* _Nullable)rfidParamsFromJson:(NSDictionary* _Nullable)input;
|
|
@@ -507,6 +507,25 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
507
507
|
return result;
|
|
508
508
|
}
|
|
509
509
|
|
|
510
|
+
+(RGLOcclusionCheckParams*)occlusionCheckParamsFromJson:(NSDictionary*)input {
|
|
511
|
+
if(input == nil) return nil;
|
|
512
|
+
RGLOcclusionCheckParams *result = [RGLOcclusionCheckParams new];
|
|
513
|
+
|
|
514
|
+
if([input valueForKey:@"maxOcclusionPart"] != nil)
|
|
515
|
+
result.maxOcclusionPart = [input valueForKey:@"maxOcclusionPart"];
|
|
516
|
+
|
|
517
|
+
return result;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
+(NSDictionary*)generateOcclusionCheckParams:(RGLOcclusionCheckParams*)input {
|
|
521
|
+
if(input == nil) return nil;
|
|
522
|
+
NSMutableDictionary* result = [NSMutableDictionary new];
|
|
523
|
+
|
|
524
|
+
result[@"maxOcclusionPart"] = input.maxOcclusionPart;
|
|
525
|
+
|
|
526
|
+
return result;
|
|
527
|
+
}
|
|
528
|
+
|
|
510
529
|
+(RGLImageInput*)imageInputFromJson:(NSDictionary*)input {
|
|
511
530
|
if(input == nil) return nil;
|
|
512
531
|
|
package/ios/RGLWMain.h
CHANGED
|
@@ -10,8 +10,7 @@ extern UIViewController*_Nonnull(^ _Nonnull RGLWRootViewController)(void);
|
|
|
10
10
|
@interface RGLWMain: NSObject<RGLRecordScanningProcessDelegate,
|
|
11
11
|
RGLDocReaderRFIDDelegate,
|
|
12
12
|
RGLCustomizationActionDelegate,
|
|
13
|
-
RGLDocReaderDatabaseFetchDelegate
|
|
14
|
-
RGLBluetoothDelegate>
|
|
13
|
+
RGLDocReaderDatabaseFetchDelegate>
|
|
15
14
|
|
|
16
15
|
+(void)methodCall:(NSString* _Nonnull)method
|
|
17
16
|
:(NSArray* _Nonnull)args
|
package/ios/RGLWMain.m
CHANGED
|
@@ -328,7 +328,7 @@ RGLWCallback savedCallbackForBluetoothResult;
|
|
|
328
328
|
// start searching devices
|
|
329
329
|
if (!bluetooth) {
|
|
330
330
|
bluetooth = [RGLBluetooth new];
|
|
331
|
-
bluetooth.delegate = this;
|
|
331
|
+
bluetooth.delegate = (id<RGLBluetoothDelegate>)this;
|
|
332
332
|
}
|
|
333
333
|
savedCallbackForBluetoothResult = callback;
|
|
334
334
|
[bluetooth connectWithDeviceName:deviceName];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/document-reader",
|
|
3
|
-
"version": "9.8.
|
|
3
|
+
"version": "9.8.1046-rc",
|
|
4
4
|
"description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents 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/document-reader" version="9.8.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="9.8.1046-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReader</name>
|
|
4
4
|
<description>Cordova plugin for Regula Document Reader SDK</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<source url="https://github.com/regulaforensics/podspecs.git" />
|
|
30
30
|
</config>
|
|
31
31
|
<pods>
|
|
32
|
-
<pod name="
|
|
32
|
+
<pod name="DocumentReaderStage" spec="9.8.6884" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/test/json.tsx
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
var img1 =
|
|
2
|
-
|
|
3
|
-
var
|
|
1
|
+
export var img1 =
|
|
2
|
+
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAAGgAwAEAAAAAQAAAAEAAAAAChjw/QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAxJREFUCB1j+P//PwAF/gL+n8otEwAAAABJRU5ErkJggg==";
|
|
3
|
+
export var img2 =
|
|
4
|
+
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAAGgAwAEAAAAAQAAAAEAAAAAChjw/QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAtJREFUCB1jYAACAAAFAAGNu5vzAAAAAElFTkSuQmCC";
|
|
5
|
+
export var img3 =
|
|
6
|
+
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAAGgAwAEAAAAAQAAAAEAAAAAChjw/QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAA1JREFUCB1j+M/AUA8ABIABfzhDTCYAAAAASUVORK5CYII=";
|
|
4
7
|
|
|
5
8
|
export var faceApiSearchParams = {
|
|
6
9
|
"limit": 1,
|
|
@@ -51,7 +54,13 @@ export var authenticityParams = {
|
|
|
51
54
|
"livenessParams": livenessParams,
|
|
52
55
|
"propertiesParams": propertiesParams,
|
|
53
56
|
};
|
|
54
|
-
export var glaresCheckParams = {
|
|
57
|
+
export var glaresCheckParams = {
|
|
58
|
+
"imgMarginPart": 0.5,
|
|
59
|
+
"maxGlaringPart": 1.5,
|
|
60
|
+
};
|
|
61
|
+
export var occlusionCheckParams = {
|
|
62
|
+
"maxOcclusionPart": 0.5,
|
|
63
|
+
};
|
|
55
64
|
export var imageQA = {
|
|
56
65
|
"dpiThreshold": 1,
|
|
57
66
|
"angleThreshold": 2,
|
|
@@ -64,6 +73,7 @@ export var imageQA = {
|
|
|
64
73
|
"glaresCheckParams": glaresCheckParams,
|
|
65
74
|
"brightnessThreshold": 0.5,
|
|
66
75
|
"occlusionCheck": true,
|
|
76
|
+
"occlusionCheckParams": occlusionCheckParams,
|
|
67
77
|
};
|
|
68
78
|
export var rfidParams = {
|
|
69
79
|
"paIgnoreNotificationCodes": [1, 2, 3],
|
|
@@ -163,8 +173,16 @@ export var processParams = {
|
|
|
163
173
|
"authenticityParams": authenticityParams,
|
|
164
174
|
"customParams": {"test1": true, "test2": 1, "test3": "test"},
|
|
165
175
|
};
|
|
166
|
-
export var font1 = {
|
|
167
|
-
|
|
176
|
+
export var font1 = {
|
|
177
|
+
"name": "AppleSDGothicNeo-Thin",
|
|
178
|
+
"size": 10,
|
|
179
|
+
"style": 2,
|
|
180
|
+
};
|
|
181
|
+
export var font2 = {
|
|
182
|
+
"name": "Copperplate-Light",
|
|
183
|
+
"size": 20,
|
|
184
|
+
"style": 1,
|
|
185
|
+
};
|
|
168
186
|
export var customizationColors = {
|
|
169
187
|
"rfidProcessingScreenBackground": 0xff000000,
|
|
170
188
|
"rfidProcessingScreenHintLabelText": 0xff000001,
|
|
@@ -314,28 +332,8 @@ export var customization = {
|
|
|
314
332
|
"livenessAnimationImageContentMode": 3,
|
|
315
333
|
"borderBackgroundImageContentMode": 4,
|
|
316
334
|
"helpAnimationImageMatrix": [1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9],
|
|
317
|
-
"multipageAnimationFrontImageMatrix": [
|
|
318
|
-
|
|
319
|
-
2.2,
|
|
320
|
-
2.3,
|
|
321
|
-
2.4,
|
|
322
|
-
2.5,
|
|
323
|
-
2.6,
|
|
324
|
-
2.7,
|
|
325
|
-
2.8,
|
|
326
|
-
2.9,
|
|
327
|
-
],
|
|
328
|
-
"multipageAnimationBackImageMatrix": [
|
|
329
|
-
3.1,
|
|
330
|
-
3.2,
|
|
331
|
-
3.3,
|
|
332
|
-
3.4,
|
|
333
|
-
3.5,
|
|
334
|
-
3.6,
|
|
335
|
-
3.7,
|
|
336
|
-
3.8,
|
|
337
|
-
3.9,
|
|
338
|
-
],
|
|
335
|
+
"multipageAnimationFrontImageMatrix": [2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9],
|
|
336
|
+
"multipageAnimationBackImageMatrix": [3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9],
|
|
339
337
|
"livenessAnimationImageMatrix": [4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9],
|
|
340
338
|
"borderBackgroundImageMatrix": [5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 5.9],
|
|
341
339
|
"colors": customizationColors,
|
|
@@ -345,7 +343,10 @@ export var customization = {
|
|
|
345
343
|
"contentModes": customizationContentModes,
|
|
346
344
|
"matrices": customizationMatrices,
|
|
347
345
|
};
|
|
348
|
-
export var cameraSize = {
|
|
346
|
+
export var cameraSize = {
|
|
347
|
+
"width": 0,
|
|
348
|
+
"height": 1,
|
|
349
|
+
};
|
|
349
350
|
export var functionality = {
|
|
350
351
|
"pictureOnBoundsReady": true,
|
|
351
352
|
"showTorchButton": false,
|
|
@@ -532,7 +533,11 @@ export var onlineProcessingConfig = {
|
|
|
532
533
|
"processParams": processParams,
|
|
533
534
|
"requestHeaders": {"key1": "val1", "key2": "val2", "key3": "val3"},
|
|
534
535
|
};
|
|
535
|
-
export var imageInputData = {
|
|
536
|
+
export var imageInputData = {
|
|
537
|
+
"image": img1,
|
|
538
|
+
"light": 128,
|
|
539
|
+
"pageIndex": 2,
|
|
540
|
+
};
|
|
536
541
|
export var recognizeConfig = {
|
|
537
542
|
"scenario": "Mrz",
|
|
538
543
|
"livePortrait": img1,
|
|
@@ -604,9 +609,19 @@ export var license = {
|
|
|
604
609
|
"countryFilter": ["test2", "test3", "test4"],
|
|
605
610
|
"isRfidAvailable": true,
|
|
606
611
|
};
|
|
607
|
-
export var docReaderException = {
|
|
608
|
-
|
|
609
|
-
|
|
612
|
+
export var docReaderException = {
|
|
613
|
+
"code": 1,
|
|
614
|
+
"message": "test1",
|
|
615
|
+
};
|
|
616
|
+
export var rfidException = {
|
|
617
|
+
"code": 2,
|
|
618
|
+
"message": "test2",
|
|
619
|
+
};
|
|
620
|
+
export var prepareProgress = {
|
|
621
|
+
"downloadedBytes": 1,
|
|
622
|
+
"totalBytes": 2,
|
|
623
|
+
"progress": 50,
|
|
624
|
+
};
|
|
610
625
|
|
|
611
626
|
export var authenticityElement = {
|
|
612
627
|
"status": 1,
|
|
@@ -626,7 +641,11 @@ export var authenticityResult = {
|
|
|
626
641
|
"status": 2,
|
|
627
642
|
"checks": [authenticityCheck, authenticityCheck, authenticityCheck],
|
|
628
643
|
};
|
|
629
|
-
export var pdf417Info = {
|
|
644
|
+
export var pdf417Info = {
|
|
645
|
+
"errorLevel": 2,
|
|
646
|
+
"columns": 3,
|
|
647
|
+
"rows": 4,
|
|
648
|
+
};
|
|
630
649
|
export var barcodeField = {
|
|
631
650
|
"barcodeType": 5,
|
|
632
651
|
"status": -6001,
|
|
@@ -637,7 +656,12 @@ export var barcodeField = {
|
|
|
637
656
|
export var barcodeResult = {
|
|
638
657
|
"fields": [barcodeField, barcodeField, barcodeField],
|
|
639
658
|
};
|
|
640
|
-
export var rect = {
|
|
659
|
+
export var rect = {
|
|
660
|
+
"bottom": 0,
|
|
661
|
+
"top": 1,
|
|
662
|
+
"left": 2,
|
|
663
|
+
"right": 3,
|
|
664
|
+
};
|
|
641
665
|
export var imageQuality = {
|
|
642
666
|
"featureType": 1,
|
|
643
667
|
"result": 2,
|
|
@@ -656,9 +680,19 @@ export var accessControlProcedureType = {
|
|
|
656
680
|
"status": 1,
|
|
657
681
|
"notifications": [1, 2, 3],
|
|
658
682
|
};
|
|
659
|
-
export var fileData = {
|
|
660
|
-
|
|
661
|
-
|
|
683
|
+
export var fileData = {
|
|
684
|
+
"data": "test",
|
|
685
|
+
"length": 2,
|
|
686
|
+
"type": 3,
|
|
687
|
+
"status": 4,
|
|
688
|
+
};
|
|
689
|
+
export var certificateData = {
|
|
690
|
+
"data": "test",
|
|
691
|
+
"length": 1,
|
|
692
|
+
};
|
|
693
|
+
export var securityObjectCertificates = {
|
|
694
|
+
"securityObject": certificateData,
|
|
695
|
+
};
|
|
662
696
|
export var file = {
|
|
663
697
|
"fileData": fileData,
|
|
664
698
|
"fileID": "test1",
|
|
@@ -689,7 +723,10 @@ export var rfidValue = {
|
|
|
689
723
|
"type": 3,
|
|
690
724
|
"format": "test2",
|
|
691
725
|
};
|
|
692
|
-
export var attribute = {
|
|
726
|
+
export var attribute = {
|
|
727
|
+
"type": "test",
|
|
728
|
+
"value": rfidValue,
|
|
729
|
+
};
|
|
693
730
|
export var authority = {
|
|
694
731
|
"attributes": [attribute, attribute, attribute],
|
|
695
732
|
"data": "test",
|
|
@@ -711,8 +748,14 @@ export var cardProperties = {
|
|
|
711
748
|
"baudrate2": "test4",
|
|
712
749
|
"uID": "test5",
|
|
713
750
|
};
|
|
714
|
-
export var extension = {
|
|
715
|
-
|
|
751
|
+
export var extension = {
|
|
752
|
+
"data": "test1",
|
|
753
|
+
"type": "test2",
|
|
754
|
+
};
|
|
755
|
+
export var rfidValidity = {
|
|
756
|
+
"notAfter": rfidValue,
|
|
757
|
+
"notBefore": rfidValue,
|
|
758
|
+
};
|
|
716
759
|
export var certificateChain = {
|
|
717
760
|
"type": 1,
|
|
718
761
|
"extensions": [extension, extension, extension],
|
|
@@ -728,7 +771,10 @@ export var certificateChain = {
|
|
|
728
771
|
"validity": rfidValidity,
|
|
729
772
|
"version": 4,
|
|
730
773
|
};
|
|
731
|
-
export var dataField = {
|
|
774
|
+
export var dataField = {
|
|
775
|
+
"data": "test",
|
|
776
|
+
"fieldType": 1,
|
|
777
|
+
};
|
|
732
778
|
export var signerInfo = {
|
|
733
779
|
"dataToHash": "test1",
|
|
734
780
|
"digestAlgorithm": "test2",
|
|
@@ -767,7 +813,12 @@ export var rfidSessionData = {
|
|
|
767
813
|
"extLeSupport": 1,
|
|
768
814
|
"processTime": 4,
|
|
769
815
|
};
|
|
770
|
-
export var bytesData = {
|
|
816
|
+
export var bytesData = {
|
|
817
|
+
"data": "test",
|
|
818
|
+
"length": 1,
|
|
819
|
+
"status": 2,
|
|
820
|
+
"type": 3,
|
|
821
|
+
};
|
|
771
822
|
export var vdsncData = {
|
|
772
823
|
"type": "test1",
|
|
773
824
|
"version": 1,
|
|
@@ -779,7 +830,10 @@ export var vdsncData = {
|
|
|
779
830
|
"certificateChain": [certificateChain, certificateChain, certificateChain],
|
|
780
831
|
"notifications": [3000000001, 3000000002, 3000000003],
|
|
781
832
|
};
|
|
782
|
-
export var docFeature = {
|
|
833
|
+
export var docFeature = {
|
|
834
|
+
"type": 0,
|
|
835
|
+
"data": bytesData,
|
|
836
|
+
};
|
|
783
837
|
export var vdsData = {
|
|
784
838
|
"type": 1,
|
|
785
839
|
"docType": 2,
|
|
@@ -836,7 +890,11 @@ export var resultsStatus = {
|
|
|
836
890
|
"detailsAge": ageStatus,
|
|
837
891
|
"detailsRFID": rfidStatus,
|
|
838
892
|
};
|
|
839
|
-
export var comparison = {
|
|
893
|
+
export var comparison = {
|
|
894
|
+
"sourceTypeLeft": 0,
|
|
895
|
+
"sourceTypeRight": 1,
|
|
896
|
+
"status": 2,
|
|
897
|
+
};
|
|
840
898
|
export var graphicField = {
|
|
841
899
|
"sourceType": 0,
|
|
842
900
|
"fieldType": 201,
|
|
@@ -851,9 +909,21 @@ export var graphicField = {
|
|
|
851
909
|
export var graphicResult = {
|
|
852
910
|
"fields": [graphicField, graphicField, graphicField],
|
|
853
911
|
};
|
|
854
|
-
export var rfidOrigin = {
|
|
855
|
-
|
|
856
|
-
|
|
912
|
+
export var rfidOrigin = {
|
|
913
|
+
"dg": 1,
|
|
914
|
+
"dgTag": 2,
|
|
915
|
+
"entryView": 3,
|
|
916
|
+
"tagEntry": 4,
|
|
917
|
+
};
|
|
918
|
+
export var symbol = {
|
|
919
|
+
"rect": rect,
|
|
920
|
+
"code": 1,
|
|
921
|
+
"probability": 2,
|
|
922
|
+
};
|
|
923
|
+
export var validity = {
|
|
924
|
+
"sourceType": 1,
|
|
925
|
+
"status": 2,
|
|
926
|
+
};
|
|
857
927
|
export var value = {
|
|
858
928
|
"sourceType": 3,
|
|
859
929
|
"value": "test1",
|
|
@@ -918,7 +988,10 @@ export var documentType = {
|
|
|
918
988
|
"dCountryName": "test5",
|
|
919
989
|
"pageIndex": 3,
|
|
920
990
|
};
|
|
921
|
-
export var coordinate = {
|
|
991
|
+
export var coordinate = {
|
|
992
|
+
"x": 1,
|
|
993
|
+
"y": 2,
|
|
994
|
+
};
|
|
922
995
|
export var position = {
|
|
923
996
|
"docFormat": 0,
|
|
924
997
|
"resultStatus": 1,
|
|
@@ -972,7 +1045,10 @@ export var rfidNotification = {
|
|
|
972
1045
|
"dataFileType": 1,
|
|
973
1046
|
"progress": 2,
|
|
974
1047
|
};
|
|
975
|
-
export var paAttribute = {
|
|
1048
|
+
export var paAttribute = {
|
|
1049
|
+
"type": "test1",
|
|
1050
|
+
"value": "test2",
|
|
1051
|
+
};
|
|
976
1052
|
export var paResourcesIssuer = {
|
|
977
1053
|
"data": img1,
|
|
978
1054
|
"friendlyName": "test",
|
package/test/package-lock.json
CHANGED
package/test/test.tsx
CHANGED
|
@@ -42,6 +42,7 @@ import {
|
|
|
42
42
|
FileData,
|
|
43
43
|
Functionality,
|
|
44
44
|
GlaresCheckParams,
|
|
45
|
+
OcclusionCheckParams,
|
|
45
46
|
RFIDParams,
|
|
46
47
|
GraphicField,
|
|
47
48
|
GraphicResult,
|
|
@@ -144,6 +145,7 @@ import {
|
|
|
144
145
|
fileData,
|
|
145
146
|
functionality,
|
|
146
147
|
glaresCheckParams,
|
|
148
|
+
occlusionCheckParams,
|
|
147
149
|
rfidParams,
|
|
148
150
|
graphicField,
|
|
149
151
|
graphicResult,
|
|
@@ -220,6 +222,7 @@ compare('livenessParams', livenessParams, LivenessParams.fromJson)
|
|
|
220
222
|
compare('propertiesParams', propertiesParams, AuthenticityPropertiesParams.fromJson);
|
|
221
223
|
compare('authenticityParams', authenticityParams, AuthenticityParams.fromJson)
|
|
222
224
|
compare('glaresCheckParams', glaresCheckParams, GlaresCheckParams.fromJson)
|
|
225
|
+
compare('occlusionCheckParams', occlusionCheckParams, OcclusionCheckParams.fromJson)
|
|
223
226
|
compare('rfidParams', rfidParams, RFIDParams.fromJson)
|
|
224
227
|
compare('imageQA', imageQA, ImageQA.fromJson)
|
|
225
228
|
compare('backendProcessingConfig', backendProcessingConfig, BackendProcessingConfig.fromJson)
|
package/www/capacitor/index.js
CHANGED
|
@@ -217,6 +217,7 @@ import { LivenessParams } from './params/process_params/LivenessParams';
|
|
|
217
217
|
import { AuthenticityPropertiesParams } from './params/process_params/AuthenticityPropertiesParams';
|
|
218
218
|
import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes } from './params/process_params/ProcessParams';
|
|
219
219
|
import { GlaresCheckParams } from './params/process_params/GlaresCheckParams';
|
|
220
|
+
import { OcclusionCheckParams } from './params/process_params/OcclusionCheckParams';
|
|
220
221
|
import { FaceApiParams } from './params/process_params/FaceApiParams';
|
|
221
222
|
import { RFIDParams } from './params/process_params/RFIDParams';
|
|
222
223
|
import { ImageQA } from './params/process_params/ImageQA';
|
|
@@ -233,6 +234,7 @@ export {
|
|
|
233
234
|
LogLevel,
|
|
234
235
|
MrzDetectionModes,
|
|
235
236
|
GlaresCheckParams,
|
|
237
|
+
OcclusionCheckParams,
|
|
236
238
|
FaceApiParams,
|
|
237
239
|
RFIDParams,
|
|
238
240
|
ImageQA,
|
|
@@ -280,7 +282,7 @@ export {
|
|
|
280
282
|
import { EPassportDataGroups } from './params/rfid_scenario/EPassportDataGroups';
|
|
281
283
|
import { EIDDataGroups } from './params/rfid_scenario/EIDDataGroups';
|
|
282
284
|
import { DTCDataGroup } from './params/rfid_scenario/DTCDataGroup';
|
|
283
|
-
import { RFIDScenario, RFIDAuthenticationProcedureType, RFIDPasswordType, RFIDSDKProfilerType, RFIDTerminalType, SignManagementAction, RFIDReadingBufferSize } from './params/rfid_scenario/RFIDScenario';
|
|
285
|
+
import { RFIDScenario, RFIDAuthenticationProcedureType, RFIDPasswordType, RFIDAccessControl, RFIDSDKProfilerType, RFIDTerminalType, SignManagementAction, RFIDReadingBufferSize } from './params/rfid_scenario/RFIDScenario';
|
|
284
286
|
import { EDLDataGroups } from './params/rfid_scenario/EDLDataGroups';
|
|
285
287
|
export {
|
|
286
288
|
EPassportDataGroups,
|
|
@@ -289,6 +291,7 @@ export {
|
|
|
289
291
|
RFIDScenario,
|
|
290
292
|
RFIDAuthenticationProcedureType,
|
|
291
293
|
RFIDPasswordType,
|
|
294
|
+
RFIDAccessControl,
|
|
292
295
|
RFIDSDKProfilerType,
|
|
293
296
|
RFIDTerminalType,
|
|
294
297
|
SignManagementAction,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DocumentReader } from '../../index';
|
|
2
2
|
import { GlaresCheckParams } from './GlaresCheckParams';
|
|
3
|
+
import { OcclusionCheckParams } from "./OcclusionCheckParams";
|
|
3
4
|
import { ImageQualityCheckType } from '../../results/image_quality/ImageQualityCheckType';
|
|
4
5
|
|
|
5
6
|
export class ImageQA {
|
|
@@ -33,6 +34,12 @@ export class ImageQA {
|
|
|
33
34
|
this._set({ "glaresCheckParams": val });
|
|
34
35
|
}
|
|
35
36
|
|
|
37
|
+
get occlusionCheckParams() { return this._occlusionCheckParams; }
|
|
38
|
+
set occlusionCheckParams(val) {
|
|
39
|
+
this._occlusionCheckParams = val;
|
|
40
|
+
this._set({ "occlusionCheckParams": val });
|
|
41
|
+
}
|
|
42
|
+
|
|
36
43
|
get colornessCheck() { return this._colornessCheck; }
|
|
37
44
|
set colornessCheck(val) {
|
|
38
45
|
this._colornessCheck = val;
|
|
@@ -81,6 +88,7 @@ export class ImageQA {
|
|
|
81
88
|
result._screenCapture = jsonObject["screenCapture"];
|
|
82
89
|
result._expectedPass = jsonObject["expectedPass"];
|
|
83
90
|
result._glaresCheckParams = GlaresCheckParams.fromJson(jsonObject["glaresCheckParams"]);
|
|
91
|
+
result._occlusionCheckParams = OcclusionCheckParams.fromJson(jsonObject["occlusionCheckParams"]);
|
|
84
92
|
result._documentPositionIndent = jsonObject["documentPositionIndent"];
|
|
85
93
|
result._brightnessThreshold = jsonObject["brightnessThreshold"];
|
|
86
94
|
result._occlusionCheck = jsonObject["occlusionCheck"];
|
|
@@ -106,6 +114,7 @@ export class ImageQA {
|
|
|
106
114
|
"screenCapture": this.screenCapture,
|
|
107
115
|
"expectedPass": this.expectedPass,
|
|
108
116
|
"glaresCheckParams": this.glaresCheckParams?.toJson(),
|
|
117
|
+
"occlusionCheckParams": this.occlusionCheckParams?.toJson(),
|
|
109
118
|
"brightnessThreshold": this.brightnessThreshold,
|
|
110
119
|
"occlusionCheck": this.occlusionCheck,
|
|
111
120
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class OcclusionCheckParams {
|
|
2
|
+
maxOcclusionPart
|
|
3
|
+
|
|
4
|
+
constructor(options) {
|
|
5
|
+
this.maxOcclusionPart = options?.maxOcclusionPart;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
static fromJson(jsonObject) {
|
|
9
|
+
if (jsonObject == null) return null;
|
|
10
|
+
|
|
11
|
+
return new OcclusionCheckParams({
|
|
12
|
+
maxOcclusionPart: jsonObject["maxOcclusionPart"],
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
toJson() {
|
|
17
|
+
return {
|
|
18
|
+
"maxOcclusionPart": this.maxOcclusionPart,
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|