General questions

Answered

How to judge whether there is multi line data through trajectory data

for example:

Write two lines of data, how to judge the corresponding two lines of data in the track data Trajectory data

thanks!




Best Answer

Dear Color Fang,


Thank you for your update. For the moment the API does not provide this information, so you should write your own algorithm based on the strokes coordinates.


Best regards,


Gwenaëlle


Dear Color Fang,


Thank you for contacting us.


Could you, please, give us some further details about what you want to do?

Which product and API are you using? Which content part?


Thank you


Gwenaëlle



Using API rest method to call

How to judge whether there is line break data through stroke data

For example: how do the following data calculate line breaks

"x": [55.37,55.40,55.42,55.44,55.45,55.44,55.46,55.46,55.46,55.46,55.46,55.47,55.49,55.50,55.51,55.53,55.57,55.60,55.61,55.63,55.62,55.62,55.61,55.62,55.60,55.59,55.57,55.56,55.37,55.38,55.39,55.39,55.41,55.45,55.52,55.66,55.90,56.22,56.51,56.76,56.66,56.44,56.12,55.88,55.79,55.80,55.83,55.86,55.96,56.16,56.54,56.80,57.08,57.20,56.20]

          "y": [

            118.49,118.47,118.45,118.45,118.44,118.43,118.46,118.47,118.48,118.49,118.51,118.56,118.67,118.89,119.14,119.45,119.69,119.84,119.96,120.07,120.10,120.10,120.08,120.08,120.03,119.99,119.91,119.88,122.34,122.35,122.36,122.38,122.38,122.36,122.38,122.35,122.29,122.28,122.40,122.78,123.08,123.35,123.63,123.77,123.79,123.80,123.83,123.81,123.77,123.74,123.66,123.51,123.50,123.41,122.38]

          

Hi


Thank you for your update. I am not sure to understand your concern about line break.

The  ink input are series of strokes groups so you don't have to split them per lines.

Then based on the strokes coordinates, the iink engine performs the recognition and detects characters, words, line break, etc.


Best regards,


Gwenaëlle

My business scenario wants to be able to calculate whether the data is in the same row from stroke coordinates.


Thank you!

For example:

\\begin{aligned}12\\\\\n45\\end{aligned}

I want to calculate the starting coordinates of line breaks from the stroke group

Answer

Dear Color Fang,


Thank you for your update. For the moment the API does not provide this information, so you should write your own algorithm based on the strokes coordinates.


Best regards,


Gwenaëlle