This program turns your Android device or Android emulator to Handwriting recognition server.
Server implements REST API, accepts handwriting data in JSON format and returns result (recognized text) in JSON format. Text recognition happens directly on Android device. At first request to server, server downloads (model) data from the internet used to recognize handwriting.
You can find compiled installation file (*.apk) on releases page of this repository. Or you can compile this program from source code by yourself.
To implement REST API, Ktor server is used: https://ktor.io
To recognize handwriting, Digital ink recognition API is used: https://developers.google.com/ml-kit/vision/digital-ink-recognition
You can read more detailed info about handwriting in this note: https://github.com/WICG/handwriting-recognition/blob/main/explainer.md
Example of data send to server and request to server you can find in test folder.