Skip to content

Latest commit

 

History

History

InkRecognition

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
topic languages products
sample
swift
ios
azure

Ink Recognizer Cognitive Service Swift (on IOS) Sample

Build passing License

Ink Recognizer Cognitive Service provides recognition of digital ink. It takes the digital ink stroke data as input and provides a document tree with individual recognition units as output. This project has sample code to demonstrate a few ways developers can take advantage of the service.

Features

This project provides the following features:

  • Capturing very basic inking input.
  • Creating the JSON payload using the Ink Recognizer JSON schema.
  • Asynchronously calling the Ink Recognizer REST APIs with the JSON payload
  • Parsing the JSON response from the service to build the document tree.

Contents

File/folder Description
Recognizer Sample source code.
README.md This README file.
LICENSE The license for the sample.

Getting Started

Prerequisites

XCode 10 on macOS Mojave

Quickstart

(Add steps to get up and running quickly)

  1. git clone https://github.com/Azure-Samples/cognitive-services-REST-api-samples
  2. cd [respository name]
  3. Navigate to the project directory (swift/InkRecognition) and select the xcode project file.
  4. Replace <SUBSCRIPTION_KEY_HERE> in InkRendererView.swift with your valid subscription key

Demo

  1. Select a virtual device in Xcode
  2. Build and run the project
  3. Write something on the screen of the virtual device once it is loaded.
  4. After 2 seconds of inactivity, the ink will be recognized and the result will be visible in the text control at the bottom of the screen.

Resources

Additional resources related the project are located below