Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Includes IBAN example
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardocolombo committed May 5, 2021
1 parent 19d0c8b commit 609e913
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
<AndroidAsset Include="Assets\document_scan_view_config.json" />
<AndroidAsset Include="Assets\workflows_config_parallel_scanning.json" />
<AndroidAsset Include="Assets\id_config_universal.json" />
<AndroidAsset Include="Assets\iban_view_config.json" />
<None Include="Resources\AboutResources.txt" />
<None Include="Properties\AndroidManifest.xml" />
</ItemGroup>
Expand Down
47 changes: 47 additions & 0 deletions Examples/AnylineExamples.Droid/Assets/iban_view_config.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}
2 changes: 2 additions & 0 deletions Examples/AnylineExamples.Shared/ExampleList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)";
Expand Down Expand Up @@ -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, ""),
Expand Down
1 change: 1 addition & 0 deletions Examples/AnylineExamples.iOS/AnylineExamples.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<BundleResource Include="Resources\mro_config_tin.json" />
<BundleResource Include="Resources\workflows_config_parallel_scanning.json" />
<BundleResource Include="Resources\id_config_universal.json" />
<BundleResource Include="Resources\iban_view_config.json" />
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down
47 changes: 47 additions & 0 deletions Examples/AnylineExamples.iOS/Resources/iban_view_config.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}

0 comments on commit 609e913

Please sign in to comment.