iink SDK on Device

Answered

Failed to recognise text for multiple lines of handwritten text in Android


Hey MyScripters,

We have integrated MyScript Interactive Ink SDK for my Android App. 


We are facing the following issue:

When user writes some handwritten text on one line, it is getting recognized and producing correct results without any issue. 

Reference 1.png

 But, from the second line onwards, the text from first and second line gives us bizarre results. The recognised text obtained does not contain the actual text and instead gives random symbols like a series of '+' or '.' together.

  

Reference 2.png  The result that we got was: "Aa't. EE"


Best Answer

Dear Vineet,


Thank you for contacting us and your question.


Currently, this can occur for several reason:

-First, are you in "interactive mode", or in "Batch mode"? If using batch mode, are you in a "Text" part (not a "Text Document") and did you disable the guidelines (conf.setBoolean("text.guides.enable", false);)

-Then, did you set the proper language? (E.g. English, Chinese...)

-Did you set the proper resolution when creating the Renderer: renderer = engine.createRenderer(displayMetrics.xdpi, displayMetrics.ydpi, this); Indeed, you shall set the resolution to the one of your input device (e.g. pen if using and external pen).

-Before exporting, did you call the editor.waitForIdle(); function?


More information can be found in our documentation: https://developer.myscript.com/docs/interactive-ink/1.3/android/fundamentals/error-management/#no-recognition


Let us know if you this doesn't help. Feel free to provide with the code were you configure the engine, it will help investigate faster.


Best regards,


Olivier

1 Comment

Answer

Dear Vineet,


Thank you for contacting us and your question.


Currently, this can occur for several reason:

-First, are you in "interactive mode", or in "Batch mode"? If using batch mode, are you in a "Text" part (not a "Text Document") and did you disable the guidelines (conf.setBoolean("text.guides.enable", false);)

-Then, did you set the proper language? (E.g. English, Chinese...)

-Did you set the proper resolution when creating the Renderer: renderer = engine.createRenderer(displayMetrics.xdpi, displayMetrics.ydpi, this); Indeed, you shall set the resolution to the one of your input device (e.g. pen if using and external pen).

-Before exporting, did you call the editor.waitForIdle(); function?


More information can be found in our documentation: https://developer.myscript.com/docs/interactive-ink/1.3/android/fundamentals/error-management/#no-recognition


Let us know if you this doesn't help. Feel free to provide with the code were you configure the engine, it will help investigate faster.


Best regards,


Olivier


1 person likes this