public FormsRecognitionMethod RecognitionMethod { get; set; }
The Leadtools.Forms.Common.FormsRecognitionMethod Method for forms recognition.
Using Simple method Simple has less progress time than Complex but may fail in recognize some forms.
This example adds a page image to an attributes and use Fast compare to find match.
using Leadtools.Forms.Common;
using Leadtools.Forms.Recognition;
using Leadtools.Codecs;
///This method will pass attributes to recognize form.
public FormRecognitionResult CompareFormsWithMastersFast(RasterImage filledFormImage, List<FormRecognitionAttributes> mastersAttributes, FormRecognitionEngine engine)
{
FormRecognitionOptions formOptions = new FormRecognitionOptions();
// We will use Simple (fast) method to create form to use it with CompareFormFast method
formOptions.RecognitionMethod = FormsRecognitionMethod.Simple;
FormRecognitionAttributes filledAttribute = engine.CreateForm(formOptions);
PageRecognitionOptions pageOptions = new PageRecognitionOptions();
pageOptions.AutoCleanUp = true;
pageOptions.UpdateImage = true;
engine.AddFormPage(filledAttribute, filledFormImage, pageOptions);
engine.CloseForm(filledAttribute);
filledAttribute.Image = filledFormImage;
return engine.CompareFormFast(mastersAttributes, filledAttribute, null);
}