Use case

These two recognizers aim at performing real-time incremental recognition for text and gestures on transient ink. They are intended to address input-method writing solutions based on iink SDK, where your application performs the strokes capture and rendering. They simplify iink SDK integration.

Application iink SDK Strokes Result exports Incremental processing Capture

Both recognizers process the first strokes in the background while the user keeps writing more strokes. That background recognition process starts as soon as the first stroke is written.

Setup

In order to use the recognizers, you need to create an Engine object to set the runtime environment. Once the Engine is created, you can create your Recognizer object by indicating its type (either Text or Gesture) and can then send PEN events to it. You can register a IRecognizerListener to the Recognizer. When a recognition result has changed, an event notifies the IRecognizerListener with the resultChanged method.

Configuration

Text Recognizer

Gesture Recognizer

Supported gestures are defined thanks to recognizer.gesture. prefixed keys.

Common parameters

recognizer.result.default-format defines the format of the result provided via the IRecognizerListener resultChanged method.

➤ Refer to the configuration page, to get the full list of recognizer configuration.

Example

The write to type example gives you a hint how to implement scribble like feature relying on the Recognizer API of iink SDK. It is available on the MyScript Git repository containing the additional examples for the Android platform. This sample comes with a description that helps you understand its principle.

It is based on a contextless gesture recognition combined with a text recognition. To run both recognitions simultaneously, two instances of Recognizer are created - one for Gesture recognition and the other one for Text recognition.

➤ Should you need more details, refer to the API documentation documentation and/or ask question on our developer forum.