Cloud Development Kit

Separate stroke data by space

Hi,
I can easily get stroke data from handwriting by myscript tool.

A json format stroke data, for example:

[{
type: stroke,
x: [32, 29, 26, 26, 27, 29, 32, 36, 38, 40, 40, 40, 39, 38, 38, 38, 39, 41, 43],
y: [57, 56, 61, 66, 69, 71, 69, 60, 53, 46, 40, 38, 37, 41, 46, 55, 60, 63, 64]
}, {
type: stroke,
x: [48, 49, 50, 52, 54, 55, 55, 54, 50, 46, 45, 45, 48, 52, 57, 62, 63],
y: [58, 59, 60, 60, 58, 56, 54, 53, 54, 59, 65, 69, 71, 71, 68, 61, 60]
}, {
type: stroke,
x: [71, 71, 72, 72, 71, 68, 67, 67, 67, 68, 69, 70],
y: [46, 45, 44, 43, 47, 56, 66, 75, 78, 80, 80, 78]
}, {
type: stroke,
x: [63, 63, 63, 63, 64, 68, 73, 76, 78, 79],
y: [64, 63, 62, 61, 61, 61, 60, 59, 58, 58]
}, {
type: stroke,
x: [114, 117, 123, 124, 125],
y: [79, 80, 79, 78, 78]
}]

My question is, is there any way I can know how you separate the strokes by space? So I can first divide my stroke data into word pieces and then send it to Myscript server.

Thanks!


Dear Qiyu Zhi,

thank you for contacting us!

Currently, such information can not be provided before the recognition process occurs, as it is influenced with the data such a lexicons, language etc...

For which purpose would you need that? From what you say, it seems because you would like to send strokes word by word? what is the goal in the end?

Best regards,

Olivier

Hi,

Thanks for your reply.

I'm trying to send the stroke data of a long sentence to myscript server, and I'm wondering if I can get a better result if I divide this sentence to a word list and send it separately.

Dear Qiyu Zhi,

Thank you for the update.

Currently, you are not likely to get a better accuracy recognizing by word or full text sentence.

We rather recommend you recognize the full sentence as you get it, so that you are less likely to add errors splitting sentences into words.

Let us know if you have further questions.

Best regards,

Olivier

Login or Signup to post a comment