Gets or sets the level of confidence that a recognition engine has when comparing a Form's attributes object with a Master Form's attributes object.
public int Confidence { get; set; } Public Property Confidence As Integer
The confidence number expresses the certainty of the recognition process.
Confidence values range from 0 to 100. 0 represents no confidence, 100 represents full confidence. The Confidence value is the average confidence of all pages in multi-page forms.
For a complete example on using the forms recognition and processing, refer to the FormRecognitionEngine example.
This example finds the maximum confidence of the comparison with Master Forms.
using Leadtools.Forms;using Leadtools.Forms.Recognition;///This method identifies the type of the form based on the comparison results.public int IdentefyForm(FormRecognitionResult[] results){int maxIndex = 0;maxIndex = 0;for (int i = 1; i < results.Length; i++){if (results[maxIndex].Confidence < results[i].Confidence)maxIndex = i;}if (results[maxIndex].Confidence < 30)maxIndex = -1;//no matchreturn maxIndex;}
Imports Leadtools.FormsImports Leadtools.Forms.Recognition'''This method identifies the type of the form based on the comparison results.Public Function IdentefyForm(results As FormRecognitionResult()) As IntegerDim maxIndex As Integer = 0maxIndex = 0For i As Integer = 1 To results.Length - 1If results(maxIndex).Confidence < results(i).Confidence ThenmaxIndex = iEnd IfNextIf results(maxIndex).Confidence < 30 ThenmaxIndex = -1End If'no matchReturn maxIndexEnd Function
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
