←Select platform

Confidence Property

Summary
Gets the result accuracy percentage.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public int Confidence { get; } 
@property (nonatomic, assign, readonly) NSInteger confidence; 
public int getConfidence(); 
public: 
property int Confidence { 
   int get(); 
} 
Confidence # get  (ImageColorTypeCommand) 

Property Value

The accuracy of the result.

Remarks

If the value is 100, that means the result is 100 percent accurate.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Core; 
 
public void ImageColorTypeCommandExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "sample5.cmp")); 
 
   // Prepare the command 
   ImageColorTypeCommand command = new ImageColorTypeCommand(); 
   //Apply  
   command.Run(image); 
 
   MessageBox.Show("Color Type = " + command.ColorType.ToString() + "\n" + "Confidence = " + command.Confidence.ToString()); 
 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

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

Leadtools.ImageProcessing.Core Assembly

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