From 19306c869ee967bd6a82d3fac7c747d5b69919a1 Mon Sep 17 00:00:00 2001 From: Ricardo Colombo Oliveira Date: Thu, 12 Oct 2023 12:50:09 +0200 Subject: [PATCH] Update to Anyline .NET SDK v5.0.0 - Anyline Android SDK: v51.1.0 - Anyline iOS SDK: v51.1.0 --- MAUI/Anyline.Examples.MAUI.csproj | 7 +- MAUI/Models/AnylineScanModes.cs | 1 - .../AnylineScanningViewRenderer.cs | 1 - .../Handlers/AnylineHandler.Android.cs | 14 +- MAUI/Platforms/Android/NFC/NFCScanActivity.cs | 4 +- .../AnylineScanningViewRenderer.cs | 6 + .../iOS/NFC/NFCScanningViewRenderer.cs | 10 +- .../Configs/energy_analog_digital_config.json | 48 +++---- .../Raw/Configs/energy_dial_config.json | 9 +- .../Raw/Configs/id_config_arabic.json | 120 +++++------------- .../Raw/Configs/id_config_cyrillic.json | 116 +++++------------ MAUI/Resources/Raw/Configs/id_config_jlp.json | 25 +--- MAUI/Resources/Raw/Configs/id_config_mrz.json | 64 ++++++---- .../Raw/Configs/id_config_universal.json | 117 ++--------------- ..._shipping_container_horizontal_config.json | 53 +++----- ...ro_shipping_container_vertical_config.json | 42 ++---- .../Raw/Configs/mro_usnr_config.json | 47 +++---- .../Raw/Configs/others_config_barcode.json | 59 ++++----- .../others_config_barcode_pdf417_config.json | 60 --------- .../tire_commercial_tire_id_config.json | 43 ++++--- .../Raw/Configs/tire_make_config.json | 9 +- .../Raw/Configs/tire_size_config.json | 42 +++--- .../Raw/Configs/tire_tin_dot_config.json | 11 +- .../Configs/tire_tin_universal_config.json | 47 +++---- .../vehicle_config_license_plate_africa.json | 34 ++--- .../vehicle_config_license_plate_eu.json | 38 ++---- .../vehicle_config_license_plate_us.json | 8 +- ...hicle_registration_certificate_config.json | 107 +++++----------- .../Raw/Configs/vehicle_vin_config.json | 25 ++-- MAUI/ResultsPage.xaml.cs | 2 - 30 files changed, 387 insertions(+), 782 deletions(-) delete mode 100644 MAUI/Resources/Raw/Configs/others_config_barcode_pdf417_config.json diff --git a/MAUI/Anyline.Examples.MAUI.csproj b/MAUI/Anyline.Examples.MAUI.csproj index 7d174f2..8471e41 100644 --- a/MAUI/Anyline.Examples.MAUI.csproj +++ b/MAUI/Anyline.Examples.MAUI.csproj @@ -18,7 +18,7 @@ 9C37433F-9192-4C96-B49A-B9A7E047FBC2 - 4.0.0 + 5.0.0 1 12.0 @@ -78,8 +78,8 @@ - - + + @@ -111,7 +111,6 @@ - diff --git a/MAUI/Models/AnylineScanModes.cs b/MAUI/Models/AnylineScanModes.cs index 91a0457..70a5b51 100644 --- a/MAUI/Models/AnylineScanModes.cs +++ b/MAUI/Models/AnylineScanModes.cs @@ -43,7 +43,6 @@ public static List GetAnylineScanModesGroupedList() }), new AnylineScanModeGroup("Barcode", new List{ new AnylineScanMode("Barcode", "others_config_barcode.json"), - new AnylineScanMode("Barcode - PDF417 - AAMVA", "others_config_barcode_pdf417_config.json"), }), new AnylineScanModeGroup("Composite", new List{ new AnylineScanMode("Serial Scanning (LPT - EU > DVL > VIN)","workflows_config_serial_scanning.json"), diff --git a/MAUI/Platforms/Android/CustomRenderers/AnylineScanningViewRenderer.cs b/MAUI/Platforms/Android/CustomRenderers/AnylineScanningViewRenderer.cs index 84bbe6c..068fb0a 100644 --- a/MAUI/Platforms/Android/CustomRenderers/AnylineScanningViewRenderer.cs +++ b/MAUI/Platforms/Android/CustomRenderers/AnylineScanningViewRenderer.cs @@ -7,7 +7,6 @@ using Android.Widget; using Anyline.Examples.MAUI.Views; using IO.Anyline.Camera; -using IO.Anyline.View; using IO.Anyline2; using IO.Anyline2.View; using Java.Util; diff --git a/MAUI/Platforms/Android/Handlers/AnylineHandler.Android.cs b/MAUI/Platforms/Android/Handlers/AnylineHandler.Android.cs index 7045954..d69a614 100644 --- a/MAUI/Platforms/Android/Handlers/AnylineHandler.Android.cs +++ b/MAUI/Platforms/Android/Handlers/AnylineHandler.Android.cs @@ -2,8 +2,7 @@ using Android.Util; using Anyline.Examples.MAUI.Platforms.Android; using IO.Anyline.Camera; -using IO.Anyline.Plugin.ID; -using IO.Anyline.View; +using IO.Anyline2.View; using Microsoft.Maui.Handlers; namespace Anyline.Examples.MAUI.Handlers @@ -35,16 +34,13 @@ protected override Android.Views.View CreatePlatformView() _scanView.Init("Configs/usnr_config.json"); - // Activates Face Detection if the MRZ Scanner was initialized - (((_scanView.ScanViewPlugin as IdScanViewPlugin)?.ScanPlugin as IdScanPlugin)?.IdConfig as MrzConfig)?.EnableFaceDetection(true); - //_scanView.ScanViewPlugin.AddScanResultListener(new MyScanResultListener()); // handle camera open events - _scanView.CameraOpened += _scanView_CameraOpened; + _scanView.CameraView.CameraOpened += _scanView_CameraOpened; // handle camera error events - _scanView.CameraError += _scanView_CameraError; + _scanView.CameraView.CameraError += _scanView_CameraError; } catch (Exception e) { @@ -81,8 +77,8 @@ protected override void DisconnectHandler(Android.Views.View platformView) _scanView.Stop(); _scanView.CameraView.ReleaseCamera(); _scanView.Dispose(); - _scanView.CameraOpened -= _scanView_CameraOpened; - _scanView.CameraError -= _scanView_CameraError; + _scanView.CameraView.CameraOpened -= _scanView_CameraOpened; + _scanView.CameraView.CameraError -= _scanView_CameraError; _scanView = null; } diff --git a/MAUI/Platforms/Android/NFC/NFCScanActivity.cs b/MAUI/Platforms/Android/NFC/NFCScanActivity.cs index 5b495d3..9bd9da9 100644 --- a/MAUI/Platforms/Android/NFC/NFCScanActivity.cs +++ b/MAUI/Platforms/Android/NFC/NFCScanActivity.cs @@ -19,7 +19,7 @@ namespace Anyline.Examples.MAUI.Platforms.Android.NFC { [Activity(Label = "NFCScanActivity")] - public class NFCScanActivity : Activity, NfcDetector.INfcDetectionHandler + public class NFCScanActivity : Activity, INfcDetectionHandler { protected NfcAdapter mNfcAdapter; @@ -74,7 +74,7 @@ protected override void OnResume() mNfcAdapter.EnableForegroundDispatch( this, - PendingIntent.GetActivity(this, 0, intent, 0), + PendingIntent.GetActivity(this, 0, intent, PendingIntentFlags.Mutable), new[] { new IntentFilter(NfcAdapter.ActionTechDiscovered) }, new string[][] { new string[] { diff --git a/MAUI/Platforms/iOS/CustomRenderers/AnylineScanningViewRenderer.cs b/MAUI/Platforms/iOS/CustomRenderers/AnylineScanningViewRenderer.cs index c50cff7..6a3a0df 100644 --- a/MAUI/Platforms/iOS/CustomRenderers/AnylineScanningViewRenderer.cs +++ b/MAUI/Platforms/iOS/CustomRenderers/AnylineScanningViewRenderer.cs @@ -80,6 +80,12 @@ public override void SubviewAdded(UIView uiview) private void StartAnylineScanner() { NSError error = null; + + if(_scanView == null){ + System.Diagnostics.Debug.WriteLine("ScanView is null and could not be started"); + return; + } + var success = _scanView.ScanViewPlugin.StartWithError(out error); if (!success) { diff --git a/MAUI/Platforms/iOS/NFC/NFCScanningViewRenderer.cs b/MAUI/Platforms/iOS/NFC/NFCScanningViewRenderer.cs index 3a92d1f..140e1f6 100644 --- a/MAUI/Platforms/iOS/NFC/NFCScanningViewRenderer.cs +++ b/MAUI/Platforms/iOS/NFC/NFCScanningViewRenderer.cs @@ -1,10 +1,5 @@ -using System; -using Anyline.Examples.MAUI.NFC; -using Anyline.Examples.MAUI.Platforms.iOS; -using Anyline.Examples.MAUI.Platforms.iOS.NFC; +using Anyline.Examples.MAUI.NFC; using Microsoft.Maui.Controls.Handlers.Compatibility; -using Microsoft.Maui.Controls.Platform; -using CoreGraphics; using Foundation; using UIKit; using Anyline.SDK.NET.iOS; @@ -13,9 +8,6 @@ namespace Anyline.Examples.MAUI.Platforms.iOS.NFC { public class NFCScanningViewRenderer : ViewRenderer, IALScanPluginDelegate, IALNFCDetectorDelegate { - private CGRect frame; - private bool initialized; - private ALScanView _scanView; ALNFCDetector _nfcDetector; diff --git a/MAUI/Resources/Raw/Configs/energy_analog_digital_config.json b/MAUI/Resources/Raw/Configs/energy_analog_digital_config.json index 1660cab..85d8bd8 100644 --- a/MAUI/Resources/Raw/Configs/energy_analog_digital_config.json +++ b/MAUI/Resources/Raw/Configs/energy_analog_digital_config.json @@ -1,50 +1,50 @@ { "cameraConfig": { - "captureResolution": "1080p", - "pictureResolution": "1080p" + "captureResolution": "720p", + "pictureResolution": "720p" }, "flashConfig": { - "mode": "manual_off", - "alignment": "top_left" + "mode": "manual", + "alignment": "top_right" }, "viewPluginConfig": { "pluginConfig": { - "id": "com.anyline.configs.plugin.auto-meter", + "id": "Meter|Analog/Digital Auto", "meterConfig": { "scanMode": "auto_analog_digital_meter" }, "cancelOnResult": true }, "cutoutConfig": { - "style": "rect", - "maxWidthPercent": "100%", - "width": 768, - "alignment": "top_half", + "alignment": "top", + "strokeWidth": 2, + "strokeColor": "FFFFFF", + "cornerRadius": 4, + "outerColor": "000000", + "outerAlpha": 0.5, + "feedbackStrokeColor": "0099FF", + "maxWidthPercent": "85%", + "maxHeightPercent": "85%", "ratioFromSize": { - "width": 9, - "height": 4 + "width": 2, + "height": 1 }, "offset": { "x": 0, - "y": 80 - }, - "strokeWidth": 2, - "cornerRadius": 4, - "strokeColor": "0099FF", - "outerColor": "000000", - "outerAlpha": 0.3 + "y": 120 + } }, "scanFeedbackConfig": { - "style": "contour_rect", - "strokeWidth": 2, + "style": "CONTOUR_RECT", "strokeColor": "0099FF", + "strokeWidth": 2, "fillColor": "220099FF", "cornerRadius": 2, - "beepOnResult": true, - "vibrateOnResult": true, - "blinkAnimationOnResult": true, "redrawTimeout": 200, - "animationDuration": 75 + "animationDuration": 75, + "blinkAnimationOnResult": true, + "beepOnResult": true, + "vibrateOnResult": true } } } \ No newline at end of file diff --git a/MAUI/Resources/Raw/Configs/energy_dial_config.json b/MAUI/Resources/Raw/Configs/energy_dial_config.json index 32ce9bc..4947ddd 100644 --- a/MAUI/Resources/Raw/Configs/energy_dial_config.json +++ b/MAUI/Resources/Raw/Configs/energy_dial_config.json @@ -4,7 +4,7 @@ }, "flashConfig": { "mode": "auto", - "alignment": "bottom_right" + "alignment": "top_right" }, "viewPluginConfig": { "pluginConfig": { @@ -15,7 +15,6 @@ "cancelOnResult": true }, "cutoutConfig": { - "style": "contour_rect", "alignment": "top", "strokeWidth": 2, "strokeColor": "FFFFFF", @@ -23,10 +22,10 @@ "outerColor": "000000", "outerAlpha": 0.5, "feedbackStrokeColor": "0099FF", - "maxWidthPercent": "90%", - "maxHeightPercent": "90%", + "maxWidthPercent": "85%", + "maxHeightPercent": "85%", "ratioFromSize": { - "width": 2.25, + "width": 2, "height": 1 }, "offset": { diff --git a/MAUI/Resources/Raw/Configs/id_config_arabic.json b/MAUI/Resources/Raw/Configs/id_config_arabic.json index f21a3f7..e572b96 100644 --- a/MAUI/Resources/Raw/Configs/id_config_arabic.json +++ b/MAUI/Resources/Raw/Configs/id_config_arabic.json @@ -1,125 +1,69 @@ { "cameraConfig": { - "captureResolution": "1080p" + "captureResolution": "1080p", + "zoomGesture": true }, "flashConfig": { "mode": "manual", - "alignment": "bottom_left", - "offset": { - "x": 0, - "y": -40 - } + "alignment": "top_right" }, "viewPluginConfig": { "pluginConfig": { - "id": "com.anyline.configs.plugin.id_mrz_dl_arabic", + "id": "ID|Arabic IDs", + "cancelOnResult": true, "universalIdConfig": { + "faceDetectionEnabled": true, "allowedLayouts": { "mrz": [], - "drivingLicense": [], - "idFront": [] + "idFront": [], + "drivingLicense": [] }, "alphabet": "arabic", "drivingLicense": { - "surname": { - "scanOption": 0, - "minConfidence": 40 - }, - "givenNames": { - "scanOption": 0, - "minConfidence": 40 - }, - "dateOfBirth": { - "scanOption": 0, - "minConfidence": 50 - }, - "placeOfBirth": { - "scanOption": 1, - "minConfidence": 50 - }, - "dateOfIssue": { - "scanOption": 0, - "minConfidence": 50 - }, - "dateOfExpiry": { - "scanOption": 1, - "minConfidence": 50 - }, - "authority": { - "scanOption": 1, - "minConfidence": 30 - }, - "documentNumber": { - "scanOption": 0, - "minConfidence": 40 - }, - "categories": { - "scanOption": 1, - "minConfidence": 30 - }, - "address": { - "scanOption": 1 - } + "surname": { "scanOption": "mandatory", "minConfidence": 40 }, + "givenNames": { "scanOption": "mandatory", "minConfidence": 40 }, + "dateOfBirth": { "scanOption": "mandatory", "minConfidence": 50 }, + "placeOfBirth": { "scanOption": "optional", "minConfidence": 50 }, + "dateOfIssue": { "scanOption": "mandatory", "minConfidence": 50 }, + "dateOfExpiry": { "scanOption": "optional", "minConfidence": 50 }, + "authority": { "scanOption": "optional", "minConfidence": 30 }, + "documentNumber": { "scanOption": "mandatory", "minConfidence": 40 }, + "categories": { "scanOption": "optional", "minConfidence": 30 }, + "address": { "scanOption": "optional" } }, "idFront": { - "surname": { - "scanOption": 0, - "minConfidence": 60 - }, - "givenNames": { - "scanOption": 0, - "minConfidence": 60 - }, - "dateOfBirth": { - "scanOption": 0, - "minConfidence": 60 - }, - "placeOfBirth": { - "scanOption": 1, - "minConfidence": 60 - }, - "dateOfExpiry": { - "scanOption": 1, - "minConfidence": 60 - }, - "cardAccessNumber": { - "scanOption": 1, - "minConfidence": 60 - }, - "documentNumber": { - "scanOption": 0, - "minConfidence": 60 - }, - "nationality": { - "scanOption": 1, - "minConfidence": 60 - } + "surname": { "scanOption": "mandatory", "minConfidence": 60 }, + "givenNames": { "scanOption": "mandatory", "minConfidence": 60 }, + "dateOfBirth": { "scanOption": "mandatory", "minConfidence": 60 }, + "placeOfBirth": { "scanOption": "optional", "minConfidence": 60 }, + "dateOfExpiry": { "scanOption": "optional", "minConfidence": 60 }, + "cardAccessNumber": { "scanOption": "optional", "minConfidence": 60 }, + "documentNumber": { "scanOption": "mandatory", "minConfidence": 60 }, + "nationality": { "scanOption": "optional", "minConfidence": 60 } } - }, - "cancelOnResult": true + } }, "cutoutConfig": { - "style": "animated_rect", "maxWidthPercent": "90%", "maxHeightPercent": "90%", "alignment": "center", "strokeWidth": 2, - "cornerRadius": 4, + "cornerRadius": 8, + "strokeColor": "FFFFFF", + "outerColor": "000000", "outerAlpha": 0.3, "ratioFromSize": { "width": 50, "height": 31 }, "cropPadding": { - "x": 25, - "y": 25 + "x": -50, + "y": -50 }, "cropOffset": { "x": 0, "y": 0 }, - "strokeColor": "0099FF", - "outerColor": "000000", "feedbackStrokeColor": "0099FF" }, "scanFeedbackConfig": { diff --git a/MAUI/Resources/Raw/Configs/id_config_cyrillic.json b/MAUI/Resources/Raw/Configs/id_config_cyrillic.json index c255af8..0283612 100644 --- a/MAUI/Resources/Raw/Configs/id_config_cyrillic.json +++ b/MAUI/Resources/Raw/Configs/id_config_cyrillic.json @@ -1,19 +1,18 @@ { "cameraConfig": { - "captureResolution": "1080p" + "captureResolution": "1080p", + "zoomGesture": true }, "flashConfig": { "mode": "manual", - "alignment": "bottom_left", - "offset": { - "x": 0, - "y": -40 - } + "alignment": "top_right" }, "viewPluginConfig": { "pluginConfig": { - "id": "com.anyline.configs.plugin.id_mrz_dl_cyrillic", + "id": "ID|Cyrillic IDs", + "cancelOnResult": true, "universalIdConfig": { + "faceDetectionEnabled": true, "allowedLayouts": { "mrz": [], "drivingLicense": [], @@ -21,105 +20,50 @@ }, "alphabet": "cyrillic", "drivingLicense": { - "surname": { - "scanOption": 0, - "minConfidence": 40 - }, - "givenNames": { - "scanOption": 0, - "minConfidence": 40 - }, - "dateOfBirth": { - "scanOption": 0, - "minConfidence": 50 - }, - "placeOfBirth": { - "scanOption": 1, - "minConfidence": 50 - }, - "dateOfIssue": { - "scanOption": 0, - "minConfidence": 50 - }, - "dateOfExpiry": { - "scanOption": 1, - "minConfidence": 50 - }, - "authority": { - "scanOption": 1, - "minConfidence": 30 - }, - "documentNumber": { - "scanOption": 0, - "minConfidence": 40 - }, - "categories": { - "scanOption": 1, - "minConfidence": 30 - }, - "address": { - "scanOption": 1 - } + "surname": { "scanOption": "mandatory", "minConfidence": 40 }, + "givenNames": { "scanOption": "mandatory", "minConfidence": 40 }, + "dateOfBirth": { "scanOption": "mandatory", "minConfidence": 50 }, + "placeOfBirth": { "scanOption": "optional", "minConfidence": 50 }, + "dateOfIssue": { "scanOption": "mandatory", "minConfidence": 50 }, + "dateOfExpiry": { "scanOption": "optional", "minConfidence": 50 }, + "authority": { "scanOption": "optional", "minConfidence": 30 }, + "documentNumber": { "scanOption": "mandatory", "minConfidence": 40 }, + "categories": { "scanOption": "optional", "minConfidence": 30 }, + "address": { "scanOption": "optional" } }, "idFront": { - "surname": { - "scanOption": 0, - "minConfidence": 60 - }, - "givenNames": { - "scanOption": 0, - "minConfidence": 60 - }, - "dateOfBirth": { - "scanOption": 0, - "minConfidence": 60 - }, - "placeOfBirth": { - "scanOption": 1, - "minConfidence": 60 - }, - "dateOfExpiry": { - "scanOption": 1, - "minConfidence": 60 - }, - "cardAccessNumber": { - "scanOption": 1, - "minConfidence": 60 - }, - "documentNumber": { - "scanOption": 0, - "minConfidence": 60 - }, - "nationality": { - "scanOption": 1, - "minConfidence": 60 - } + "surname": { "scanOption": "mandatory", "minConfidence": 60 }, + "givenNames": { "scanOption": "mandatory", "minConfidence": 60 }, + "dateOfBirth": { "scanOption": "mandatory", "minConfidence": 60 }, + "placeOfBirth": { "scanOption": "optional", "minConfidence": 60 }, + "dateOfExpiry": { "scanOption": "optional", "minConfidence": 60 }, + "cardAccessNumber": { "scanOption": "optional", "minConfidence": 60 }, + "documentNumber": { "scanOption": "mandatory", "minConfidence": 60 }, + "nationality": { "scanOption": "optional", "minConfidence": 60 } } - }, - "cancelOnResult": true + } }, "cutoutConfig": { - "style": "animated_rect", "maxWidthPercent": "90%", "maxHeightPercent": "90%", "alignment": "center", "strokeWidth": 2, - "cornerRadius": 4, + "cornerRadius": 8, + "strokeColor": "FFFFFF", + "outerColor": "000000", "outerAlpha": 0.3, "ratioFromSize": { "width": 50, "height": 31 }, "cropPadding": { - "x": 25, - "y": 25 + "x": -50, + "y": -50 }, "cropOffset": { "x": 0, "y": 0 }, - "strokeColor": "0099FF", - "outerColor": "000000", "feedbackStrokeColor": "0099FF" }, "scanFeedbackConfig": { diff --git a/MAUI/Resources/Raw/Configs/id_config_jlp.json b/MAUI/Resources/Raw/Configs/id_config_jlp.json index 50676a1..50f716d 100644 --- a/MAUI/Resources/Raw/Configs/id_config_jlp.json +++ b/MAUI/Resources/Raw/Configs/id_config_jlp.json @@ -13,26 +13,11 @@ "cancelOnResult": true, "japaneseLandingPermissionConfig": { "miscellaneous": { - "dateOfIssue": { - "scanOption": 0, - "minConfidence": 35 - }, - "dateOfExpiry": { - "scanOption": 0, - "minConfidence": 35 - }, - "status": { - "scanOption": 1, - "minConfidence": 35 - }, - "duration": { - "scanOption": 0, - "minConfidence": 35 - }, - "airport": { - "scanOption": 1, - "minConfidence": 35 - } + "dateOfIssue": { "scanOption": "mandatory", "minConfidence": 35 }, + "dateOfExpiry": { "scanOption": "mandatory", "minConfidence": 35 }, + "status": { "scanOption": "optional", "minConfidence": 35 }, + "duration": { "scanOption": "mandatory", "minConfidence": 35 }, + "airport": { "scanOption": "optional", "minConfidence": 35 } } } }, diff --git a/MAUI/Resources/Raw/Configs/id_config_mrz.json b/MAUI/Resources/Raw/Configs/id_config_mrz.json index afa8fcc..17d6899 100644 --- a/MAUI/Resources/Raw/Configs/id_config_mrz.json +++ b/MAUI/Resources/Raw/Configs/id_config_mrz.json @@ -1,46 +1,56 @@ { + "cameraConfig": { + "captureResolution": "1080p" + }, + "flashConfig": { + "mode": "manual", + "alignment": "top_right" + }, "viewPluginConfig": { "pluginConfig": { - "id": "com.anyline.configs.plugin.mrz", + "id": "ID|MRZ & Passports", + "cancelOnResult": true, "mrzConfig": { - "strictMode": false, - "cropAndTransformID": false - }, - "cancelOnResult": true + "faceDetectionEnabled": true, + "mrzFieldScanOptions": { + "vizAddress": "optional", + "vizDateOfIssue": "optional" + }, + "cropAndTransformID": false, + "strictMode": false + } }, "cutoutConfig": { - "animation": "none", - "maxWidthPercent": "85%", - "maxHeightPercent": "70%", - "width": 0, - "alignment": "top_half", - "ratioFromSize": { - "width": 86, - "height": 54 + "maxWidthPercent": "90%", + "maxHeightPercent": "90%", + "alignment": "center", + "strokeWidth": 2, + "cornerRadius": 4, + "strokeColor": "FFFFFF", + "outerColor": "000000", + "outerAlpha": 0.3, + "cropPadding": { + "x": -30, + "y": -90 }, - "offset": { + "cropOffset": { "x": 0, - "y": 25 + "y": 90 }, - "cropPadding": { - "x": 25, - "y": 25 + "ratioFromSize": { + "width": 50, + "height": 31 }, - "outerColor": "000000", - "outerAlpha": 0.3, - "strokeWidth": 2, - "strokeColor": "0099FF", - "cornerRadius": 2, "feedbackStrokeColor": "0099FF" }, "scanFeedbackConfig": { "style": "rect", - "strokeWidth": 2, + "visualFeedbackRedrawTimeout": 100, "strokeColor": "0099FF", "fillColor": "220099FF", - "beepOnResult": false, - "vibrateOnResult": false, - "blinkAnimationOnResult": false + "beepOnResult": true, + "vibrateOnResult": true, + "strokeWidth": 2 } } } \ No newline at end of file diff --git a/MAUI/Resources/Raw/Configs/id_config_universal.json b/MAUI/Resources/Raw/Configs/id_config_universal.json index 1650293..6dd8263 100644 --- a/MAUI/Resources/Raw/Configs/id_config_universal.json +++ b/MAUI/Resources/Raw/Configs/id_config_universal.json @@ -1,140 +1,51 @@ { "cameraConfig": { "captureResolution": "1080p", - "pictureResolution": "1080p" + "zoomGesture": true }, "flashConfig": { "mode": "manual", - "alignment": "top_left", - "offset": { - "x": 0, - "y": 0 - } + "alignment": "top_right" }, "viewPluginConfig": { "pluginConfig": { - "id": "com.anyline.configs.plugin.id", + "id": "ID|Universal IDs", + "cancelOnResult": true, "universalIdConfig": { + "faceDetectionEnabled": true, "allowedLayouts": { "mrz": [], - "insuranceCard": [], "drivingLicense": [], - "idFront": [] - }, - "alphabet": "latin", - "insuranceCard": { - "lastName": { - "scanOption": 0, - "minConfidence": 50 - }, - "firstName": { - "scanOption": 0, - "minConfidence": 50 - }, - "dateOfBirth": { - "scanOption": 0, - "minConfidence": 50 - }, - "personalNumber": { - "scanOption": 0, - "minConfidence": 50 - }, - "authority": { - "scanOption": 0, - "minConfidence": 50 - }, - "documentNumber": { - "scanOption": 0, - "minConfidence": 50 - }, - "dateOfExpiry": { - "scanOption": 0, - "minConfidence": 50 - }, - "nationality": { - "scanOption": 0, - "minConfidence": 50 - } - }, - "idFront": { - "lastName": { - "scanOption": 0, - "minConfidence": 60 - }, - "firstName": { - "scanOption": 0, - "minConfidence": 60 - }, - "fullName": { - "scanOption": 0, - "minConfidence": 60 - }, - "dateOfBirth": { - "scanOption": 0, - "minConfidence": 60 - }, - "placeOfBirth": { - "scanOption": 1, - "minConfidence": 60 - }, - "dateOfIssue": { - "scanOption": 0, - "minConfidence": 60 - }, - "dateOfExpiry": { - "scanOption": 1, - "minConfidence": 60 - }, - "cardAccessNumber": { - "scanOption": 1, - "minConfidence": 60 - }, - "documentNumber": { - "scanOption": 0, - "minConfidence": 60 - }, - "nationality": { - "scanOption": 1, - "minConfidence": 60 - }, - "sex": { - "scanOption": 1, - "minConfidence": 60 - }, - "personalNumber": { - "scanOption": 1, - "minConfidence": 60 - } + "idFront": [], + "insuranceCard": [] } - }, - "cancelOnResult": true + } }, "cutoutConfig": { - "style": "animated_rect", "maxWidthPercent": "90%", "maxHeightPercent": "90%", "alignment": "center", "strokeWidth": 2, - "cornerRadius": 4, + "cornerRadius": 8, + "strokeColor": "FFFFFF", + "outerColor": "000000", "outerAlpha": 0.3, "ratioFromSize": { "width": 50, "height": 31 }, "cropPadding": { - "x": 25, - "y": 25 + "x": -50, + "y": -50 }, "cropOffset": { "x": 0, "y": 0 }, - "strokeColor": "0099FF", - "outerColor": "000000", "feedbackStrokeColor": "0099FF" }, "scanFeedbackConfig": { - "style": "CONTOUR_RECT", + "style": "contour_rect", "visualFeedbackRedrawTimeout": 100, "strokeColor": "0099FF", "fillColor": "220099FF", diff --git a/MAUI/Resources/Raw/Configs/mro_shipping_container_horizontal_config.json b/MAUI/Resources/Raw/Configs/mro_shipping_container_horizontal_config.json index 1ee118d..7c876a9 100644 --- a/MAUI/Resources/Raw/Configs/mro_shipping_container_horizontal_config.json +++ b/MAUI/Resources/Raw/Configs/mro_shipping_container_horizontal_config.json @@ -1,8 +1,6 @@ { "cameraConfig": { - "captureResolution": "1080p", - "pictureResolution": "1080p", - "zoomGesture": true + "captureResolution": "1080p" }, "flashConfig": { "mode": "manual", @@ -10,51 +8,38 @@ }, "viewPluginConfig": { "pluginConfig": { - "id": "com.anyline.configs.plugin.horizontal-container", + "id": "Container|Horizontal Shipping Containers", + "cancelOnResult": true, "containerConfig": { "scanMode": "HORIZONTAL" - }, - "cancelOnResult": true + } }, "cutoutConfig": { - "style": "rect", - "animation": "none", - "maxWidthPercent": "70%", + "maxWidthPercent": "80%", + "maxHeightPercent": "80%", "alignment": "top_half", "ratioFromSize": { - "width": 62, - "height": 9 - }, - "offset": { - "x": 0, - "y": 0 + "width": 720, + "height": 144 }, - "cropOffset": { - "x": 0, - "y": 0 - }, - "cropPadding": { - "x": 0, - "y": 0 - }, - "cornerRadius": 4, - "strokeColor": "0099ff", "strokeWidth": 2, + "strokeColor": "FFFFFF", + "cornerRadius": 4, "outerColor": "000000", + "outerAlpha": 0.5, "feedbackStrokeColor": "0099FF", - "outerAlpha": 0.3 + "offset": { + "x": 0, + "y": -15 + } }, "scanFeedbackConfig": { - "style": "contour_rect", - "animation": "traverse_multi", - "animationDuration": 250, - "strokeWidth": 2, - "cornerRadius": 2, + "style": "CONTOUR_RECT", "strokeColor": "0099FF", - "fillColor": "330099FF", + "fillColor": "220099FF", + "blinkAnimationOnResult": true, "beepOnResult": true, - "vibrateOnResult": true, - "blinkAnimationOnResult": true + "vibrateOnResult": true } } } \ No newline at end of file diff --git a/MAUI/Resources/Raw/Configs/mro_shipping_container_vertical_config.json b/MAUI/Resources/Raw/Configs/mro_shipping_container_vertical_config.json index 46bde31..bce9a88 100644 --- a/MAUI/Resources/Raw/Configs/mro_shipping_container_vertical_config.json +++ b/MAUI/Resources/Raw/Configs/mro_shipping_container_vertical_config.json @@ -1,8 +1,6 @@ { "cameraConfig": { - "captureResolution": "1080p", - "pictureResolution": "1080p", - "zoomGesture": true + "captureResolution": "1080p" }, "flashConfig": { "mode": "manual", @@ -10,51 +8,37 @@ }, "viewPluginConfig": { "pluginConfig": { - "id": "com.anyline.configs.plugin.vertical-container", + "id": "Container|Vertical Shipping Containers", "containerConfig": { "scanMode": "VERTICAL" }, "cancelOnResult": true }, "cutoutConfig": { - "style": "rect", - "animation": "none", "maxWidthPercent": "10%", "alignment": "center", "ratioFromSize": { "width": 9, "height": 62 }, - "offset": { - "x": 0, - "y": 0 - }, - "cropOffset": { - "x": 0, - "y": 0 - }, - "cropPadding": { - "x": 0, - "y": 0 - }, - "cornerRadius": 4, - "strokeColor": "0099ff", "strokeWidth": 2, + "strokeColor": "FFFFFF", + "cornerRadius": 4, "outerColor": "000000", + "outerAlpha": 0.5, "feedbackStrokeColor": "0099FF", - "outerAlpha": 0.3 + "offset": { + "x": 0, + "y": -15 + } }, "scanFeedbackConfig": { - "style": "contour_rect", - "animation": "traverse_multi", - "animationDuration": 250, - "strokeWidth": 2, - "cornerRadius": 2, + "style": "CONTOUR_RECT", "strokeColor": "0099FF", - "fillColor": "330099FF", + "fillColor": "220099FF", + "blinkAnimationOnResult": true, "beepOnResult": true, - "vibrateOnResult": true, - "blinkAnimationOnResult": true + "vibrateOnResult": true } } } \ No newline at end of file diff --git a/MAUI/Resources/Raw/Configs/mro_usnr_config.json b/MAUI/Resources/Raw/Configs/mro_usnr_config.json index 1c96789..84a3adf 100644 --- a/MAUI/Resources/Raw/Configs/mro_usnr_config.json +++ b/MAUI/Resources/Raw/Configs/mro_usnr_config.json @@ -1,8 +1,6 @@ { "cameraConfig": { - "captureResolution": "1080p", - "pictureResolution": "1080p", - "zoomGesture": true + "captureResolution": "720" }, "flashConfig": { "mode": "manual", @@ -10,48 +8,37 @@ }, "viewPluginConfig": { "pluginConfig": { - "id": "com.anyline.configs.plugin.universal-serial-number", - "ocrConfig": { - "scanMode": "auto" - }, + "id": "Universal Serial Numbers", + "ocrConfig": {}, + "startScanDelay": 1000, "cancelOnResult": true }, "cutoutConfig": { - "animation": "none", - "maxWidthPercent": "80%", "alignment": "top_half", + "maxWidthPercent": "80%", + "maxHeightPercent": "80%", "ratioFromSize": { - "width": 5, + "width": 2, "height": 1 }, - "offset": { - "x": 0, - "y": 0 - }, - "cropOffset": { - "x": 0, - "y": 0 - }, - "cropPadding": { - "x": 0, - "y": 0 - }, - "cornerRadius": 4, - "strokeColor": "0099ff", "strokeWidth": 2, + "strokeColor": "FFFFFF", + "cornerRadius": 4, "outerColor": "000000", + "outerAlpha": 0.5, "feedbackStrokeColor": "0099FF", - "outerAlpha": 0.3 + "offset": { + "x": 0, + "y": -15 + } }, "scanFeedbackConfig": { - "style": "rect", - "strokeWidth": 2, - "cornerRadius": 2, + "style": "CONTOUR_RECT", "strokeColor": "0099FF", - "fillColor": "330099FF", + "fillColor": "220099FF", "beepOnResult": true, "vibrateOnResult": true, - "blinkAnimationOnResult": false + "blinkAnimationOnResult": true } } } \ No newline at end of file diff --git a/MAUI/Resources/Raw/Configs/others_config_barcode.json b/MAUI/Resources/Raw/Configs/others_config_barcode.json index 514a3ef..f8c9fcf 100644 --- a/MAUI/Resources/Raw/Configs/others_config_barcode.json +++ b/MAUI/Resources/Raw/Configs/others_config_barcode.json @@ -1,52 +1,45 @@ { + "cameraConfig": { + "captureResolution": "1080p" + }, + "flashConfig": { + "mode": "auto", + "alignment": "top_right" + }, "viewPluginConfig": { "pluginConfig": { - "id": "com.anyline.configs.plugin.barcode", + "id": "Barcode|Barcodes", "barcodeConfig": { - "parseAAMVA": false, "barcodeFormats": [ "ALL" - ] + ], + "parseAAMVA": true }, - "cancelOnResult": true, - "startScanDelay": 1000 + "cancelOnResult": true }, "cutoutConfig": { - "animation": "none", - "maxWidthPercent": "70%", - "maxHeightPercent": "70%", + "maxWidthPercent": "80%", + "maxHeightPercent": "80%", "alignment": "center", "ratioFromSize": { - "width": 3, - "height": 2 + "width": 100, + "height": 80 }, - "offset": { - "x": 0, - "y": 0 - }, - "cropOffset": { - "x": 0, - "y": 0 - }, - "cropPadding": { - "x": 0, - "y": 0 - }, - "cornerRadius": 4, - "strokeColor": "0099ff", - "strokeWidth": 2, + "strokeWidth": 1, + "cornerRadius": 3, + "strokeColor": "FFFFFF", "outerColor": "000000", - "feedbackStrokeColor": "0099FF", - "outerAlpha": 0.3 + "outerAlpha": 0.3, + "feedbackStrokeColor": "0099FF" }, "scanFeedbackConfig": { - "style": "RECT", - "strokeWidth": 0, + "style": "rect", "strokeColor": "0099FF", - "fillColor": "330099FF", - "beepOnResult": false, - "vibrateOnResult": false, - "blinkAnimationOnResult": false + "fillColor": "220099FF", + "animationDuration": 150, + "blinkAnimationOnResult": true, + "beepOnResult": true, + "vibrateOnResult": true } } } \ No newline at end of file diff --git a/MAUI/Resources/Raw/Configs/others_config_barcode_pdf417_config.json b/MAUI/Resources/Raw/Configs/others_config_barcode_pdf417_config.json deleted file mode 100644 index 23b1fe1..0000000 --- a/MAUI/Resources/Raw/Configs/others_config_barcode_pdf417_config.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "cameraConfig": { - "captureResolution": "1080p", - "pictureResolution": "1080p" - }, - "flashConfig": { - "mode": "manual_off", - "alignment": "top_left" - }, - "viewPluginConfig": { - "pluginConfig": { - "id": "com.anyline.configs.plugin.barcode-pdf417-aamva", - "barcodeConfig": { - "barcodeFormats": [ - "PDF_417" - ], - "parseAAMVA": true - }, - "cancelOnResult": true - }, - "cutoutConfig": { - "animation": "none", - "maxWidthPercent": "75%", - "maxHeightPercent": "50%", - "width": 0, - "alignment": "center", - "ratioFromSize": { - "width": 4, - "height": 1 - }, - "offset": { - "x": 0, - "y": 0 - }, - "cropOffset": { - "x": 0, - "y": 0 - }, - "cropPadding": { - "x": 0, - "y": 0 - }, - "cornerRadius": 4, - "strokeColor": "0099ff", - "strokeWidth": 2, - "outerColor": "000000", - "feedbackStrokeColor": "0099FF", - "outerAlpha": 0.3 - }, - "scanFeedbackConfig": { - "style": "RECT", - "strokeWidth": 2, - "strokeColor": "000000", - "fillColor": "330099FF", - "beepOnResult": false, - "vibrateOnResult": false, - "blinkAnimationOnResult": false - } - } -} \ No newline at end of file diff --git a/MAUI/Resources/Raw/Configs/tire_commercial_tire_id_config.json b/MAUI/Resources/Raw/Configs/tire_commercial_tire_id_config.json index 89caa23..591bfdc 100644 --- a/MAUI/Resources/Raw/Configs/tire_commercial_tire_id_config.json +++ b/MAUI/Resources/Raw/Configs/tire_commercial_tire_id_config.json @@ -1,7 +1,6 @@ { "cameraConfig": { - "captureResolution": "1080p", - "zoomGesture": true + "captureResolution": "1080" }, "flashConfig": { "mode": "manual", @@ -9,35 +8,41 @@ }, "viewPluginConfig": { "pluginConfig": { - "id": "TIRE", + "id": "Tire|Commercial Tire ID", "cancelOnResult": true, - "commercialTireIdConfig": {} + "commercialTireIdConfig": { + "upsideDownMode": "AUTO", + "minConfidence": 0 + } }, "cutoutConfig": { - "style": "animated_rect", - "maxWidthPercent": "80%", - "maxHeightPercent": "80%", "alignment": "center", + "maxWidthPercent": "60%", + "maxHeightPercent": "60%", + "ratioFromSize": { + "width": 5, + "height": 1 + }, "strokeWidth": 2, + "strokeColor": "FFFFFF", "cornerRadius": 4, - "strokeColor": "0099FF", "outerColor": "000000", - "outerAlpha": 0.3, - "width": 720, - "ratioFromSize": { - "width": 720, - "height": 144 - }, - "feedbackStrokeColor": "0099FF" + "outerAlpha": 0.5, + "feedbackStrokeColor": "0099FF", + "offset": { + "x": 0, + "y": 0 + } }, "scanFeedbackConfig": { "animation": "traverse_multi", "animationDuration": 250, - "style": "rect", + "style": "contour_rect", + "strokeWidth": 2, "strokeColor": "0099FF", - "beepOnResult": true, - "vibrateOnResult": false, - "strokeWidth": 2 + "beepOnResult": false, + "vibrateOnResult": true, + "blinkAnimationOnResult": true } } } \ No newline at end of file diff --git a/MAUI/Resources/Raw/Configs/tire_make_config.json b/MAUI/Resources/Raw/Configs/tire_make_config.json index fab339b..8fd3b70 100644 --- a/MAUI/Resources/Raw/Configs/tire_make_config.json +++ b/MAUI/Resources/Raw/Configs/tire_make_config.json @@ -15,13 +15,12 @@ "cancelOnResult": true }, "cutoutConfig": { - "style": "rect", - "width": 720, "alignment": "center", - "maxWidthPercent": "80%", + "maxWidthPercent": "60%", + "maxHeightPercent": "60%", "ratioFromSize": { - "width": 720, - "height": 144 + "width": 25, + "height": 10 }, "strokeWidth": 2, "strokeColor": "FFFFFF", diff --git a/MAUI/Resources/Raw/Configs/tire_size_config.json b/MAUI/Resources/Raw/Configs/tire_size_config.json index 0cdfddf..377bd07 100644 --- a/MAUI/Resources/Raw/Configs/tire_size_config.json +++ b/MAUI/Resources/Raw/Configs/tire_size_config.json @@ -1,7 +1,6 @@ { "cameraConfig": { - "captureResolution": "1080p", - "zoomGesture": true + "captureResolution": "1080" }, "flashConfig": { "mode": "manual", @@ -9,37 +8,40 @@ }, "viewPluginConfig": { "pluginConfig": { - "id": "TIRE", - "cancelOnResult": true, + "id": "Tire|Tire Size Specifications", "tireSizeConfig": { "upsideDownMode": "AUTO" - } + }, + "cancelOnResult": true }, "cutoutConfig": { - "style": "animated_rect", - "maxWidthPercent": "80%", - "maxHeightPercent": "80%", "alignment": "center", + "maxWidthPercent": "60%", + "maxHeightPercent": "60%", + "ratioFromSize": { + "width": 25, + "height": 10 + }, "strokeWidth": 2, + "strokeColor": "FFFFFF", "cornerRadius": 4, - "strokeColor": "0099FF", "outerColor": "000000", - "outerAlpha": 0.3, - "width": 720, - "ratioFromSize": { - "width": 720, - "height": 144 - }, - "feedbackStrokeColor": "0099FF" + "outerAlpha": 0.5, + "feedbackStrokeColor": "0099FF", + "offset": { + "x": 0, + "y": -15 + } }, "scanFeedbackConfig": { "animation": "traverse_multi", "animationDuration": 250, - "style": "rect", + "style": "contour_rect", + "strokeWidth": 2, "strokeColor": "0099FF", - "beepOnResult": true, - "vibrateOnResult": false, - "strokeWidth": 2 + "beepOnResult": false, + "vibrateOnResult": true, + "blinkAnimationOnResult": true } } } \ No newline at end of file diff --git a/MAUI/Resources/Raw/Configs/tire_tin_dot_config.json b/MAUI/Resources/Raw/Configs/tire_tin_dot_config.json index cb0cb1d..fa6bb11 100644 --- a/MAUI/Resources/Raw/Configs/tire_tin_dot_config.json +++ b/MAUI/Resources/Raw/Configs/tire_tin_dot_config.json @@ -4,7 +4,7 @@ }, "flashConfig": { "mode": "manual", - "alignment": "bottom_left" + "alignment": "top_left" }, "viewPluginConfig": { "pluginConfig": { @@ -16,13 +16,12 @@ "cancelOnResult": true }, "cutoutConfig": { - "style": "rect", - "width": 720, "alignment": "center", - "maxWidthPercent": "80%", + "maxWidthPercent": "60%", + "maxHeightPercent": "60%", "ratioFromSize": { - "width": 720, - "height": 144 + "width": 5, + "height": 1 }, "strokeWidth": 2, "strokeColor": "FFFFFF", diff --git a/MAUI/Resources/Raw/Configs/tire_tin_universal_config.json b/MAUI/Resources/Raw/Configs/tire_tin_universal_config.json index cc0140d..cfdbe45 100644 --- a/MAUI/Resources/Raw/Configs/tire_tin_universal_config.json +++ b/MAUI/Resources/Raw/Configs/tire_tin_universal_config.json @@ -1,7 +1,6 @@ { "cameraConfig": { - "captureResolution": "1080p", - "zoomGesture": true + "captureResolution": "1080" }, "flashConfig": { "mode": "manual", @@ -9,37 +8,41 @@ }, "viewPluginConfig": { "pluginConfig": { - "id": "TIRE", - "cancelOnResult": true, + "id": "Tire|Universal TIN Numbers", "tinConfig": { - "scanMode": "UNIVERSAL" - } + "scanMode": "UNIVERSAL", + "upsideDownMode": "AUTO" + }, + "cancelOnResult": true }, "cutoutConfig": { - "style": "animated_rect", - "maxWidthPercent": "80%", - "maxHeightPercent": "80%", - "alignment": "top_half", + "alignment": "center", + "maxWidthPercent": "60%", + "maxHeightPercent": "60%", + "ratioFromSize": { + "width": 5, + "height": 1 + }, "strokeWidth": 2, + "strokeColor": "FFFFFF", "cornerRadius": 4, - "strokeColor": "0099FF", "outerColor": "000000", - "outerAlpha": 0.3, - "width": 800, - "ratioFromSize": { - "width": 720, - "height": 144 - }, - "feedbackStrokeColor": "0099FF" + "outerAlpha": 0.5, + "feedbackStrokeColor": "0099FF", + "offset": { + "x": 0, + "y": -15 + } }, "scanFeedbackConfig": { "animation": "traverse_multi", "animationDuration": 250, - "style": "rect", + "style": "contour_rect", + "strokeWidth": 2, "strokeColor": "0099FF", - "beepOnResult": true, - "vibrateOnResult": false, - "strokeWidth": 2 + "beepOnResult": false, + "vibrateOnResult": true, + "blinkAnimationOnResult": true } } } \ No newline at end of file diff --git a/MAUI/Resources/Raw/Configs/vehicle_config_license_plate_africa.json b/MAUI/Resources/Raw/Configs/vehicle_config_license_plate_africa.json index 82d2baa..b2d9cc0 100644 --- a/MAUI/Resources/Raw/Configs/vehicle_config_license_plate_africa.json +++ b/MAUI/Resources/Raw/Configs/vehicle_config_license_plate_africa.json @@ -1,55 +1,41 @@ { "cameraConfig": { - "captureResolution": "1080p" + "captureResolution": "720", + "zoomGesture": true }, "flashConfig": { "mode": "manual", - "alignment": "top_left" + "alignment": "top_right" }, "viewPluginConfig": { "pluginConfig": { - "id": "license-plate-af", + "id": "Vehicle|License Plates (Africa)", "licensePlateConfig": { "scanMode": "africa" }, "cancelOnResult": true }, "cutoutConfig": { - "animation": "none", "maxWidthPercent": "80%", "maxHeightPercent": "80%", - "width": 600, "alignment": "top_half", "ratioFromSize": { "width": 2, "height": 1 }, - "offset": { - "x": 0, - "y": 0 - }, - "cropPadding": { - "x": 40, - "y": 40 - }, - "cropOffset": { - "x": 0, - "y": 0 - }, - "cornerRadius": 4, - "strokeColor": "0099ff", "strokeWidth": 2, - "feedbackStrokeColor": "0099ff", + "cornerRadius": 10, + "strokeColor": "FFFFFF", "outerColor": "000000", - "outerAlpha": 0.3 + "outerAlpha": 0.3, + "feedbackStrokeColor": "0099FF" }, "scanFeedbackConfig": { "style": "rect", "strokeWidth": 2, - "animationDuration": 0, - "strokeColor": "0099ff", + "strokeColor": "0099FF", + "fillColor": "330099FF", "cornerRadius": 0, - "fillColor": "330099ff", "beepOnResult": true, "vibrateOnResult": true, "blinkAnimationOnResult": true diff --git a/MAUI/Resources/Raw/Configs/vehicle_config_license_plate_eu.json b/MAUI/Resources/Raw/Configs/vehicle_config_license_plate_eu.json index c644471..7d885fd 100644 --- a/MAUI/Resources/Raw/Configs/vehicle_config_license_plate_eu.json +++ b/MAUI/Resources/Raw/Configs/vehicle_config_license_plate_eu.json @@ -1,57 +1,43 @@ { "cameraConfig": { - "captureResolution": "1080p" + "captureResolution": "720", + "zoomGesture": true }, "flashConfig": { "mode": "manual", - "alignment": "top_left" + "alignment": "top_right" }, "viewPluginConfig": { "pluginConfig": { - "id": "license-plate-eu", + "id": "Vehicle|License Plates (EU)", "licensePlateConfig": { - "scanMode": "auto" }, "cancelOnResult": true }, "cutoutConfig": { - "animation": "none", "maxWidthPercent": "80%", "maxHeightPercent": "80%", "alignment": "top_half", "ratioFromSize": { - "width": 4, + "width": 2, "height": 1 }, - "offset": { - "x": 0, - "y": 40 - }, - "cropPadding": { - "x": 0, - "y": 0 - }, - "cropOffset": { - "x": 0, - "y": 0 - }, - "cornerRadius": 4, - "strokeColor": "0099ff", "strokeWidth": 2, - "feedbackStrokeColor": "0099ff", + "cornerRadius": 10, + "strokeColor": "FFFFFF", "outerColor": "000000", - "outerAlpha": 0.3 + "outerAlpha": 0.3, + "feedbackStrokeColor": "0099FF" }, "scanFeedbackConfig": { "style": "rect", "strokeWidth": 2, - "animationDuration": 0, - "strokeColor": "0099ff", + "strokeColor": "0099FF", + "fillColor": "330099FF", "cornerRadius": 0, - "fillColor": "330099ff", "beepOnResult": true, "vibrateOnResult": true, "blinkAnimationOnResult": true } } -} +} \ No newline at end of file diff --git a/MAUI/Resources/Raw/Configs/vehicle_config_license_plate_us.json b/MAUI/Resources/Raw/Configs/vehicle_config_license_plate_us.json index 225ed27..3147704 100644 --- a/MAUI/Resources/Raw/Configs/vehicle_config_license_plate_us.json +++ b/MAUI/Resources/Raw/Configs/vehicle_config_license_plate_us.json @@ -1,25 +1,23 @@ { "cameraConfig": { - "captureResolution": "1080p", + "captureResolution": "720", "zoomGesture": true }, "flashConfig": { "mode": "manual", - "alignment": "bottom_right" + "alignment": "top_right" }, "viewPluginConfig": { "pluginConfig": { - "id": "license-plate-us", + "id": "Vehicle|License Plates (US)", "licensePlateConfig": { "scanMode": "unitedstates" }, "cancelOnResult": true }, "cutoutConfig": { - "animation": "none", "maxWidthPercent": "80%", "maxHeightPercent": "80%", - "width": 550, "alignment": "top_half", "ratioFromSize": { "width": 2, diff --git a/MAUI/Resources/Raw/Configs/vehicle_registration_certificate_config.json b/MAUI/Resources/Raw/Configs/vehicle_registration_certificate_config.json index c974db3..9bb344c 100644 --- a/MAUI/Resources/Raw/Configs/vehicle_registration_certificate_config.json +++ b/MAUI/Resources/Raw/Configs/vehicle_registration_certificate_config.json @@ -1,101 +1,60 @@ { + "cameraConfig": { + "captureResolution": "1080p" + }, "viewPluginConfig": { "pluginConfig": { "id": "com.anyline.configs.plugin.vrc", "vehicleRegistrationCertificateConfig": { "vehicleRegistrationCertificate": { - "documentNumber": { - "scanOption": 1, - "minConfidence": 40 - }, - "licensePlate": { - "scanOption": 0, - "minConfidence": 40 - }, - "lastName": { - "scanOption": 0, - "minConfidence": 60 - }, - "firstName": { - "scanOption": 1, - "minConfidence": 40 - }, - "address": { - "scanOption": 0, - "minConfidence": 50 - }, - "firstIssued": { - "scanOption": 0, - "minConfidence": 60 - }, - "manufacturerCode": { - "scanOption": 0, - "minConfidence": 50 - }, - "vehicleTypeCode": { - "scanOption": 0, - "minConfidence": 50 - }, - "vehicleIdentificationNumber": { - "scanOption": 0, - "minConfidence": 60 - }, - "brand": { - "scanOption": 1, - "minConfidence": 40 - }, - "vehicleType": { - "scanOption": 1, - "minConfidence": 40 - }, - "displacement": { - "scanOption": 1, - "minConfidence": 40 - }, - "tire": { - "scanOption": 1, - "minConfidence": 50 - } + "documentNumber": { "scanOption": "optional", "minConfidence": 40 }, + "licensePlate": { "scanOption": "mandatory", "minConfidence": 40 }, + "lastName": { "scanOption": "mandatory", "minConfidence": 60 }, + "firstName": { "scanOption": "optional", "minConfidence": 40 }, + "address": { "scanOption": "mandatory", "minConfidence": 50 }, + "firstIssued": { "scanOption": "mandatory", "minConfidence": 60 }, + "manufacturerCode": { "scanOption": "mandatory", "minConfidence": 50 }, + "vehicleTypeCode": { "scanOption": "mandatory", "minConfidence": 50 }, + "vehicleIdentificationNumber": { "scanOption": "mandatory", "minConfidence": 60 }, + "brand": { "scanOption": "optional", "minConfidence": 40 }, + "vehicleType": { "scanOption": "optional", "minConfidence": 40 }, + "displacement": { "scanOption": "optional", "minConfidence": 40 }, + "tire": { "scanOption": "optional", "minConfidence": 50 } } }, "cancelOnResult": true }, "cutoutConfig": { - "animation": "none", "maxWidthPercent": "90%", - "maxHeightPercent": "80%", + "maxHeightPercent": "90%", "alignment": "center", + "strokeWidth": 2, + "cornerRadius": 8, + "strokeColor": "FFFFFF", + "outerColor": "000000", + "outerAlpha": 0.3, "ratioFromSize": { - "width": 90, - "height": 46 + "width": 2, + "height": 1 }, - "offset": { - "x": 0, - "y": 0 + "cropPadding": { + "x": -50, + "y": -50 }, "cropOffset": { "x": 0, "y": 0 }, - "cropPadding": { - "x": 50, - "y": 50 - }, - "cornerRadius": 4, - "strokeColor": "0099FF", - "strokeWidth": 2, - "outerColor": "000000", - "feedbackStrokeColor": "0099FF", - "outerAlpha": 0.3 + "feedbackStrokeColor": "0099FF" }, "scanFeedbackConfig": { - "style": "CONTOUR_RECT", - "strokeWidth": 0, - "strokeColor": "0099ff", - "fillColor": "000099ff", + "style": "contour_rect", + "visualFeedbackRedrawTimeout": 100, + "strokeColor": "0099FF", + "fillColor": "220099FF", "beepOnResult": true, "vibrateOnResult": true, - "blinkAnimationOnResult": false + "strokeWidth": 2 } } } \ No newline at end of file diff --git a/MAUI/Resources/Raw/Configs/vehicle_vin_config.json b/MAUI/Resources/Raw/Configs/vehicle_vin_config.json index 7d3b12f..8ea7bd6 100644 --- a/MAUI/Resources/Raw/Configs/vehicle_vin_config.json +++ b/MAUI/Resources/Raw/Configs/vehicle_vin_config.json @@ -1,7 +1,6 @@ { "cameraConfig": { - "captureResolution": "1080p", - "zoomGesture": true + "captureResolution": "720" }, "flashConfig": { "mode": "manual", @@ -9,24 +8,23 @@ }, "viewPluginConfig": { "pluginConfig": { - "id": "VIN", - "cancelOnResult": true, - "vinConfig": {} + "id": "Vehicle|Vehicle Identification Numbers", + "vinConfig": {}, + "cancelOnResult": true }, "cutoutConfig": { - "style": "animated_rect", + "alignment": "top_half", "maxWidthPercent": "70%", "maxHeightPercent": "70%", - "alignment": "top_half", "ratioFromSize": { - "width": 62, - "height": 9 + "width": 7, + "height": 1 }, + "strokeWidth": 1, + "strokeColor": "FFFFFF", + "cornerRadius": 2, "outerColor": "000000", "outerAlpha": 0.3, - "strokeWidth": 2, - "strokeColor": "0099FF", - "cornerRadius": 4, "feedbackStrokeColor": "0099FF" }, "scanFeedbackConfig": { @@ -35,8 +33,7 @@ "style": "contour_rect", "strokeWidth": 2, "strokeColor": "0099FF", - "fillColor": "220099FF", - "beepOnResult": true, + "beepOnResult": false, "vibrateOnResult": true, "blinkAnimationOnResult": true } diff --git a/MAUI/ResultsPage.xaml.cs b/MAUI/ResultsPage.xaml.cs index b577066..e3eb0a1 100644 --- a/MAUI/ResultsPage.xaml.cs +++ b/MAUI/ResultsPage.xaml.cs @@ -5,8 +5,6 @@ namespace Anyline.Examples.MAUI; public partial class ResultsPage : ContentPage { - private Dictionary _results; - /// /// This page is reponsible for displaying the scan results. /// It is built in a generic way to support any scan mode, but in your use-case, it is recommended to work only with a strongly typed object in the MAUI layer.