@regulaforensics/document-reader 8.3.273-beta → 8.3.276-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/RNDocumentReader.podspec +1 -1
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/package.json +1 -1
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/test/json.tsx +92 -92
- package/test/package-lock.json +1 -1
- package/test/package.json +0 -3
- package/test/test.tsx +87 -87
- package/test/utils.tsx +29 -25
- package/www/capacitor/config/OnlineProcessingConfig.js +11 -0
- package/www/capacitor/config/RecognizeConfig.js +23 -0
- package/www/capacitor/config/ScannerConfig.js +10 -0
- package/www/capacitor/info/DocReaderException.js +7 -0
- package/www/capacitor/info/DocReaderScenario.js +18 -0
- package/www/capacitor/info/DocReaderVersion.js +9 -0
- package/www/capacitor/info/DocumentsDatabase.js +12 -0
- package/www/capacitor/info/License.js +8 -0
- package/www/capacitor/info/PrepareProgress.js +8 -0
- package/www/capacitor/info/RFIDException.js +7 -0
- package/www/capacitor/params/Functionality.js +44 -0
- package/www/capacitor/params/customization/Customization.js +76 -0
- package/www/capacitor/params/customization/CustomizationColors.js +13 -0
- package/www/capacitor/params/customization/CustomizationFonts.js +8 -0
- package/www/capacitor/params/customization/CustomizationImages.js +6 -0
- package/www/capacitor/params/customization/Font.js +8 -0
- package/www/capacitor/params/process_params/AuthenticityParams.js +21 -0
- package/www/capacitor/params/process_params/BackendProcessingConfig.js +9 -0
- package/www/capacitor/params/process_params/FaceApiParams.js +13 -0
- package/www/capacitor/params/process_params/FaceApiSearchParams.js +8 -0
- package/www/capacitor/params/process_params/GlaresCheckParams.js +7 -0
- package/www/capacitor/params/process_params/ImageQA.js +16 -0
- package/www/capacitor/params/process_params/LivenessParams.js +12 -0
- package/www/capacitor/params/process_params/ProcessParams.js +82 -2
- package/www/capacitor/params/process_params/RfidParams.js +6 -0
- package/www/capacitor/params/rfid_scenario/DTCDataGroup.js +10 -0
- package/www/capacitor/params/rfid_scenario/EDLDataGroups.js +19 -0
- package/www/capacitor/params/rfid_scenario/EIDDataGroups.js +26 -0
- package/www/capacitor/params/rfid_scenario/EPassportDataGroups.js +21 -0
- package/www/capacitor/params/rfid_scenario/RFIDScenario.js +67 -0
- package/www/capacitor/results/Position.js +28 -0
- package/www/capacitor/results/Results.js +25 -0
- package/www/capacitor/results/TransactionInfo.js +8 -0
- package/www/capacitor/results/authenticity/AuthenticityCheck.js +10 -0
- package/www/capacitor/results/authenticity/AuthenticityElement.js +10 -0
- package/www/capacitor/results/authenticity/AuthenticityResult.js +7 -0
- package/www/capacitor/results/barcode/BarcodeField.js +10 -0
- package/www/capacitor/results/barcode/BarcodeResult.js +6 -0
- package/www/capacitor/results/barcode/PDF417Info.js +8 -0
- package/www/capacitor/results/image_quality/ImageQuality.js +9 -0
- package/www/capacitor/results/image_quality/ImageQualityGroup.js +9 -0
- package/www/capacitor/results/rfid/AccessControlProcedureType.js +9 -0
- package/www/capacitor/results/rfid/Application.js +12 -0
- package/www/capacitor/results/rfid/Attribute.js +7 -0
- package/www/capacitor/results/rfid/Authority.js +8 -0
- package/www/capacitor/results/rfid/CardProperties.js +19 -0
- package/www/capacitor/results/rfid/CertificateChain.js +18 -0
- package/www/capacitor/results/rfid/CertificateData.js +7 -0
- package/www/capacitor/results/rfid/DataField.js +7 -0
- package/www/capacitor/results/rfid/Extension.js +7 -0
- package/www/capacitor/results/rfid/File.js +17 -0
- package/www/capacitor/results/rfid/FileData.js +9 -0
- package/www/capacitor/results/rfid/RFIDSessionData.js +16 -0
- package/www/capacitor/results/rfid/RFIDValidity.js +7 -0
- package/www/capacitor/results/rfid/RFIDValue.js +10 -0
- package/www/capacitor/results/rfid/SecurityObject.js +10 -0
- package/www/capacitor/results/rfid/SecurityObjectCertificates.js +6 -0
- package/www/capacitor/results/rfid/SignerInfo.js +17 -0
- package/www/capacitor/results/status/OpticalStatus.js +14 -0
- package/www/capacitor/results/status/RFIDStatus.js +12 -0
- package/www/capacitor/results/status/ResultsStatus.js +12 -0
- package/www/capacitor/results/visible_digital_seals/BytesData.js +9 -0
- package/www/capacitor/results/visible_digital_seals/VDSNCData.js +14 -0
- package/www/capacitor/results/visual_results/Comparison.js +8 -0
- package/www/capacitor/results/visual_results/GraphicField.js +14 -0
- package/www/capacitor/results/visual_results/GraphicResult.js +6 -0
- package/www/capacitor/results/visual_results/RFIDOrigin.js +9 -0
- package/www/capacitor/results/visual_results/Rect.js +9 -0
- package/www/capacitor/results/visual_results/Symbol.js +8 -0
- package/www/capacitor/results/visual_results/TextField.js +17 -0
- package/www/capacitor/results/visual_results/TextResult.js +10 -0
- package/www/capacitor/results/visual_results/TextSource.js +8 -0
- package/www/capacitor/results/visual_results/Validity.js +7 -0
- package/www/capacitor/results/visual_results/Value.js +13 -0
- package/www/capacitor/rfid/PAAttribute.js +7 -0
- package/www/capacitor/rfid/PAResourcesIssuer.js +8 -0
- package/www/capacitor/rfid/PKDCertificate.js +8 -0
- package/www/capacitor/rfid/RFIDNotification.js +8 -0
- package/www/capacitor/rfid/TAChallenge.js +10 -0
- package/www/capacitor/rfid/TccParams.js +10 -0
- package/www/cordova.js +1122 -2
- package/www/react-native/config/OnlineProcessingConfig.js +11 -0
- package/www/react-native/config/RecognizeConfig.js +23 -0
- package/www/react-native/config/ScannerConfig.js +10 -0
- package/www/react-native/info/DocReaderException.js +7 -0
- package/www/react-native/info/DocReaderScenario.js +18 -0
- package/www/react-native/info/DocReaderVersion.js +9 -0
- package/www/react-native/info/DocumentsDatabase.js +12 -0
- package/www/react-native/info/License.js +8 -0
- package/www/react-native/info/PrepareProgress.js +8 -0
- package/www/react-native/info/RFIDException.js +7 -0
- package/www/react-native/params/Functionality.js +44 -0
- package/www/react-native/params/customization/Customization.js +76 -0
- package/www/react-native/params/customization/CustomizationColors.js +13 -0
- package/www/react-native/params/customization/CustomizationFonts.js +8 -0
- package/www/react-native/params/customization/CustomizationImages.js +6 -0
- package/www/react-native/params/customization/Font.js +8 -0
- package/www/react-native/params/process_params/AuthenticityParams.js +21 -0
- package/www/react-native/params/process_params/BackendProcessingConfig.js +9 -0
- package/www/react-native/params/process_params/FaceApiParams.js +13 -0
- package/www/react-native/params/process_params/FaceApiSearchParams.js +8 -0
- package/www/react-native/params/process_params/GlaresCheckParams.js +7 -0
- package/www/react-native/params/process_params/ImageQA.js +16 -0
- package/www/react-native/params/process_params/LivenessParams.js +12 -0
- package/www/react-native/params/process_params/ProcessParams.js +82 -2
- package/www/react-native/params/process_params/RfidParams.js +6 -0
- package/www/react-native/params/rfid_scenario/DTCDataGroup.js +10 -0
- package/www/react-native/params/rfid_scenario/EDLDataGroups.js +19 -0
- package/www/react-native/params/rfid_scenario/EIDDataGroups.js +26 -0
- package/www/react-native/params/rfid_scenario/EPassportDataGroups.js +21 -0
- package/www/react-native/params/rfid_scenario/RFIDScenario.js +67 -0
- package/www/react-native/results/Position.js +28 -0
- package/www/react-native/results/Results.js +25 -0
- package/www/react-native/results/TransactionInfo.js +8 -0
- package/www/react-native/results/authenticity/AuthenticityCheck.js +10 -0
- package/www/react-native/results/authenticity/AuthenticityElement.js +10 -0
- package/www/react-native/results/authenticity/AuthenticityResult.js +7 -0
- package/www/react-native/results/barcode/BarcodeField.js +10 -0
- package/www/react-native/results/barcode/BarcodeResult.js +6 -0
- package/www/react-native/results/barcode/PDF417Info.js +8 -0
- package/www/react-native/results/image_quality/ImageQuality.js +9 -0
- package/www/react-native/results/image_quality/ImageQualityGroup.js +9 -0
- package/www/react-native/results/rfid/AccessControlProcedureType.js +9 -0
- package/www/react-native/results/rfid/Application.js +12 -0
- package/www/react-native/results/rfid/Attribute.js +7 -0
- package/www/react-native/results/rfid/Authority.js +8 -0
- package/www/react-native/results/rfid/CardProperties.js +19 -0
- package/www/react-native/results/rfid/CertificateChain.js +18 -0
- package/www/react-native/results/rfid/CertificateData.js +7 -0
- package/www/react-native/results/rfid/DataField.js +7 -0
- package/www/react-native/results/rfid/Extension.js +7 -0
- package/www/react-native/results/rfid/File.js +17 -0
- package/www/react-native/results/rfid/FileData.js +9 -0
- package/www/react-native/results/rfid/RFIDSessionData.js +16 -0
- package/www/react-native/results/rfid/RFIDValidity.js +7 -0
- package/www/react-native/results/rfid/RFIDValue.js +10 -0
- package/www/react-native/results/rfid/SecurityObject.js +10 -0
- package/www/react-native/results/rfid/SecurityObjectCertificates.js +6 -0
- package/www/react-native/results/rfid/SignerInfo.js +17 -0
- package/www/react-native/results/status/OpticalStatus.js +14 -0
- package/www/react-native/results/status/RFIDStatus.js +12 -0
- package/www/react-native/results/status/ResultsStatus.js +12 -0
- package/www/react-native/results/visible_digital_seals/BytesData.js +9 -0
- package/www/react-native/results/visible_digital_seals/VDSNCData.js +14 -0
- package/www/react-native/results/visual_results/Comparison.js +8 -0
- package/www/react-native/results/visual_results/GraphicField.js +14 -0
- package/www/react-native/results/visual_results/GraphicResult.js +6 -0
- package/www/react-native/results/visual_results/RFIDOrigin.js +9 -0
- package/www/react-native/results/visual_results/Rect.js +9 -0
- package/www/react-native/results/visual_results/Symbol.js +8 -0
- package/www/react-native/results/visual_results/TextField.js +17 -0
- package/www/react-native/results/visual_results/TextResult.js +10 -0
- package/www/react-native/results/visual_results/TextSource.js +8 -0
- package/www/react-native/results/visual_results/Validity.js +7 -0
- package/www/react-native/results/visual_results/Value.js +13 -0
- package/www/react-native/rfid/PAAttribute.js +7 -0
- package/www/react-native/rfid/PAResourcesIssuer.js +8 -0
- package/www/react-native/rfid/PKDCertificate.js +8 -0
- package/www/react-native/rfid/RFIDNotification.js +8 -0
- package/www/react-native/rfid/TAChallenge.js +10 -0
- package/www/react-native/rfid/TccParams.js +10 -0
|
@@ -28,6 +28,17 @@ export class OnlineProcessingConfig {
|
|
|
28
28
|
|
|
29
29
|
return result
|
|
30
30
|
}
|
|
31
|
+
|
|
32
|
+
toJson() {
|
|
33
|
+
return {
|
|
34
|
+
"mode": this.mode,
|
|
35
|
+
"url": this.url,
|
|
36
|
+
"imageFormat": this.imageFormat,
|
|
37
|
+
"imageCompressionQuality": this.imageCompressionQuality,
|
|
38
|
+
"processParams": this.processParams?.toJson(),
|
|
39
|
+
"requestHeaders": this.requestHeaders,
|
|
40
|
+
}
|
|
41
|
+
}
|
|
31
42
|
}
|
|
32
43
|
|
|
33
44
|
export const ImageFormat = {
|
|
@@ -78,6 +78,21 @@ export class RecognizeConfig {
|
|
|
78
78
|
|
|
79
79
|
return result
|
|
80
80
|
}
|
|
81
|
+
|
|
82
|
+
toJson() {
|
|
83
|
+
return {
|
|
84
|
+
"scenario": this.scenario,
|
|
85
|
+
"onlineProcessingConfig": this.onlineProcessingConfig?.toJson(),
|
|
86
|
+
"image": this.image,
|
|
87
|
+
"images": this.images,
|
|
88
|
+
"data": this.data,
|
|
89
|
+
"imageInputData": this.imageInputData?.map(e => e.toJson()),
|
|
90
|
+
"dtc": this.dtc,
|
|
91
|
+
"livePortrait": this.livePortrait,
|
|
92
|
+
"extPortrait": this.extPortrait,
|
|
93
|
+
"oneShotIdentification": this.oneShotIdentification,
|
|
94
|
+
}
|
|
95
|
+
}
|
|
81
96
|
}
|
|
82
97
|
|
|
83
98
|
export class ImageInputData {
|
|
@@ -100,4 +115,12 @@ export class ImageInputData {
|
|
|
100
115
|
|
|
101
116
|
return result
|
|
102
117
|
}
|
|
118
|
+
|
|
119
|
+
toJson() {
|
|
120
|
+
return {
|
|
121
|
+
"image": this.image,
|
|
122
|
+
"light": this.light,
|
|
123
|
+
"pageIndex": this.pageIndex,
|
|
124
|
+
}
|
|
125
|
+
}
|
|
103
126
|
}
|
|
@@ -35,4 +35,14 @@ export class ScannerConfig {
|
|
|
35
35
|
|
|
36
36
|
return result
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
toJson() {
|
|
40
|
+
return {
|
|
41
|
+
"scenario": this.scenario,
|
|
42
|
+
"onlineProcessingConfig": this.onlineProcessingConfig?.toJson(),
|
|
43
|
+
"livePortrait": this.livePortrait,
|
|
44
|
+
"extPortrait": this.extPortrait,
|
|
45
|
+
"cameraId": this.cameraId,
|
|
46
|
+
}
|
|
47
|
+
}
|
|
38
48
|
}
|
|
@@ -36,6 +36,24 @@ export class DocReaderScenario {
|
|
|
36
36
|
|
|
37
37
|
return result
|
|
38
38
|
}
|
|
39
|
+
|
|
40
|
+
toJson() {
|
|
41
|
+
return {
|
|
42
|
+
"uvTorch": this.uvTorch,
|
|
43
|
+
"frameOrientation": this.frameOrientation,
|
|
44
|
+
"faceExt": this.faceExt,
|
|
45
|
+
"multiPageOff": this.multiPageOff,
|
|
46
|
+
"seriesProcessMode": this.seriesProcessMode,
|
|
47
|
+
"frameKWHLandscape": this.frameKWHLandscape,
|
|
48
|
+
"frameKWHPortrait": this.frameKWHPortrait,
|
|
49
|
+
"frameKWHDoublePageSpreadPortrait": this.frameKWHDoublePageSpreadPortrait,
|
|
50
|
+
"frameKWHDoublePageSpreadLandscape": this.frameKWHDoublePageSpreadLandscape,
|
|
51
|
+
"name": this.name,
|
|
52
|
+
"caption": this.caption,
|
|
53
|
+
"description": this.description,
|
|
54
|
+
"manualCrop": this.manualCrop,
|
|
55
|
+
}
|
|
56
|
+
}
|
|
39
57
|
}
|
|
40
58
|
|
|
41
59
|
export const Scenario = {
|
|
@@ -24,4 +24,16 @@ export class DocumentsDatabase {
|
|
|
24
24
|
|
|
25
25
|
return result
|
|
26
26
|
}
|
|
27
|
+
|
|
28
|
+
toJson() {
|
|
29
|
+
return {
|
|
30
|
+
"databaseID": this.databaseID,
|
|
31
|
+
"version": this.version,
|
|
32
|
+
"date": this.date,
|
|
33
|
+
"databaseDescription": this.databaseDescription,
|
|
34
|
+
"countriesNumber": this.countriesNumber,
|
|
35
|
+
"documentsNumber": this.documentsNumber,
|
|
36
|
+
"size": this.size,
|
|
37
|
+
}
|
|
38
|
+
}
|
|
27
39
|
}
|
|
@@ -235,6 +235,43 @@ export class Functionality {
|
|
|
235
235
|
return result;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
+
toJson() {
|
|
239
|
+
return {
|
|
240
|
+
"pictureOnBoundsReady": this.pictureOnBoundsReady,
|
|
241
|
+
"showTorchButton": this.showTorchButton,
|
|
242
|
+
"showCloseButton": this.showCloseButton,
|
|
243
|
+
"videoCaptureMotionControl": this.videoCaptureMotionControl,
|
|
244
|
+
"showCaptureButton": this.showCaptureButton,
|
|
245
|
+
"showChangeFrameButton": this.showChangeFrameButton,
|
|
246
|
+
"showSkipNextPageButton": this.showSkipNextPageButton,
|
|
247
|
+
"useAuthenticator": this.useAuthenticator,
|
|
248
|
+
"skipFocusingFrames": this.skipFocusingFrames,
|
|
249
|
+
"showCameraSwitchButton": this.showCameraSwitchButton,
|
|
250
|
+
"displayMetadata": this.displayMetadata,
|
|
251
|
+
"isZoomEnabled": this.isZoomEnabled,
|
|
252
|
+
"isCameraTorchCheckDisabled": this.isCameraTorchCheckDisabled,
|
|
253
|
+
"recordScanningProcess": this.recordScanningProcess,
|
|
254
|
+
"manualMultipageMode": this.manualMultipageMode,
|
|
255
|
+
"singleResult": this.singleResult,
|
|
256
|
+
"torchTurnedOn": this.torchTurnedOn,
|
|
257
|
+
"showCaptureButtonDelayFromDetect": this.showCaptureButtonDelayFromDetect,
|
|
258
|
+
"showCaptureButtonDelayFromStart": this.showCaptureButtonDelayFromStart,
|
|
259
|
+
"rfidTimeout": this.rfidTimeout,
|
|
260
|
+
"forcePagesCount": this.forcePagesCount,
|
|
261
|
+
"orientation": this.orientation,
|
|
262
|
+
"captureMode": this.captureMode,
|
|
263
|
+
"cameraMode": this.cameraMode,
|
|
264
|
+
"cameraPositionIOS": this.cameraPositionIOS,
|
|
265
|
+
"cameraFrame": this.cameraFrame,
|
|
266
|
+
"btDeviceName": this.btDeviceName,
|
|
267
|
+
"zoomFactor": this.zoomFactor,
|
|
268
|
+
"exposure": this.exposure,
|
|
269
|
+
"excludedCamera2Models": this.excludedCamera2Models,
|
|
270
|
+
"cameraSize": this.cameraResolutionAndroid?.toJson(),
|
|
271
|
+
"videoSessionPreset": this.cameraResolutionIOS,
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
238
275
|
_apply() { this._set(this); }
|
|
239
276
|
_set(json) {
|
|
240
277
|
if (this === DocumentReader.instance.functionality)
|
|
@@ -300,4 +337,11 @@ export class CameraSize {
|
|
|
300
337
|
if (jsonObject == null) return null;
|
|
301
338
|
return new CameraSize(jsonObject["width"], jsonObject["height"]);
|
|
302
339
|
}
|
|
340
|
+
|
|
341
|
+
toJson() {
|
|
342
|
+
return {
|
|
343
|
+
"width": this.width,
|
|
344
|
+
"height": this.height,
|
|
345
|
+
}
|
|
346
|
+
}
|
|
303
347
|
}
|
|
@@ -513,6 +513,82 @@ export class Customization {
|
|
|
513
513
|
return result;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
+
toJson() {
|
|
517
|
+
return {
|
|
518
|
+
"showStatusMessages": this.showStatusMessages,
|
|
519
|
+
"showResultStatusMessages": this.showResultStatusMessages,
|
|
520
|
+
"showHelpAnimation": this.showHelpAnimation,
|
|
521
|
+
"showNextPageAnimation": this.showNextPageAnimation,
|
|
522
|
+
"showBackgroundMask": this.showBackgroundMask,
|
|
523
|
+
"cameraFrameBorderWidth": this.cameraFrameBorderWidth,
|
|
524
|
+
"cameraFrameLineLength": this.cameraFrameLineLength,
|
|
525
|
+
"cameraFrameShapeType": this.cameraFrameShapeType,
|
|
526
|
+
"cameraFrameOffsetWidth": this.cameraFrameOffsetWidth,
|
|
527
|
+
"status": this.status,
|
|
528
|
+
"resultStatus": this.resultStatus,
|
|
529
|
+
"multipageButtonText": this.multipageButtonText,
|
|
530
|
+
"cameraFrameDefaultColor": this.cameraFrameDefaultColor,
|
|
531
|
+
"cameraFrameActiveColor": this.cameraFrameActiveColor,
|
|
532
|
+
"statusTextColor": this.statusTextColor,
|
|
533
|
+
"resultStatusTextColor": this.resultStatusTextColor,
|
|
534
|
+
"resultStatusBackgroundColor": this.resultStatusBackgroundColor,
|
|
535
|
+
"multipageButtonBackgroundColor": this.multipageButtonBackgroundColor,
|
|
536
|
+
"tintColor": this.tintColor,
|
|
537
|
+
"activityIndicatorColor": this.activityIndicatorColor,
|
|
538
|
+
"statusBackgroundColor": this.statusBackgroundColor,
|
|
539
|
+
"cameraPreviewBackgroundColor": this.cameraPreviewBackgroundColor,
|
|
540
|
+
"backgroundMaskColor": this.backgroundMaskColor,
|
|
541
|
+
"multipageButtonTextColor": this.multipageButtonTextColor,
|
|
542
|
+
"statusPositionMultiplier": this.statusPositionMultiplier,
|
|
543
|
+
"resultStatusPositionMultiplier": this.resultStatusPositionMultiplier,
|
|
544
|
+
"toolbarSize": this.toolbarSize,
|
|
545
|
+
"backgroundMaskAlpha": this.backgroundMaskAlpha,
|
|
546
|
+
"customStatusPositionMultiplier": this.customStatusPositionMultiplier,
|
|
547
|
+
"cameraFrameVerticalPositionMultiplier": this.cameraFrameVerticalPositionMultiplier,
|
|
548
|
+
"cameraFrameLandscapeAspectRatio": this.cameraFrameLandscapeAspectRatio,
|
|
549
|
+
"cameraFramePortraitAspectRatio": this.cameraFramePortraitAspectRatio,
|
|
550
|
+
"cameraFrameCornerRadius": this.cameraFrameCornerRadius,
|
|
551
|
+
"livenessAnimationPositionMultiplier": this.livenessAnimationPositionMultiplier,
|
|
552
|
+
"nextPageAnimationStartDelay": this.nextPageAnimationStartDelay,
|
|
553
|
+
"nextPageAnimationEndDelay": this.nextPageAnimationEndDelay,
|
|
554
|
+
"activityIndicatorPortraitPositionMultiplier": this.activityIndicatorPortraitPositionMultiplier,
|
|
555
|
+
"activityIndicatorLandscapePositionMultiplier": this.activityIndicatorLandscapePositionMultiplier,
|
|
556
|
+
"cameraPreviewVerticalPositionMultiplier": this.cameraPreviewVerticalPositionMultiplier,
|
|
557
|
+
"multipageAnimationFrontImage": this.multipageAnimationFrontImage,
|
|
558
|
+
"multipageAnimationBackImage": this.multipageAnimationBackImage,
|
|
559
|
+
"borderBackgroundImage": this.borderBackgroundImage,
|
|
560
|
+
"helpAnimationImage": this.helpAnimationImage,
|
|
561
|
+
"closeButtonImage": this.closeButtonImage,
|
|
562
|
+
"captureButtonImage": this.captureButtonImage,
|
|
563
|
+
"cameraSwitchButtonImage": this.cameraSwitchButtonImage,
|
|
564
|
+
"torchButtonOnImage": this.torchButtonOnImage,
|
|
565
|
+
"torchButtonOffImage": this.torchButtonOffImage,
|
|
566
|
+
"changeFrameButtonExpandImage": this.changeFrameButtonExpandImage,
|
|
567
|
+
"changeFrameButtonCollapseImage": this.changeFrameButtonCollapseImage,
|
|
568
|
+
"livenessAnimationImage": this.livenessAnimationImage,
|
|
569
|
+
"multipageButtonImage": this.multipageButtonImage,
|
|
570
|
+
"customLabelStatus": this.customLabelStatus,
|
|
571
|
+
"cameraFrameLineCap": this.cameraFrameLineCap,
|
|
572
|
+
"uiCustomizationLayer": this.uiCustomizationLayer,
|
|
573
|
+
"statusTextFont": this.statusTextFont?.toJson(),
|
|
574
|
+
"resultStatusTextFont": this.resultStatusTextFont?.toJson(),
|
|
575
|
+
"multipageButtonTextFont": this.multipageButtonTextFont?.toJson(),
|
|
576
|
+
"helpAnimationImageContentMode": this.helpAnimationImageTransformsIOS,
|
|
577
|
+
"multipageAnimationFrontImageContentMode": this.multipageAnimationFrontImageTransformsIOS,
|
|
578
|
+
"multipageAnimationBackImageContentMode": this.multipageAnimationBackImageTransformsIOS,
|
|
579
|
+
"livenessAnimationImageContentMode": this.livenessAnimationImageTransformsIOS,
|
|
580
|
+
"borderBackgroundImageContentMode": this.borderBackgroundImageTransformsIOS,
|
|
581
|
+
"helpAnimationImageMatrix": this.helpAnimationImageTransformsAndroid,
|
|
582
|
+
"multipageAnimationFrontImageMatrix": this.multipageAnimationFrontImageTransformsAndroid,
|
|
583
|
+
"multipageAnimationBackImageMatrix": this.multipageAnimationBackImageTransformsAndroid,
|
|
584
|
+
"livenessAnimationImageMatrix": this.livenessAnimationImageTransformsAndroid,
|
|
585
|
+
"borderBackgroundImageMatrix": this.borderBackgroundImageTransformsAndroid,
|
|
586
|
+
"colors": this.colors?.toJson(),
|
|
587
|
+
"fonts": this.fonts?.toJson(),
|
|
588
|
+
"images": this.images?.toJson(),
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
516
592
|
_apply() { this._set(this); }
|
|
517
593
|
_set(json) {
|
|
518
594
|
if (this === DocumentReader.instance.customization)
|
|
@@ -71,4 +71,17 @@ export class CustomizationColors {
|
|
|
71
71
|
var parent = DocumentReader.instance.customization;
|
|
72
72
|
if (this === parent.colors) parent._set(parentJson);
|
|
73
73
|
}
|
|
74
|
+
|
|
75
|
+
toJson() {
|
|
76
|
+
return {
|
|
77
|
+
"rfidProcessingScreenBackground": this.rfidProcessingScreenBackground,
|
|
78
|
+
"rfidProcessingScreenHintLabelText": this.rfidProcessingScreenHintLabelText,
|
|
79
|
+
"rfidProcessingScreenHintLabelBackground": this.rfidProcessingScreenHintLabelBackground,
|
|
80
|
+
"rfidProcessingScreenProgressLabelText": this.rfidProcessingScreenProgressLabelText,
|
|
81
|
+
"rfidProcessingScreenProgressBar": this.rfidProcessingScreenProgressBar,
|
|
82
|
+
"rfidProcessingScreenProgressBarBackground": this.rfidProcessingScreenProgressBarBackground,
|
|
83
|
+
"rfidProcessingScreenResultLabelText": this.rfidProcessingScreenResultLabelText,
|
|
84
|
+
"rfidProcessingScreenLoadingBar": this.rfidProcessingScreenLoadingBar,
|
|
85
|
+
}
|
|
86
|
+
}
|
|
74
87
|
}
|
|
@@ -37,4 +37,12 @@ export class CustomizationFonts {
|
|
|
37
37
|
var parent = DocumentReader.instance.customization;
|
|
38
38
|
if (this === parent.fonts) parent._set(parentJson);
|
|
39
39
|
}
|
|
40
|
+
|
|
41
|
+
toJson() {
|
|
42
|
+
return {
|
|
43
|
+
"rfidProcessingScreenHintLabel": this.rfidProcessingScreenHintLabel?.toJson(),
|
|
44
|
+
"rfidProcessingScreenProgressLabel": this.rfidProcessingScreenProgressLabel?.toJson(),
|
|
45
|
+
"rfidProcessingScreenResultLabel": this.rfidProcessingScreenResultLabel?.toJson(),
|
|
46
|
+
}
|
|
47
|
+
}
|
|
40
48
|
}
|
|
@@ -22,4 +22,10 @@ export class CustomizationImages {
|
|
|
22
22
|
var parent = DocumentReader.instance.customization;
|
|
23
23
|
if (this === parent.images) parent._set(parentJson);
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
toJson() {
|
|
27
|
+
return {
|
|
28
|
+
"rfidProcessingScreenFailureImage": this.rfidProcessingScreenFailureImage,
|
|
29
|
+
}
|
|
30
|
+
}
|
|
25
31
|
}
|
|
@@ -126,4 +126,25 @@ export class AuthenticityParams {
|
|
|
126
126
|
const parent = DocumentReader.instance.processParams;
|
|
127
127
|
if (this === parent.authenticityParams) parent._set(parentJson);
|
|
128
128
|
}
|
|
129
|
+
|
|
130
|
+
toJson() {
|
|
131
|
+
return {
|
|
132
|
+
"useLivenessCheck": this.useLivenessCheck,
|
|
133
|
+
"livenessParams": this.livenessParams?.toJson(),
|
|
134
|
+
"checkUVLuminiscence": this.checkUVLuminiscence,
|
|
135
|
+
"checkIRB900": this.checkIRB900,
|
|
136
|
+
"checkImagePatterns": this.checkImagePatterns,
|
|
137
|
+
"checkFibers": this.checkFibers,
|
|
138
|
+
"checkExtMRZ": this.checkExtMRZ,
|
|
139
|
+
"checkExtOCR": this.checkExtOCR,
|
|
140
|
+
"checkAxial": this.checkAxial,
|
|
141
|
+
"checkBarcodeFormat": this.checkBarcodeFormat,
|
|
142
|
+
"checkIRVisibility": this.checkIRVisibility,
|
|
143
|
+
"checkIPI": this.checkIPI,
|
|
144
|
+
"checkPhotoEmbedding": this.checkPhotoEmbedding,
|
|
145
|
+
"checkPhotoComparison": this.checkPhotoComparison,
|
|
146
|
+
"checkLetterScreen": this.checkLetterScreen,
|
|
147
|
+
"checkSecurityText": this.checkSecurityText,
|
|
148
|
+
}
|
|
149
|
+
}
|
|
129
150
|
}
|
|
@@ -22,4 +22,13 @@ export class BackendProcessingConfig {
|
|
|
22
22
|
|
|
23
23
|
return result;
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
toJson() {
|
|
27
|
+
return {
|
|
28
|
+
"url": this.url,
|
|
29
|
+
"rfidServerSideChipVerification": this.rfidServerSideChipVerification,
|
|
30
|
+
"httpHeaders": this.httpHeaders,
|
|
31
|
+
"timeoutConnection": this.timeoutConnection,
|
|
32
|
+
}
|
|
33
|
+
}
|
|
25
34
|
}
|
|
@@ -35,4 +35,17 @@ export class FaceApiParams {
|
|
|
35
35
|
proxyType: jsonObject["proxyType"]
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
toJson() {
|
|
40
|
+
return {
|
|
41
|
+
"url": this.url,
|
|
42
|
+
"mode": this.mode,
|
|
43
|
+
"threshold": this.threshold,
|
|
44
|
+
"searchParams": this.searchParams?.toJson(),
|
|
45
|
+
"serviceTimeout": this.serviceTimeout,
|
|
46
|
+
"proxy": this.proxy,
|
|
47
|
+
"proxyPassword": this.proxyPassword,
|
|
48
|
+
"proxyType": this.proxyType,
|
|
49
|
+
}
|
|
50
|
+
}
|
|
38
51
|
}
|
|
@@ -94,4 +94,20 @@ export class ImageQA {
|
|
|
94
94
|
var parent = DocumentReader.instance.processParams;
|
|
95
95
|
if (this === parent.imageQA) parent._set(parentJson);
|
|
96
96
|
}
|
|
97
|
+
|
|
98
|
+
toJson() {
|
|
99
|
+
return {
|
|
100
|
+
"dpiThreshold": this.dpiThreshold,
|
|
101
|
+
"angleThreshold": this.angleThreshold,
|
|
102
|
+
"documentPositionIndent": this.documentPositionIndent,
|
|
103
|
+
"focusCheck": this.focusCheck,
|
|
104
|
+
"glaresCheck": this.glaresCheck,
|
|
105
|
+
"colornessCheck": this.colornessCheck,
|
|
106
|
+
"screenCapture": this.screenCapture,
|
|
107
|
+
"expectedPass": this.expectedPass,
|
|
108
|
+
"glaresCheckParams": this.glaresCheckParams?.toJson(),
|
|
109
|
+
"brightnessThreshold": this.brightnessThreshold,
|
|
110
|
+
"occlusionCheck": this.occlusionCheck,
|
|
111
|
+
}
|
|
112
|
+
}
|
|
97
113
|
}
|
|
@@ -64,4 +64,16 @@ export class LivenessParams {
|
|
|
64
64
|
var parent = DocumentReader.instance.processParams.authenticityParams;
|
|
65
65
|
if (this === parent.livenessParams) parent._set(parentJson);
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
toJson() {
|
|
69
|
+
return {
|
|
70
|
+
"checkOVI": this.checkOVI,
|
|
71
|
+
"checkMLI": this.checkMLI,
|
|
72
|
+
"checkHolo": this.checkHolo,
|
|
73
|
+
"checkED": this.checkED,
|
|
74
|
+
"checkBlackAndWhiteCopy": this.checkBlackAndWhiteCopy,
|
|
75
|
+
"checkDynaprint": this.checkDynaprint,
|
|
76
|
+
"checkGeometry": this.checkGeometry,
|
|
77
|
+
}
|
|
78
|
+
}
|
|
67
79
|
}
|
|
@@ -459,8 +459,8 @@ export class ProcessParams {
|
|
|
459
459
|
|
|
460
460
|
static fromJson(jsonObject) {
|
|
461
461
|
if (jsonObject == null) return new ProcessParams();
|
|
462
|
-
|
|
463
462
|
const result = new ProcessParams();
|
|
463
|
+
|
|
464
464
|
result._multipageProcessing = jsonObject["multipageProcessing"];
|
|
465
465
|
result._logs = jsonObject["logs"];
|
|
466
466
|
result._debugSaveImages = jsonObject["debugSaveImages"];
|
|
@@ -537,10 +537,90 @@ export class ProcessParams {
|
|
|
537
537
|
result._backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"]);
|
|
538
538
|
result._authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"]);
|
|
539
539
|
result._customParams = jsonObject["customParams"];
|
|
540
|
-
|
|
540
|
+
|
|
541
541
|
return result;
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
+
toJson() {
|
|
545
|
+
return {
|
|
546
|
+
"multipageProcessing": this.multipageProcessing,
|
|
547
|
+
"debugSaveImages": this.debugSaveImages,
|
|
548
|
+
"debugSaveLogs": this.debugSaveLogs,
|
|
549
|
+
"returnUncroppedImage": this.returnUncroppedImage,
|
|
550
|
+
"uvTorchEnabled": this.uvTorchEnabled,
|
|
551
|
+
"debugSaveCroppedImages": this.debugSaveCroppedImages,
|
|
552
|
+
"disableFocusingCheck": this.disableFocusingCheck,
|
|
553
|
+
"debugSaveRFIDSession": this.debugSaveRFIDSession,
|
|
554
|
+
"doublePageSpread": this.doublePageSpread,
|
|
555
|
+
"manualCrop": this.manualCrop,
|
|
556
|
+
"integralImage": this.integralImage,
|
|
557
|
+
"returnCroppedBarcode": this.returnCroppedBarcode,
|
|
558
|
+
"checkRequiredTextFields": this.checkRequiredTextFields,
|
|
559
|
+
"depersonalizeLog": this.depersonalizeLog,
|
|
560
|
+
"generateDoublePageSpreadImage": this.generateDoublePageSpreadImage,
|
|
561
|
+
"alreadyCropped": this.alreadyCropped,
|
|
562
|
+
"matchTextFieldMask": this.matchTextFieldMask,
|
|
563
|
+
"updateOCRValidityByGlare": this.updateOCRValidityByGlare,
|
|
564
|
+
"noGraphics": this.noGraphics,
|
|
565
|
+
"multiDocOnImage": this.multiDocOnImage,
|
|
566
|
+
"forceReadMrzBeforeLocate": this.forceReadMrzBeforeLocate,
|
|
567
|
+
"parseBarcodes": this.parseBarcodes,
|
|
568
|
+
"shouldReturnPackageForReprocess": this.shouldReturnPackageForReprocess,
|
|
569
|
+
"disablePerforationOCR": this.disablePerforationOCR,
|
|
570
|
+
"respectImageQuality": this.respectImageQuality,
|
|
571
|
+
"strictImageQuality": this.strictImageQuality,
|
|
572
|
+
"splitNames": this.splitNames,
|
|
573
|
+
"useFaceApi": this.useFaceApi,
|
|
574
|
+
"useAuthenticityCheck": this.useAuthenticityCheck,
|
|
575
|
+
"checkHologram": this.checkHologram,
|
|
576
|
+
"generateNumericCodes": this.generateNumericCodes,
|
|
577
|
+
"strictBarcodeDigitalSignatureCheck": this.strictBarcodeDigitalSignatureCheck,
|
|
578
|
+
"selectLongestNames": this.selectLongestNames,
|
|
579
|
+
"generateDTCVC": this.generateDTCVC,
|
|
580
|
+
"strictDLCategoryExpiry": this.strictDLCategoryExpiry,
|
|
581
|
+
"generateAlpha2Codes": this.generateAlpha2Codes,
|
|
582
|
+
"disableAuthResolutionFilter": this.disableAuthResolutionFilter,
|
|
583
|
+
"measureSystem": this.measureSystem,
|
|
584
|
+
"barcodeParserType": this.barcodeParserType,
|
|
585
|
+
"perspectiveAngle": this.perspectiveAngle,
|
|
586
|
+
"minDPI": this.minDPI,
|
|
587
|
+
"imageDpiOutMax": this.imageDpiOutMax,
|
|
588
|
+
"forceDocID": this.forceDocID,
|
|
589
|
+
"pdfPagesLimit": this.pdfPagesLimit,
|
|
590
|
+
"forceDocFormat": this.forceDocFormat,
|
|
591
|
+
"shiftExpiryDate": this.shiftExpiryDate,
|
|
592
|
+
"minimalHolderAge": this.minimalHolderAge,
|
|
593
|
+
"imageOutputMaxHeight": this.imageOutputMaxHeight,
|
|
594
|
+
"imageOutputMaxWidth": this.imageOutputMaxWidth,
|
|
595
|
+
"processAuth": this.processAuth,
|
|
596
|
+
"convertCase": this.convertCase,
|
|
597
|
+
"logLevel": this.logLevel,
|
|
598
|
+
"mrzDetectMode": this.mrzDetectMode,
|
|
599
|
+
"dateFormat": this.dateFormat,
|
|
600
|
+
"scenario": this.scenario,
|
|
601
|
+
"captureButtonScenario": this.captureButtonScenario,
|
|
602
|
+
"timeout": this.timeout,
|
|
603
|
+
"timeoutFromFirstDetect": this.timeoutFromFirstDetect,
|
|
604
|
+
"timeoutFromFirstDocType": this.timeoutFromFirstDocType,
|
|
605
|
+
"documentAreaMin": this.documentAreaMin,
|
|
606
|
+
"timeoutLiveness": this.timeoutLiveness,
|
|
607
|
+
"documentIDList": this.documentIDList,
|
|
608
|
+
"barcodeTypes": this.barcodeTypes,
|
|
609
|
+
"fieldTypesFilter": this.fieldTypesFilter,
|
|
610
|
+
"resultTypeOutput": this.resultTypeOutput,
|
|
611
|
+
"mrzFormatsFilter": this.mrzFormatsFilter,
|
|
612
|
+
"documentGroupFilter": this.documentGroupFilter,
|
|
613
|
+
"lcidIgnoreFilter": this.lcidIgnoreFilter,
|
|
614
|
+
"lcidFilter": this.lcidFilter,
|
|
615
|
+
"imageQA": this.imageQA?.toJson(),
|
|
616
|
+
"rfidParams": this.rfidParams?.toJson(),
|
|
617
|
+
"faceApiParams": this.faceApiParams?.toJson(),
|
|
618
|
+
"backendProcessingConfig": this.backendProcessingConfig?.toJson(),
|
|
619
|
+
"authenticityParams": this.authenticityParams?.toJson(),
|
|
620
|
+
"customParams": this.customParams,
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
|
|
544
624
|
_apply() { this._set(this); }
|
|
545
625
|
_set(json) {
|
|
546
626
|
if (this === DocumentReader.instance.processParams)
|
|
@@ -50,4 +50,14 @@ export class DTCDataGroup {
|
|
|
50
50
|
var rfidScenario = DocumentReader.instance.rfidScenario;
|
|
51
51
|
if (this === rfidScenario.dtcDataGroups) rfidScenario._set(rfidScenarioJson);
|
|
52
52
|
}
|
|
53
|
+
|
|
54
|
+
toJson() {
|
|
55
|
+
return {
|
|
56
|
+
"DG17": this.dg17,
|
|
57
|
+
"DG18": this.dg18,
|
|
58
|
+
"DG22": this.dg22,
|
|
59
|
+
"DG23": this.dg23,
|
|
60
|
+
"DG24": this.dg24,
|
|
61
|
+
}
|
|
62
|
+
}
|
|
53
63
|
}
|
|
@@ -113,4 +113,23 @@ export class EDLDataGroups {
|
|
|
113
113
|
var rfidScenario = DocumentReader.instance.rfidScenario;
|
|
114
114
|
if (this === rfidScenario.eDLDataGroups) rfidScenario._set(rfidScenarioJson);
|
|
115
115
|
}
|
|
116
|
+
|
|
117
|
+
toJson() {
|
|
118
|
+
return {
|
|
119
|
+
"DG1": this.dg1,
|
|
120
|
+
"DG2": this.dg2,
|
|
121
|
+
"DG3": this.dg3,
|
|
122
|
+
"DG4": this.dg4,
|
|
123
|
+
"DG5": this.dg5,
|
|
124
|
+
"DG6": this.dg6,
|
|
125
|
+
"DG7": this.dg7,
|
|
126
|
+
"DG8": this.dg8,
|
|
127
|
+
"DG9": this.dg9,
|
|
128
|
+
"DG10": this.dg10,
|
|
129
|
+
"DG11": this.dg11,
|
|
130
|
+
"DG12": this.dg12,
|
|
131
|
+
"DG13": this.dg13,
|
|
132
|
+
"DG14": this.dg14,
|
|
133
|
+
}
|
|
134
|
+
}
|
|
116
135
|
}
|