RapidAPI logo

Handwriting Recognition

FREEMIUM
By wsbe
Updated 2 days ago
Media
2.7/10
Popularity Score
554ms
Latency
-
Success Rate

Handwriting Recognition API Documentation

Handwriting recognition for Chinese from online dictionary Zhonga.ru. Every day thousands of our visitors use character recognition and are very happy with the accuracy of recognized results.

You can see a working example on www.zhonga.ru (just click the button with a pen icon and draw something in Chinese).

Recognition for English and Japanese are coming soon (if you need these languages please let us know in the issues).

View API Details
POSTrecognize
POSTrecognize

Recognize a handwritten character by its coordinates.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
coordinatesSTRING
REQUIREDCoordinates of a handwritten character. It should be an array of arrays with each stroke coordinates.
langSTRING
REQUIREDLanguage of the character ("zh-hans" for Simplified Chinese, "zh-hant" for Traditional Chinese).
Code Snippet
unirest.post("https://zhonga-hwr.p.rapidapi.com/recognize/")
.header("X-RapidAPI-Host", "zhonga-hwr.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("coordinates=[[{"x":56,"y":67},{"x":56,"y":67},{"x":60,"y":67},{"x":66,"y":67},{"x":72,"y":67},{"x":79,"y":67},{"x":87,"y":67},{"x":96,"y":68},{"x":102,"y":68},{"x":108,"y":68},{"x":114,"y":68},{"x":130,"y":68},{"x":135,"y":68},{"x":136,"y":68},{"x":139,"y":69},{"x":144,"y":69},{"x":149,"y":71},{"x":151,"y":71}],[{"x":41,"y":141},{"x":42,"y":141},{"x":53,"y":141},{"x":70,"y":142},{"x":78,"y":144},{"x":87,"y":144},{"x":101,"y":144},{"x":112,"y":146},{"x":126,"y":146},{"x":137,"y":148},{"x":151,"y":148},{"x":194,"y":150},{"x":196,"y":150},{"x":197,"y":150},{"x":198,"y":150},{"x":199,"y":150}]]")
.send("lang=zh-hans")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://zhonga-hwr.p.rapidapi.com/recognize/
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://zhonga-hwr.p.rapidapi.com/recognize/")
.header("X-RapidAPI-Host", "zhonga-hwr.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("coordinates=[[{"x":56,"y":67},{"x":56,"y":67},{"x":60,"y":67},{"x":66,"y":67},{"x":72,"y":67},{"x":79,"y":67},{"x":87,"y":67},{"x":96,"y":68},{"x":102,"y":68},{"x":108,"y":68},{"x":114,"y":68},{"x":130,"y":68},{"x":135,"y":68},{"x":136,"y":68},{"x":139,"y":69},{"x":144,"y":69},{"x":149,"y":71},{"x":151,"y":71}],[{"x":41,"y":141},{"x":42,"y":141},{"x":53,"y":141},{"x":70,"y":142},{"x":78,"y":144},{"x":87,"y":144},{"x":101,"y":144},{"x":112,"y":146},{"x":126,"y":146},{"x":137,"y":148},{"x":151,"y":148},{"x":194,"y":150},{"x":196,"y":150},{"x":197,"y":150},{"x":198,"y":150},{"x":199,"y":150}]]")
.send("lang=zh-hans")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication