Code Monkey home page Code Monkey logo

handwriting.js's Issues

Web Handwriting Recognition API

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.

Congratulations! Amazing script!

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

Problem

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.

Allow writing a dot by just clicking

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

[Feature] Add alternative service endpoint URLs

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.