Text

Answered

Get strokes without normalization

Hi,
I am using 'https://cloud.myscript.com/api/v4.0/iink/batch' api with my strokes to recognize text using the following request:

{
        "contentType": "Raw Content",
        "strokeGroups": [{"strokes": all_strokes}],
        "configuration": {
            "lang": "en_US",
            "raw-content": {
                "recognition": {
                    "text": True
                },
                "text": {
                    "addLKText": True
                }
            }
        }
    }

I am exporting the data in 'application/vnd.myscript.jiix' format. But the strokes are not the same in the response jiix.
Myscript is returning some normalized strokes in the response.

I want the text related to my actual strokes.
Is there a way in which I can get the actual strokes from myscript or if I can change the response strokes in some way to get my actual strokes?

Thanks!


Best Answer

Dear Keshav,


thank you for contacting us and your question.


Currently, the reason is that the strokes you provide are in pixels, while in the JIIX file, we return with milimeters.


You can refer to the following topic that provides more explanation: https://developer-support.myscript.com/support/discussions/topics/16000029254


Best regards,


Olivier


Also, can I get an output like inkRanges in v3? It will be way easier as I have to just map.

Answer

Dear Keshav,


thank you for contacting us and your question.


Currently, the reason is that the strokes you provide are in pixels, while in the JIIX file, we return with milimeters.


You can refer to the following topic that provides more explanation: https://developer-support.myscript.com/support/discussions/topics/16000029254


Best regards,


Olivier


1 person likes this