InkWordNode.InkRecognitionConfidence 属性

获取一个值,该值指示 InkAnalyzer 对于识别结果准确度的置信级别。

命名空间:  System.Windows.Ink
程序集:  IAWinFX(在 IAWinFX.dll 中)

语法

声明
Public ReadOnly Property InkRecognitionConfidence As InkRecognitionConfidence
用法
Dim instance As InkWordNode
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

属性值

类型:System.Windows.Ink.InkRecognitionConfidence
一个值,指示 InkAnalyzer 对于识别结果准确度的置信级别。

示例

下面的示例遍历来自 InkAnalyzer (theInkAnalyzer) 的所有 InkWordNode 对象。对于识别置信级别不是 Strong() 的节点中的所有笔画,此示例采用更大的宽度呈现这些笔画,从而标记这些笔画。

Dim inkWords As ContextNodeCollection = _
    theInkAnalyzer.FindNodesOfType(ContextNodeType.InkWord)

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

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

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

InkWordNode 类

InkWordNode 成员

System.Windows.Ink 命名空间

TextRecognitionConfidence

Confidence()