chenyuho / handwriting.js Goto Github PK
View Code? Open in Web Editor NEWA simple API access to the handwriting recognition service of Google IME
License: MIT License
A simple API access to the handwriting recognition service of Google IME
License: MIT License
Hello,
We (Chrome and Chrome OS) are working on a standardized Web API for handwriting recognition. The proposal is here: explainer.
The API would allow websites to access handwriting recognizers that's locally available on device (instead of sending the requests to cloud servers). It's currently implemented on Chrome OS (backed by the same technology used in IMEs).
Does the API interest you?
We'd also like to hear your feedback and make it easier to integrate with your library.
I will be teaching some children how to write their first words and this script is exactly what I was looking for.
Thank you so much!
Quick question: How to change the pen or ink color from black (current color) to white?
Thanks
https://www.google.com.tw/inputtools/request?ime=handwriting&app=mobilesearch&cs=1&oe=UTF-8
throws an error, "FAILED_TO_PARSE_REQUEST_BODY"
Hi Chen,
I am getting a strange error.
While using the script on mobile I get the following error in console.
[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as
[Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as
This is on line 38 and 38 of the handwriting.canvas.js
Love the project by the way!
Great learning resources.
Currently, if you just click in the canvas, it doesn't write anything. I would like to be able to write the dot for an "i" or a "j" with a simple click
I dont get how we capture a trace
Currently, handwriting.js only POSTs to one service endpoint, that is https://www.google.com.tw/inputtools/request?ime=handwriting&app=mobilesearch&cs=1&oe=UTF-8
. I propose that we add alternative service endpoint URLs which the user could pick from. This will reduce the load off Google's servers, and will circumvent (or at least alleviate the restrictions of) Google's API usage limits.
Here are the possible alternative service endpoint URLs the could choose from:
let serviceEndpointURLs = {
"default": "https://www.google.com.tw/inputtools/request?ime=handwriting&app=mobilesearch&cs=1&oe=UTF-8",
"google_tw": "https://www.google.com.tw/inputtools/request?ime=handwriting",
"google_jp": "https://www.google.co.jp/inputtools/request?ime=handwriting",
"google": "https://www.google.com/inputtools/request?ime=handwriting",
"inputtools": "https://inputtools.google.com/request?ime=handwriting"
}
I will try to create a pull request to day to implement these. What do you think?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.