InkManager.RecognizeAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RecognizeAsync(InkRecognitionTarget) |
Note For Universal Windows app using Extensible Application Markup Language (XAML), we recommend using InkPresenter and the InkCanvas control instead of InkManager. Performs handwriting recognition on one or more InkStroke objects. |
RecognizeAsync(InkStrokeContainer, InkRecognitionTarget) |
Note For Universal Windows app using Extensible Application Markup Language (XAML), we recommend using InkPresenter and the InkCanvas control instead of InkManager. Performs handwriting recognition on one or more InkStroke objects. |
RecognizeAsync(InkRecognitionTarget)
Note
For Universal Windows app using Extensible Application Markup Language (XAML), we recommend using InkPresenter and the InkCanvas control instead of InkManager.
Performs handwriting recognition on one or more InkStroke objects.
public:
virtual IAsyncOperation<IVectorView<InkRecognitionResult ^> ^> ^ RecognizeAsync(InkRecognitionTarget recognitionTarget) = RecognizeAsync;
/// [Windows.Foundation.Metadata.Overload("RecognizeAsync2")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<InkRecognitionResult>> RecognizeAsync(InkRecognitionTarget const& recognitionTarget);
[Windows.Foundation.Metadata.Overload("RecognizeAsync2")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<InkRecognitionResult>> RecognizeAsync(InkRecognitionTarget recognitionTarget);
function recognizeAsync(recognitionTarget)
Public Function RecognizeAsync (recognitionTarget As InkRecognitionTarget) As IAsyncOperation(Of IReadOnlyList(Of InkRecognitionResult))
Parameters
- recognitionTarget
- InkRecognitionTarget
One of the values from the InkRecognitionTarget enumeration.
Returns
The results of the recognition as a collection of InkRecognitionResult objects. Each item in the results returned by recognition represents one written word. Each word is associated with a ranked list of text strings (retrieved through a call to GetTextCandidates) as potential matches for the word.
- Attributes
Remarks
Because RecognizeAsync does not automatically update the existing recognition results stored in the InkManager, UpdateRecognitionResults is typically called after RecognizeAsync has completed.
See also
- RecognizeAsync(InkStrokeContainer, InkRecognitionTarget)
- GetTextCandidates()
- Pen and stylus interactions
- Get started: Support ink in your UWP app
- Ink analysis sample (basic) (C#)
- Ink handwriting recognition sample (C#)
- Save and load ink strokes from an Ink Serialized Format (ISF) file
- Save and load ink strokes from the clipboard
- Ink toolbar location and orientation sample (basic)
- Ink toolbar location and orientation sample (dynamic)
- Coloring book sample
- Family notes sample
- Inking sample (JavaScript)
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample
Applies to
RecognizeAsync(InkStrokeContainer, InkRecognitionTarget)
Note
For Universal Windows app using Extensible Application Markup Language (XAML), we recommend using InkPresenter and the InkCanvas control instead of InkManager.
Performs handwriting recognition on one or more InkStroke objects.
public:
virtual IAsyncOperation<IVectorView<InkRecognitionResult ^> ^> ^ RecognizeAsync(InkStrokeContainer ^ strokeCollection, InkRecognitionTarget recognitionTarget) = RecognizeAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<InkRecognitionResult>> RecognizeAsync(InkStrokeContainer const& strokeCollection, InkRecognitionTarget const& recognitionTarget);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<InkRecognitionResult>> RecognizeAsync(InkStrokeContainer strokeCollection, InkRecognitionTarget recognitionTarget);
function recognizeAsync(strokeCollection, recognitionTarget)
Public Function RecognizeAsync (strokeCollection As InkStrokeContainer, recognitionTarget As InkRecognitionTarget) As IAsyncOperation(Of IReadOnlyList(Of InkRecognitionResult))
Parameters
- strokeCollection
- InkStrokeContainer
The set of strokes on which recognition is performed.
- recognitionTarget
- InkRecognitionTarget
One of the values from the InkRecognitionTarget enumeration.
Returns
The results of the recognition as a collection of InkRecognitionResult objects.Each item in the results returned by recognition represents one written word. Each word is associated with a ranked list of text strings (retrieved through a call to GetTextCandidates) as potential matches for the word.
Implements
- Attributes
Remarks
Because RecognizeAsync does not automatically update the existing recognition results stored in the InkManager, UpdateRecognitionResults is typically called after RecognizeAsync has completed.
See also
- RecognizeAsync(InkRecognitionTarget)
- GetTextCandidates()
- Pen and stylus interactions
- Get started: Support ink in your UWP app
- Ink analysis sample (basic) (C#)
- Ink handwriting recognition sample (C#)
- Save and load ink strokes from an Ink Serialized Format (ISF) file
- Save and load ink strokes from the clipboard
- Ink toolbar location and orientation sample (basic)
- Ink toolbar location and orientation sample (dynamic)
- Coloring book sample
- Family notes sample
- Inking sample (JavaScript)
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample