←Select platform

Confidence Property

Summary
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
C#
C++/CLI
Java
Python
public int Confidence { get; set; } 
public int getConfidence(); 
public void setConfidence( 
   int intValue 
); 
public: 
property int Confidence { 
   int get(); 
   void set (    int ); 
} 
Confidence # get and set (FormRecognitionResult) 

Property Value

The confidence number expresses the certainty of the recognition process.

Remarks

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.

Example

This example finds the maximum confidence of the comparison with Master Forms.

C#
using Leadtools.Forms.Common; 
using Leadtools.Forms.Recognition; 
 
///This method identifies the type of the form based on the comparison results. 
public int IdentifyForm(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; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.Recognition Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.