WritingRegionNode.InkRecognitionConfidence Property
Gets a value that indicates the level of confidence in the accuracy of the recognition result.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.dll)
Syntax
'Declaration
Public ReadOnly Property InkRecognitionConfidence As InkRecognitionConfidence
'Usage
Dim instance As WritingRegionNode
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 WritingRegionNode objects from an InkAnalyzer, theInkAnalyzer
. It indicates, by a thicker width, all of the strokes from nodes in which the recognition confidence is not Strong.
Dim writingRegions As ContextNodeCollection = _
theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.WritingRegion)
' Mark each writing region that is not high confidence as thick.
Dim writingRegion As WritingRegionNode
For Each writingRegion In writingRegions
If writingRegion.InkRecognitionConfidence <> Microsoft.Ink.InkRecognitionConfidence.Strong Then
Dim inkStroke As Stroke
For Each inkStroke In writingRegion.Strokes
inkStroke.DrawingAttributes = New DrawingAttributes(150.0F)
Next inkStroke
End If
Next writingRegion
ContextNodeCollection writingRegions =
theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.WritingRegion);
// Mark each writing region that is not high confidence as thick.
foreach (WritingRegionNode writingRegion in writingRegions)
{
if (writingRegion.InkRecognitionConfidence !=
Microsoft.Ink.InkRecognitionConfidence.Strong)
{
foreach (Stroke stroke in writingRegion.Strokes)
{
stroke.DrawingAttributes = new DrawingAttributes(150f);
}
}
}
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
WritingRegionNode Class
WritingRegionNode Members
Microsoft.Ink Namespace