Extract Template Forms

After classifying the associated template form to a file, The Template Extraction SDK allows you to extract data from the input file based on the template form, including support for different types of deformation for the data layout between the template and the input file.

The extracted data is determined by the Fields inside the template.

1 var inputFile = "./input_file.tif";
2 var templatesRepo = "./templates";
3
4 using TemplatesCollection templates = new TemplatesCollection.Builder()
5 .FromSourceFolder(templatesRepo)
6 .Build();
7
8 using TemplateExtractor extractor = new TemplateExtractor.Builder()
9 .SetTemplatesSource(templates)
10 .SetRuntimeFolder("./runtimes")
11 .SetLicense(["", ""])
12 .Build();
13
14 using var fileStream = new FileStream(inputFile, FileMode.Open, FileAccess.Read, FileShare.Read);
15 Result<ExtractResult> result = extractor.Extract(new InputStream(fileStream));

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales