Comments (2)
It's using the average distance of the line the user draws to the line that passes between the 2 absolutely positioned points rather than just the 2 absolutely positioned points themselves. It also checks to make sure the length of the stroke the user drew is reasonable, that the stroke direction is correct, and that the start and end points of the stroke the user drew are reasonably close to the start and end points of the actual stroke. The consts at the top of the StrokeMatcher determine how lenient the matching is with regard to all those metrics. It's certainly possible it's too strict currently - if you want to mess around with the leniency constants at the top and make a PR I'm happy to change them.
from hanzi-writer.
Closing for now as there have since been a few changes to how the stroke matching works. Feel free to reopen if this is still an issue.
from hanzi-writer.
Related Issues (20)
- Totally offline hanzi-writer HOT 5
- quiz mode: if I made a mistake 2 times, I'd like the stroke to be drawn for me HOT 5
- Quiz mode: how to set accuracy for quizzes? HOT 1
- The stroke color changes when writing a stroke during a highlight. HOT 6
- hz-writer,在设置宽高为20的情况下,字体是反的 .这是为什么呢? 该怎么解决? 求助ing
- How to get reference to writer? (generating writers programmatically) HOT 2
- Some words are not loaded, but components work fine if loaded separately HOT 2
- 手写功能在火狐浏览器的兼容问题 HOT 1
- 有办法获取写字动画每一笔的轨迹坐标吗
- vue导入之后报错Use of const in strict mode
- Can this library support setting the screen to not flash when i start quiz and set quizStartStrokeNum ? HOT 1
- ”锋“字第五画竖勾无法写对 HOT 2
- 安卓手机wifi网络下,偶尔出现chromium: [ERROR:ssl_client_socket_impl.cc(959)] handshake failed; returned -1, SSL error code 1, net_error -100 HOT 2
- Use KanjiVG to more closely resemble how characters are handwritten
- How to draw certain number of strokes? HOT 2
- Insert audio HOT 2
- `new Path2D()` should not be used, please use `canvas.createPath2D()` HOT 1
- Is it possible to add numbers at the beggining of the strokes? HOT 1
- Is it possible to show only the next stroke? HOT 1
- Is it possible to add some character to hanzi ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hanzi-writer.