Leadtools.Forms.Recognition Namespace > FormRecognitionEngine Class > ComparePage Method : ComparePage(FormRecognitionAttributes,Int32,FormRecognitionAttributes,Int32) Method |
public PageRecognitionResult ComparePage( FormRecognitionAttributes masterAttributes, int masterPageNumber, FormRecognitionAttributes formAttributes, int formPageNumber )
'Declaration Public Overloads Function ComparePage( _ ByVal masterAttributes As FormRecognitionAttributes, _ ByVal masterPageNumber As Integer, _ ByVal formAttributes As FormRecognitionAttributes, _ ByVal formPageNumber As Integer _ ) As PageRecognitionResult
'Usage Dim instance As FormRecognitionEngine Dim masterAttributes As FormRecognitionAttributes Dim masterPageNumber As Integer Dim formAttributes As FormRecognitionAttributes Dim formPageNumber As Integer Dim value As PageRecognitionResult value = instance.ComparePage(masterAttributes, masterPageNumber, formAttributes, formPageNumber)
public PageRecognitionResult ComparePage( FormRecognitionAttributes masterAttributes, int masterPageNumber, FormRecognitionAttributes formAttributes, int formPageNumber )
function Leadtools.Forms.Recognition.FormRecognitionEngine.ComparePage(FormRecognitionAttributes,Int32,FormRecognitionAttributes,Int32)( masterAttributes , masterPageNumber , formAttributes , formPageNumber )
'''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
///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; }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2