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 compares the first page of a Form to the first page of a Master Form.
Private Function CompareFirstPage(ByVal recognitionEngine As FormRecognitionEngine, _
ByVal master As FormRecognitionAttributes, _
ByVal form As FormRecognitionAttributes) As FormRecognitionResult
Dim resultPage As PageRecognitionResult = recognitionEngine.ComparePage(master, 1, form, 1)
Dim result As FormRecognitionResult = New FormRecognitionResult()
result.Confidence = resultPage.Confidence
result.LargestConfidencePageNumber = 1
result.PageResults.Add(resultPage)
result.Reason = FormRecognitionReason.Success
Return result
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 compares the first page of a Form to the first page of a Master Form.
FormRecognitionResult CompareFirstPage(FormRecognitionEngine recognitionEngine,
FormRecognitionAttributes master,
FormRecognitionAttributes form)
{
PageRecognitionResult resultPage = recognitionEngine.ComparePage(master, 1, form, 1);
FormRecognitionResult result = new FormRecognitionResult();
result.Confidence = resultPage.Confidence;
result.LargestConfidencePageNumber = 1;
result.PageResults.Add(resultPage);
result.Reason = FormRecognitionReason.Success;
return result;
}