Leadtools.Forms.Recognition Namespace > FormRecognitionResult Class : Confidence Property |
public int Confidence {get; set;}
'Declaration Public Property Confidence As Integer
'Usage Dim instance As FormRecognitionResult Dim value As Integer instance.Confidence = value value = instance.Confidence
public int Confidence {get; set;}
get_Confidence();
set_Confidence(value);
'''This method identifies the type of the form based on the comparison results. Public Function IdentefyForm(ByVal results As FormRecognitionResult()) As Integer Dim maxIndex As Integer = 0 maxIndex = 0 Dim i As Integer = 1 Do While i < results.Length If results(maxIndex).Confidence < results(i).Confidence Then maxIndex = i End If i += 1 Loop If results(maxIndex).Confidence < 30 Then maxIndex = -1 'no match End If Return maxIndex End Function
///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; }
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