LineNode.InkRecognitionConfidence Property

Returns a value that indicates the level of confidence that the InkAnalyzer has in the accuracy of the recognition result.

Namespace: System.Windows.Ink
Assembly: IAWinFX (in iawinfx.dll)
XML Namespace:  https://schemas.microsoft.com/winfx/2006/xaml/presentation

Syntax

'Declaration
Public ReadOnly Property InkRecognitionConfidence As InkRecognitionConfidence
'Usage
Dim instance As LineNode
Dim value As InkRecognitionConfidence

value = instance.InkRecognitionConfidence
public InkRecognitionConfidence InkRecognitionConfidence { get; }
public:
property InkRecognitionConfidence InkRecognitionConfidence {
    InkRecognitionConfidence get ();
}
/** @property */
public InkRecognitionConfidence get_InkRecognitionConfidence ()
public function get InkRecognitionConfidence () : InkRecognitionConfidence
Not applicable.

Property Value

The value that indicates the level of confidence that the InkAnalyzer has in the accuracy of the recognition result.

Example

The following example loops through all LineNode objects from an InkAnalyzer, theInkAnalyzer. It marks all of the strokes from nodes in which the recognition confidence is not Strong by making the strokes have a thick width.

Dim lines As ContextNodeCollection = _
    theInkAnalyzer.FindNodesOfType(ContextNodeType.Line)

' Mark each line that is not high confidence as thick.
Dim line As LineNode
For Each line In  lines
    If line.InkRecognitionConfidence <> InkRecognitionConfidence.Strong Then
        Dim stroke As Stroke
        For Each stroke In  line.Strokes
            stroke.DrawingAttributes.Height = 3F
            stroke.DrawingAttributes.Width = 3F
        Next stroke
    End If
Next line
ContextNodeCollection lines =
 theInkAnalyzer.FindNodesOfType(ContextNodeType.Line);

// Mark each line that is not high confidence as thick.
foreach (LineNode line in lines)
{
    if (line.InkRecognitionConfidence !=
           InkRecognitionConfidence.Strong)
    {
        foreach (Stroke stroke in line.Strokes)
        {
            stroke.DrawingAttributes.Height = 3f;
            stroke.DrawingAttributes.Width = 3f;
        }
    }
}

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

LineNode Class
LineNode Members
System.Windows.Ink Namespace
TextRecognitionConfidence
Confidence