![]() |
VOOZH | about |
Requires NuGet 4.7.0.0 or higher.
dotnet add package DocumentLab-x64 --version 1.3.0
NuGet\Install-Package DocumentLab-x64 -Version 1.3.0
<PackageReference Include="DocumentLab-x64" Version="1.3.0" />
<PackageVersion Include="DocumentLab-x64" Version="1.3.0" />Directory.Packages.props
<PackageReference Include="DocumentLab-x64" />Project file
paket add DocumentLab-x64 --version 1.3.0
#r "nuget: DocumentLab-x64, 1.3.0"
#:package DocumentLab-x64@1.3.0
#addin nuget:?package=DocumentLab-x64&version=1.3.0Install as a Cake Addin
#tool nuget:?package=DocumentLab-x64&version=1.3.0Install as a Cake Tool
Getting started
You can write scripts in the query language or use the C# API. The C# fluent interface is easier to get started quickly. The raw text scripting interface allows more versatility and configurability in a production context.
Definitions
Text(Total amount) Right [Amount]Table 'ItemNo': [Number(Item number)] 'Description': [Text(Description)] 'Price': [Amount(...IncoiceNumber: *pattern 1*; *pattern 2*; ... *pattern n*;From here...
Quick examples
Below are a few select examples with comments on how DocumentLab can be used.
C# Fluent Query Example
using (var dl = new Document((Bitmap)Image.FromFile("pathToSomeImage.png")))
{
// Here we ask DocumentLab to specifically find a date value for the specified possible labels
string dueDate = dl.Query().FindValueForLabel(TextType.Date, "Due date", "Payment date");
// Here we ask DocumentLab to specifically find a date value for the specified label in a specific direction
string customerNumber = dl.Query().GetValueForLabel(Direction.Right, "Customer number");
// We can build patterns using predicates, directions and capture operations that return the value matched in the document
// Patterns allow us to recognize and capture data by contextual information, i.e., how we'd read for example receiver information from an invoice
string receiverName = dl
.Query()
.Match("PostCode") // Text classification using contextual data files can be referenced by string
.Up()
.Match("Town")
.Up()
.Match("City")
.Up()
.Capture(TextType.Text); // All text type operations can also use the statically defined text type enum
}
Script example
CustomerNumber: Text(Customer number) Right [Text];InvoiceDate: Text(Invoice date) Down [Date];Receiver: 'Name': [Text] Down 'Address': [StreetAddress] Down 'City': [Town] Down 'PostalCode': [PostalCode];AllAmounts: Any [Amount];| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net461 net461 is compatible. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.