Update passed Leadtools.Forms.Processing.FormPages by filling Extra-information after recognition phase but before Processing phase.
public void FillFieldsInformation(Leadtools.RasterImage form,Leadtools.Forms.Recognition.FormRecognitionAttributes masterAttributes,Leadtools.Forms.Recognition.FormRecognitionAttributes formAttributes,Leadtools.Forms.Processing.FormPages pages,List<PageAlignment> alignments)
Public Sub FillFieldsInformation( _ByVal form As Leadtools.RasterImage, _ByVal masterAttributes As Leadtools.Forms.Recognition.FormRecognitionAttributes, _ByVal formAttributes As Leadtools.Forms.Recognition.FormRecognitionAttributes, _ByVal pages As Leadtools.Forms.Processing.FormPages, _ByVal alignments As List(Of PageAlignment) _)
public:void FillFieldsInformation(Leadtools.RasterImage^ form,Leadtools.Forms.Recognition.FormRecognitionAttributes^ masterAttributes,Leadtools.Forms.Recognition.FormRecognitionAttributes^ formAttributes,Leadtools.Forms.Processing.FormPages^ pages,List<PageAlignment^>^ alignments)
form
Form image.
masterAttributes
The Master Form attribute object.
formAttributes
The Form attribute object.
pages
The Leadtools.Forms.Processing.FormPages that needs to by updated with Recognition Information.
alignments
List of Alignments for Each page in Leadtools.Forms.Processing.FormPages.
User should call this function to update Leadtools.Forms.Processing.FormPages to get better results and fix a lot of recognition problems that may occur.
Imports LeadtoolsImports Leadtools.BarcodeImports Leadtools.CodecsImports Leadtools.FormsImports Leadtools.Forms.OcrImports Leadtools.Forms.ProcessingImports Leadtools.Forms.RecognitionImports Leadtools.Forms.Recognition.BarcodeImports Leadtools.Forms.Recognition.Ocr'''This method will compare form Master Form and if they matched then update Form FormPages.Public Sub FillFieldsInformation(form As RasterImage, pages As FormPages, formAttributes As FormRecognitionAttributes, masterAttributes As FormRecognitionAttributes, engine As FormRecognitionEngine)Dim result As FormRecognitionResult = engine.CompareForm(masterAttributes, formAttributes, Nothing)'check if we have good results then update pages to used in Process stageIf result IsNot Nothing AndAlso result.Reason = FormRecognitionReason.Success AndAlso result.Confidence > 50 Then'save all pages alignment in List and pass them to FillFieldsInformationDim alignments As New List(Of PageAlignment)()For i As Integer = 0 To result.PageResults.Count - 1alignments.Add(result.PageResults(i).Alignment)Next'the pages will be updatedengine.FillFieldsInformation(form, masterAttributes, formAttributes, pages, alignments)End IfEnd Sub
using Leadtools;using Leadtools.Barcode;using Leadtools.Codecs;using Leadtools.Forms;using Leadtools.Forms.Ocr;using Leadtools.Forms.Processing;using Leadtools.Forms.Recognition;using Leadtools.Forms.Recognition.Barcode;using Leadtools.Forms.Recognition.Ocr;///This method will compare form Master Form and if they matched then update Form FormPages.public void FillFieldsInformation(RasterImage form, FormPages pages, FormRecognitionAttributes formAttributes, FormRecognitionAttributes masterAttributes, FormRecognitionEngine engine){FormRecognitionResult result = engine.CompareForm(masterAttributes, formAttributes, null);//check if we have good results then update pages to used in Process stageif (result != null && result.Reason == FormRecognitionReason.Success && result.Confidence > 50){//save all pages alignment in List and pass them to FillFieldsInformationList<PageAlignment> alignments = new List<PageAlignment>();for (int i = 0; i < result.PageResults.Count; i++)alignments.Add(result.PageResults[i].Alignment);//the pages will be updatedengine.FillFieldsInformation(form, masterAttributes, formAttributes, pages, alignments);}}
|
Products |
Support |
Feedback: FillFieldsInformation Method - Leadtools.Forms.Recognition |
Introduction |
Help Version 19.0.2017.3.22
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.