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.
Syntax
public int Confidence { get; set; }
Public Property Confidence As Integer
public int getConfidence();
public void setConfidence(
int intValue
);
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 multipage 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.Common;
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 match
return maxIndex;
}
Imports Leadtools.Forms.Common
Imports Leadtools.Forms.Recognition
'''This method identifies the type of the form based on the comparison results.
Public Function IdentefyForm(results As FormRecognitionResult()) As Integer
Dim maxIndex As Integer = 0
maxIndex = 0
For i As Integer = 1 To results.Length - 1
If results(maxIndex).Confidence < results(i).Confidence Then
maxIndex = i
End If
Next
If results(maxIndex).Confidence < 30 Then
maxIndex = -1
End If
'no match
Return maxIndex
End Function
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.