Error processing SSI file
LEADTOOLS Forms (Leadtools.Forms.Recognition assembly)

Show in webframe

CompareExtendedForm Method






The Master Form attribute object.
The Form attribute object.
Status about the progress of the comparison at the form level (i.e. page by page). Set it to null to ignore the progress.
Provides status on the progress of the comparison at the page level. Set it to null to ignore the progress.
Returns a FormRecognitionResult object determines how close is the specified Form to the specified Master Form.
Syntax
'Declaration
 
Public Function CompareExtendedForm( _
   ByVal masterAttributes As FormRecognitionAttributes, _
   ByVal formAttributes As FormRecognitionAttributes, _
   ByVal formCallback As FormProgressCallback, _
   ByVal pageCallback As PageProgressCallback _
) As FormRecognitionResult
'Usage
 
Dim instance As FormRecognitionEngine
Dim masterAttributes As FormRecognitionAttributes
Dim formAttributes As FormRecognitionAttributes
Dim formCallback As FormProgressCallback
Dim pageCallback As PageProgressCallback
Dim value As FormRecognitionResult
 
value = instance.CompareExtendedForm(masterAttributes, formAttributes, formCallback, pageCallback)

            

            

Parameters

masterAttributes
The Master Form attribute object.
formAttributes
The Form attribute object.
formCallback
Status about the progress of the comparison at the form level (i.e. page by page). Set it to null to ignore the progress.
pageCallback
Provides status on the progress of the comparison at the page level. Set it to null to ignore the progress.
Remarks
Form must have number of pages larger than or equal Master Form pages number. If they do not, the result will be zero and the reason will be FormRecognitionReason.InvalidNumberOfPages.

This function should be used To Compare Form with Master forms that have invoice (TableFormField).

In order to recognize a Form, the Form attribute object must be compared with all of the Master Form attribute objects that have incoive (TableFormField),representing different types of form templates. The Form's type is that Master Form attribute object that generated the highest confidence value. If the highest confidence value is very low that means the Form is not one the types of the Master Forms (i.e. the type of this Form is not defined in the Master Form set)

Example

For a complete example of using form recognition and processing, refer to the FormRecognitionEngine example.

This example compares a Master Form with a Form.

Copy Code  
Imports Leadtools
Imports Leadtools.Barcode
Imports Leadtools.Codecs
Imports Leadtools.Forms
Imports Leadtools.Forms.Ocr
Imports Leadtools.Forms.Processing
Imports Leadtools.Forms.Recognition
Imports Leadtools.Forms.Recognition.Barcode
Imports Leadtools.Forms.Recognition.Ocr

'''This method will compare form with Extended MasterForms (contains Table Form Field).
Public Function CompareExtendedForm(formAttributes As FormRecognitionAttributes, mastersAttributes As FormRecognitionAttributes, engine As FormRecognitionEngine) As FormRecognitionResult
   'Note that mastersAttributes is attributes for master form that contains Table Form Field. 
   Return engine.CompareExtendedForm(mastersAttributes, formAttributes, Nothing, Nothing)
End Function
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 with Extended MasterForms (contains Table Form Field).
public FormRecognitionResult CompareExtendedForm(FormRecognitionAttributes formAttributes, FormRecognitionAttributes mastersAttributes, FormRecognitionEngine engine)
{
   //Note that mastersAttributes is attributes for master form that contains Table Form Field. 
   return engine.CompareExtendedForm(mastersAttributes, formAttributes, null, null);      
}
Requirements

Target Platforms

See Also

Reference

FormRecognitionEngine Class
FormRecognitionEngine Members

Error processing SSI file
Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features