Поделиться через


RecognitionProperty.ConfidenceLevel - поле

Обновлен: Ноябрь 2007

Retrieves a globally unique identifier (GUID) that specifies the confidence level of the RecognitionAlternate object.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public Shared ReadOnly ConfidenceLevel As Guid
'Применение
Dim value As Guid

value = RecognitionProperty.ConfidenceLevel
public static readonly Guid ConfidenceLevel
public:
static initonly Guid ConfidenceLevel
public static final Guid ConfidenceLevel
public static final var ConfidenceLevel : Guid

Значение поля

Тип: System.Guid
The globally unique identifier (GUID) that specifies the confidence level of the RecognitionAlternate object.

Заметки

The Tablet PCapplication programming interface (API) uses GUIDs to identify packet properties, recognition properties, drawing attributes, and general ink properties. These GUIDs are available as read-only fields of the RecognitionProperty object. Use these GUIDs to access properties of a RecognitionAlternate object by calling the GetPropertyValue method.

ConfidenceLevel specifies the level of confidence that the recognizer has in the recognition result.

Of the Microsoft® recognizers, only the Microsoft English (US) Handwriting Recognizer and the Microsoft Gesture Recognizer support confidence levels. Third party recognizers may or may not support confidence levels.

Примеры

In this example, the first Recognizer that supports German (language ID 1031), the RecognizerCapabilities capability LinedInput, and ConfidenceLevel is assigned to the selected Recognizer object variable.

Dim selectedRecognizer As Recognizer = Nothing
Dim allRecognizers As Recognizers = New Recognizers()
For Each oneReco As Recognizer In allRecognizers
    ' if we haven't found the one we want yet
    If Not selectedRecognizer Is Nothing Then
        ' if supports LinedInput
        If (oneReco.Capabilities And RecognizerCapabilities.LinedInput) <> 0 Then
            For Each langID As Short In oneReco.Languages
                ' if supports German (1031)
                If langID = 1031 Then
                    For Each propertyGuid As Guid In oneReco.SupportedProperties
                        ' if supports ConfidenceLevel
                        If propertyGuid = RecognitionProperty.ConfidenceLevel Then
                            ' assign selected
                            selectedRecognizer = oneReco
                        End If
                    Next
                End If
            Next
        End If
    End If
Next
Recognizer selectedRecognizer = null;
Recognizers allRecognizers = new Recognizers();
foreach (Recognizer oneReco in allRecognizers)
{
    // if we haven't found the one we want yet
    if (null == selectedRecognizer)
    {
        // if supports LinedInput
        if ((oneReco.Capabilities & RecognizerCapabilities.LinedInput) != 0)
        {
            foreach (short langID in oneReco.Languages)
            {
                // if supports German (1031)
                if (langID == 1031)
                {
                    foreach (Guid propertyGuid in oneReco.SupportedProperties)
                    {
                        // if supports ConfidenceLevel
                        if (propertyGuid == RecognitionProperty.ConfidenceLevel)
                        {
                            // assign selected
                            selectedRecognizer = oneReco;
                        }
                    }
                }
            }
        }
    }
}

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

RecognitionProperty Класс

RecognitionProperty - члены

Microsoft.Ink - пространство имен

RecognitionProperty