LineNode.InkRecognitionConfidence - свойство
Обновлен: Ноябрь 2007
Returns a value that indicates the level of confidence that the InkAnalyzer has in the accuracy of the recognition result.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)
Синтаксис
'Декларация
Public ReadOnly Property InkRecognitionConfidence As InkRecognitionConfidence
'Применение
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
Значение свойства
Тип: Microsoft.Ink.InkRecognitionConfidence
The value that indicates the level of confidence that the InkAnalyzer has in the accuracy of the recognition result.
Примеры
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(Microsoft.Ink.ContextNodeType.Line)
' Mark each line that is not high confidence as thick.
Dim line As LineNode
For Each line In lines
If line.InkRecognitionConfidence <> _
Microsoft.Ink.InkRecognitionConfidence.Strong Then
Dim inkStroke As Stroke
For Each inkStroke In line.Strokes
inkStroke.DrawingAttributes = New DrawingAttributes(150.0F)
Next inkStroke
End If
Next line
theNotesPanel.Refresh()
End Sub 'confidenceLineMenuItem_Click
ContextNodeCollection lines =
theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.Line);
// Mark each line that is not high confidence as thick.
foreach (LineNode line in lines)
{
if (line.InkRecognitionConfidence !=
Microsoft.Ink.InkRecognitionConfidence.Strong)
{
foreach (Stroke stroke in line.Strokes)
{
stroke.DrawingAttributes = new DrawingAttributes(150f);
}
}
}
theNotesPanel.Refresh();
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0