IInk SDK Web REST Math recognizer examples

Writing a formula

Considering this request body.

rest-math2-example.json
{
  "scaleX": 0.265,
  "scaleY": 0.265,
  "contentType": "Math",
  "strokes": [
    {
      "p": [
        1,
        0.83,
        0.68,
        0.73,
        0.72,
        0.75,
        0.74,
        0.72,
        0.73,
        0.74,
        0.81,
        0.64,
        0.58,
        0.6,
        0.64,
        0.68,
        0.75,
        0.79,
        0.73,
        0.76,
        0.78,
        0.77,
        0.74,
        0.68,
        0.68,
        0.77,
        0.79,
        0.74
      ],
      "t": [
        1720100156746,
        1720100156839,
        1720100156856,
        1720100156889,
        1720100156922,
        1720100156938,
        1720100156956,
        1720100156972,
        1720100156989,
        1720100157006,
        1720100157022,
        1720100157039,
        1720100157055,
// Open the file to see the full content (1,853 lines)

The strokes of this request correspond to that writing:

The application/x-latex recognition output will give you the following result:

\int_{a}^{b} f ' \left( x \right) d x = f \left( b \right) - f \left( a \right)

You can then use this output to insert the formula in your documents: