diff --git a/Examples/AnylineExamples.Droid/AnylineExamples.Droid.csproj b/Examples/AnylineExamples.Droid/AnylineExamples.Droid.csproj index 70937f29b..1079c8423 100644 --- a/Examples/AnylineExamples.Droid/AnylineExamples.Droid.csproj +++ b/Examples/AnylineExamples.Droid/AnylineExamples.Droid.csproj @@ -92,6 +92,7 @@ + diff --git a/Examples/AnylineExamples.Droid/Assets/iban_view_config.json b/Examples/AnylineExamples.Droid/Assets/iban_view_config.json new file mode 100644 index 000000000..8236336ee --- /dev/null +++ b/Examples/AnylineExamples.Droid/Assets/iban_view_config.json @@ -0,0 +1,47 @@ +{ + "camera": { + "captureResolution": "1080", + "zoomGesture": true + }, + "flash": { + "mode": "manual", + "alignment": "bottom_right" + }, + "viewPlugin": { + "plugin": { + "id": "OCR_IBAN", + "ocrPlugin": { + "scanMode": "LINE", + "charWhitelist": "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", + "validationRegex": "^[A-Z]{2}([0-9A-Z]\\s*){13,32}$" + } + }, + "cutoutConfig": { + "style": "rect", + "maxWidthPercent": "80%", + "maxHeightPercent": "80%", + "alignment": "top_half", + "width": 900, + "ratioFromSize": { + "width": 10, + "height": 1 + }, + "strokeWidth": 2, + "cornerRadius": 10, + "strokeColor": "FFFFFF", + "outerColor": "000000", + "outerAlpha": 0.3, + "feedbackStrokeColor": "0099FF" + }, + "cancelOnResult": true, + "scanFeedback": { + "animationDuration": 200, + "style": "contour_underline", + "strokeColor": "0099FF", + "strokeWidth": 2, + "beepOnResult": true, + "vibrateOnResult": true, + "blinkAnimationOnResult": true + } + } +} \ No newline at end of file diff --git a/Examples/AnylineExamples.Shared/ExampleList.cs b/Examples/AnylineExamples.Shared/ExampleList.cs index 0ec6e63aa..270033ec2 100644 --- a/Examples/AnylineExamples.Shared/ExampleList.cs +++ b/Examples/AnylineExamples.Shared/ExampleList.cs @@ -51,6 +51,7 @@ public static class Example public static readonly string Document = "Document"; //public static readonly string DocumentUI = "Document (Extended UI)"; public static readonly string VoucherCode = "Voucher Code"; + public static readonly string IBAN = "IBAN"; public static readonly string CowTag = "Cattle Tag"; public static readonly string SerialScanning = "Serial Scanning (LPT > DL > VIN)"; public static readonly string ParallelScanning = "Parallel Scanning (Meter / Barcode)"; @@ -87,6 +88,7 @@ public static class ExampleList new ExampleModel(ItemType.Header, Category.Others, Category.Others, ""), new ExampleModel(ItemType.Item, Example.Barcode, Category.Others, "others_config_barcode.json"), new ExampleModel(ItemType.Item, Example.VoucherCode, Category.Others, "others_config_voucher_code.json"), + new ExampleModel(ItemType.Item, Example.IBAN, Category.Others, "iban_view_config.json"), new ExampleModel(ItemType.Item, Example.CowTag, Category.Others, "others_config_cow_tag.json"), new ExampleModel(ItemType.Header, Category.Workflows, Category.Workflows, ""), diff --git a/Examples/AnylineExamples.iOS/AnylineExamples.iOS.csproj b/Examples/AnylineExamples.iOS/AnylineExamples.iOS.csproj index aa1e6ea9f..7edfc367c 100644 --- a/Examples/AnylineExamples.iOS/AnylineExamples.iOS.csproj +++ b/Examples/AnylineExamples.iOS/AnylineExamples.iOS.csproj @@ -110,6 +110,7 @@ + diff --git a/Examples/AnylineExamples.iOS/Resources/iban_view_config.json b/Examples/AnylineExamples.iOS/Resources/iban_view_config.json new file mode 100644 index 000000000..8236336ee --- /dev/null +++ b/Examples/AnylineExamples.iOS/Resources/iban_view_config.json @@ -0,0 +1,47 @@ +{ + "camera": { + "captureResolution": "1080", + "zoomGesture": true + }, + "flash": { + "mode": "manual", + "alignment": "bottom_right" + }, + "viewPlugin": { + "plugin": { + "id": "OCR_IBAN", + "ocrPlugin": { + "scanMode": "LINE", + "charWhitelist": "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", + "validationRegex": "^[A-Z]{2}([0-9A-Z]\\s*){13,32}$" + } + }, + "cutoutConfig": { + "style": "rect", + "maxWidthPercent": "80%", + "maxHeightPercent": "80%", + "alignment": "top_half", + "width": 900, + "ratioFromSize": { + "width": 10, + "height": 1 + }, + "strokeWidth": 2, + "cornerRadius": 10, + "strokeColor": "FFFFFF", + "outerColor": "000000", + "outerAlpha": 0.3, + "feedbackStrokeColor": "0099FF" + }, + "cancelOnResult": true, + "scanFeedback": { + "animationDuration": 200, + "style": "contour_underline", + "strokeColor": "0099FF", + "strokeWidth": 2, + "beepOnResult": true, + "vibrateOnResult": true, + "blinkAnimationOnResult": true + } + } +} \ No newline at end of file