Cloud Development Kit

Math_Recognition - Process Math recognition

Dear Myscript engineer:

Now I'm using the Math_Recognition - Process Math recognition and I have some problems.

I send the formula: 1+1=2 's coordinate and I have drawn the coordinate by canvas: 

image


The result as follows:

image


I'm so confused by this result. Why I send the  formula: 1+1=2 's coordinate but I got the "mm||tan||min||ms||km||lim"?

My mathInput value  as follows:

    

  {
			     "components":[
			        {
			           "type":"stroke",
			           "x": [ 744,744,744,744,744,744,744,744,744,728,720,720,720,720,720,728,728,736,744,752,992,975,968,968,968,975,992,1016,1056,1104,1184,1248,1296,1336,1360,1368,1360,1352,1328,1296,1272,1184,1168,1160,1160,1160,1160,1160,1168,1176,1176,1184,1192,1208,1520,1504,1496,1496,1496,1496,1496,1496,1496,1488,1472,1464,1464,1464,1464,1472,1480,1496,1816,1808,1792,1792,1800,1808,1824,1855,1888,1928,1984,2016,2047,2064,2080,2096,2096,2096,2087,2072,2064,1855,1840,1832,1832,1832,1848,1872,1904,1944,1976,2024,2064,2112,2256,2248,2248,2256,2272,2288,2304,2328,2352,2375,2392,2416,2440,2448,2456,2464,2456,2448,2424,2392,2360,2328,2296,2272,2256,2232,2224,2224,2224,2232,2240,2264,2320,2368,2408,2448,2480,2504,2512
 ],
			           "y":[ 5760,5752,5736,5728,5720,5712,5712,5720,5728,5808,5904,6008,6112,6192,6256,6296,6312,6312,6288,6256,5968,5968,5968,5968,5960,5960,5952,5944,5936,5928,5920,5912,5896,5880,5864,5864,5872,5880,5888,5896,5888,5720,5712,5704,5704,5720,5768,5848,5952,6064,6176,6256,6304,6320,5744,5744,5744,5744,5744,5760,5800,5864,5944,6040,6128,6208,6264,6312,6320,6320,6312,6280,5880,5872,5864,5864,5864,5864,5864,5864,5856,5856,5856,5848,5848,5840,5840,5840,5840,5840,5848,5856,5880,6056,6056,6064,6064,6064,6056,6056,6048,6040,6032,6032,6024,6016,5840,5832,5816,5792,5768,5736,5712,5696,5688,5688,5696,5712,5736,5760,5784,5824,5864,5912,5968,6032,6104,6176,6240,6280,6312,6336,6344,6344,6344,6344,6336,6328,6312,6304,6288,6272,6264,6256,6256
]
			        }
			     ],
			     "resultTypes":[
			        "LATEX",
			        "MATHML",
			        "SYMBOLTREE"
			     ],
			     "columnarOperation":false,
			     "userResources":[
			     ]
			  }

I supposed that it maybe some parameters which could limit the result type. 

For example:

image


If I just want to get the 'DIGITS & MATHEMATICAL SYMBOLS' result, what parameter could limit the result type and why I send the  formula: 1+1=2 's coordinate but I got the "mm||tan||min||ms||km||lim"?


Hope to hear u soon!

Best wishes,

                                                                                                                                                                                                summer


 

3.0.0 



Dear Yang Zhexian,
 
Thank you for contacting us.
 
Currently, it seems you are adding all strokes into the same single array. You should ensure to properly separate each stroke when posting your request on our server:

[
{
"type": "stroke",
"x":[...],
"y": [...]
},
{
"type": stroke,
x: [...],
y: [...]
},
]

This should now work properly.

Best regards,

Olivier

Dear Yang Zhexian,


To recognize only digits and math symbols, you can refer to the following documentation and topic:

-http://doc.myscript.com/Common/DevTools/index.html

-https://developer-support.myscript.com/support/discussions/topics/16000007809


Best regards,


Olivier

Login or Signup to post a comment