BrainJS / BrainJS/brain.js

Handwriting Recognition?

Open
#460 5 comments 0 reactions 0 assignees View on GitHub
discussion question
Dominant language
TypeScript
Stars
14.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I want to input training data where each character is represented as an array of vectors (I mean each point's coordinates are given **relative to the previous point**) with the `end` property signifying whether it's the last point of a stroke.

For example, the letter "T" might look like this:

`[
{ x: 15, y: 38, end: false},
{ x: 49, y: -8, end: false},
{ x: 15, y: 4, end: true},
{ x: 47, y: 26, end: false},
{ x: -4, y: 37, end: false},
{ x: 0, y: 4, end: false},
{ x: 12, y: 21, end: true}
]`

I believe I should use LSTM. But the page says training data must be array of values. Obviously I have an array of hashes. So what do I do?

**EDIT:** By the way, I have successfully used regular `brain.NeuralNetwork` on images (in the form of pixel arrays). But I want to use vectors not pixels.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.