MLKitDigitalInkRecognition Framework Reference

Constants

The following constants are available globally.

  • Autodraw symbol recognition model.

    Model similar to that used by www.autodraw.com for sketch recognition. Given a collection of strokes representing a drawing, returns a string identifying the object. Because of the inherent ambiguity in recognizing some drawings, it is recommended to use multiple candidates, for example by exposing them to the user and letting them decide.

    This recognition model provides scores via DigitalInkRecognitionCandidate.score.

    Declaration

    Swift

    class let autodraw: DigitalInkRecognitionModelIdentifier
  • Emoji symbol recognition model.

    Recognizes single Emoji characters and returns them as Unicode code points. Because of the inherent ambiguity in recognizing some drawings, it is recommended to use multiple candidates, for example by exposing them to the user and letting them decide.

    This recognition model provides scores via DigitalInkRecognitionCandidate.score.

    Declaration

    Swift

    class let emoji: DigitalInkRecognitionModelIdentifier
  • Shapes symbol recognition model.

    Given a collection of strokes representing a single shape, returns a string containing either RECTANGLE, TRIANGLE, ARROW, or ELLIPSE.

    This recognition model provides scores via DigitalInkRecognitionCandidate.score.

    Declaration

    Swift

    class let shapes: DigitalInkRecognitionModelIdentifier