myscript / iinkjs Goto Github PK
View Code? Open in Web Editor NEW:pencil2: :cloud: iinkJS is the fastest way to integrate rich handwriting recognition features in your webapp.
Home Page: https://developer.myscript.com
License: Other
:pencil2: :cloud: iinkJS is the fastest way to integrate rich handwriting recognition features in your webapp.
Home Page: https://developer.myscript.com
License: Other
apt update
apt upgrade
shutdown -r now
apt install git python3-pip
sudo apt install curl
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn
apt install npm
git clone https://github.com/MyScript/iinkJS.git
cd iinkJS
npm install
npm audit fix
npm run build
npm run dev
and logs show this
http://localhost:8080 -> /root/iinkJS
LiveReload enabled
(!) Circular dependencies
node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/src/selection/select.js -> node_modules/d3-selection/src/selection/index.js
node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/src/selection/selectAll.js -> node_modules/d3-selection/src/selection/index.js
node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/src/selection/filter.js -> node_modules/d3-selection/src/selection/index.js
...and 9 more
created dist/iink.min.js in 6.2s
bundles src/iink.js → dist/iink.esm.js...
(!) Circular dependencies
node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/src/selection/select.js -> node_modules/d3-selection/src/selection/index.js
node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/src/selection/selectAll.js -> node_modules/d3-selection/src/selection/index.js
node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/src/selection/filter.js -> node_modules/d3-selection/src/selection/index.js
...and 9 more
created dist/iink.esm.js in 5.1s
[2021-06-16 20:47:33] waiting for changes...
How can deploy in public ip?
While using the iinkJS with Math recognition and image/png
in the mime type, the undo functionality does not work as expected.
When the first drawn element is removed using the undo button, the redo button is still in the disabled mode. Additionally, the result
content is not cleared from the UI.
Reference code is taken from - https://github.com/MyScript/iinkJS/blob/master/examples/v4/websocket_math_iink.html
Demo link - https://codesandbox.io/s/myscript-image-issue-demo-7vh21l
Note: replace the server keys with the actual ones to view this behavior on the demo link (https://codesandbox.io/s/myscript-image-issue-demo-7vh21l?file=/index.html:197968-198084)
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 in Google Cloud Vision API).
There's an article explaining its usage here: https://web.dev/handwriting-recognition/
Does the API interest you? We'd also like to hear your feedback on the API design.
Dear team,
no issue to raise. I am impressed with the progress on iinkJS and I am planning to implement it into my own webapp. I was wondering if you are planning to make MathML an available import feature for Math blocks in the foreseeable future.
Best,
J&B
This call always raises an error. It appears that responseCallback()
expects a fourth parameter to be passed.
I constantly keep getting connection despite using valid keys.
i download iinkJS, run the examples, websocket_text_iink.html; at first,i write chinese,it run good,return i need chinese,for example: i write 王, it return 王;applicationKey,hmacKey I have change my own, I run the example, the UI is change, and I write 王, it return "-X-", it not return chinese;
so how I do can use iinkJS, it can let me write chinese ,return i need chinese?
Hello,
Is there a way to specify text encoding?
I have input Korean as shown below, the characters are rendered in a empty boxed state.
ex) editor.import('가나다', 'text/plain')
editor = iink.register(editorRef.current, {
recognitionParams: {
type: 'MATH',
protocol: 'WEBSOCKET',
apiVersion: 'V4',
server: {
scheme: 'https',
host: 'webdemoapi.myscript.com',
applicationKey: '515131ab-35fa-411c-bb4d-3917e00faf60',
hmacKey: '54b2ca8a-6752-469d-87dd-553bb450e9ad',
},
iink: {
math: {
mimeTypes: [
'application/x-latex',
'application/vnd.myscript.jiix',
'application/mathml+xml',
],
},
export: {
jiix: {
strokes: true,
},
},
},
},
});
`
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.